Automation prepare steps

简介:

自己开发的一个结合QTP 和Hudson的一个框架》

| Step Name | Description | Expected Result 
| Create host instance from template | Choose a template, instantiate the system from template.If creating a new server from OS iso image, see next step. | 
| | | 
| Call <Automation_VMware_instance_from_ISO_create_auto> | Call <Automation_VMware_instance_from_ISO_create_auto> | 
| | | 
| Activate windows | run command slui.exe to activate windows after setting the hostname and ip address. | 
| | | 
| activate windows | If prompted, you can try to activate windows but it will likely fail because a network connection is not yet created. Instead slect 'ask me later' | 
| | | 
| Set host name and IP address | Log into the host, change the IP address, hostname, domain.reboot | 
| | | 
| Set windows to not update automatically | Configure windows update to check for updates but not download or install them unless you review them. | 
| | | 
| Install ALM Addins | The following add ins are required in order to remotely execute ALM tests.Log into the hostStart IEGo to http://qc2d.atlanta.hp.com/qcbinSelect 'Add Ins Page'HP Quality Center Connectivity Add-inSelect 'HP Quality Center Connectivity'Either run the install from the link or download and then run from hard drive.File is also available at \\pdebld1.fc.hp.com\qatest\software\qtp\qtp11\HP_QC_Connectivity_Addin\tdconnect.exeHP Quality Center System Test Remote Agent Add-inWhen installer finishes, return to the add in page.Select "HP Quality Center System Test Remote Agent Add-in"Either run the install from the link or download and then run from hard drive.File is also available at \\pdebld1.fc.hp.com\qatest\software\qtp\qtp11\QTP11_QC_System_Test_Remote_Agent\SysAgent.exeHP ALM Client Registration Add-inWhen installer finishes, return to the add in page.Select 'HP ALM Client Registration'Select 'Register HP ALM Client'If prompted, install the active X controlIf prompted, accept to install any required files.Note this install can take up to 15 minutes, and the browser may appear unresponsive.Wait at least 15 minutes and if the installer does not indicated complete, then stop the browser and try the install again.If prompted, install "Microsoft .NET Framework 3.5 service pack 1", which is required for the client registration.If IE displays a message that is is not configured to download files, then close all windows, run inetcpl.cpl, select security tab, click internet, click customer level button, scroll to download category, set 'file download' to enable and 'automatic prompting for file downloads" to enable, click ok, yes, close window, try download again.If you receive a message that "You must use the role management tool to install or configure microsoft .Net Framework 3.5 SP1" then In Windows Server 2008 R2, you don’t have to install .Net Framework 3.0, it was include in .Net Framework 3.5. You can navigate to Server Manager > Features > Add Features to add .Net Framework.If prompted, download and install 'Microsoft Visual C++ 2005 Service Pack 1 redistributable Package MFC Security Update", you will need the x86 version even if installing on a 64 bit machine.Close the browser window | 
| | | 
| Enable remote execution communication | For vapi-xp scripts to run the firewall on the test hos must allow communication.Currently, I don this by disabling the firewall.There are probably more specific settings that could be used. | 
| | | 
| Turn off windows Firewall | Start windows Server ManagerThis can be done by clicking the server icon on the windows task barIn task manager navigate to windows firewallTurn off the firewall for all profiles (Domain, Private, Public) | 
| | | 
| Enable psexec connections | Open firewall: start, admin tools, windows firewallSelect inbound rulesEnable the following entries under "File and Printer Sharing" Echo RequestICMpv4-InICMpv6-InNB-Datagram-InNB-Name-InNB-Session-In | 
| | | 
| Turn off UCA | Copy file \\pdebld1.fc.hp.com\qatest\software\EnableUAC2k8Server.regand put into c:\tempNote: login to pdebld1.fc.hp.com is qatest\L0ngh)rnExecute EnableUAC2k8Server.reg by double clicking itThe script should finish with 5 seconds. | 
| | | 
| Turn of UAC | For vapi-xp scripts to run remotely as 'qatest', UAC must be turned off. There may be more specific settings to allow 'qatest' to run remotely, but for now I am turning off 'UAC' | 
| | | 
| Enable remote desktop | Enable remote desktop. | 
| | | 
| Configure quick launch | place the following icons on the quick launch bar:IEcommand windowwindows explorerconfigure command window to allow quick edit modeconfigure windows explorer to not hide known file extensionsStep through IE configuration | 
| | | 
| Create qatest user | LoginCreate administrative user qatest. | 
| | | 
| Set pasword to never expire | Set Administrator and qatest accounts so password never expires | 
| | | 
| To be automated | the following steps may be automated | 
| | | 
| Create c:\temp | create directory c:\temp | 
| | | 
| Install windows updates | If required install windows updates. | 
| | | 
| Copy over baretail | Copy baretail from \\pdebld1\qatest\software\baretail and put into c:\ | 
| | | 
| Install OS language | Install any OS languate required.Set to the default and system language. | 
| | | 
| Install web browser | Install any web browser required for testing.Set browser to the default browserSet browser to a home page of 'blank'Set bowser to use web proxy 'web-proxy.fc.hp.com:8088' and to bypass the web proxy for the following: *.hp.com 15.* 16.*Step through any web browser config requests when the browser is opened so these will not be seen every time the browser opens. | 
| | | 
| Call <Both_Antivirus_install> | Call <Both_Antivirus_install> | 
| | | 
| Configure browser to explicitly bypass proxy for local address | To ensure 5.x and 7.x I-RS interfaces will display when run locally using host name, the browsers need to be set to explicitly bypass the proxy for local addresses.IE: open IE, select Tools, Internet options, connections, lan settings, select bypass proxy server for local address, click advanced for the proxy server, add exception ‘*.hp.com’, ok/apply to save and close settings"FF: Open FF, tools, options, advanced, network, settings, in the 'no proxy for' box, add "*.hp.com", ok/apply to save and close settings. | 
| | | 
| Log in as correct user | In order for automated tests to run, a user must be logged into the system.Also, the user the automated tests are to be run as must be logged in.From the vshpere client, select the host, right click, open console.Hit ctl-alt-insert, then enter the login for the user required for testing.leave the console open until the next step to capture the snapshot is complete. Determine what local user the tests should run as. This is available by looking at past test sets executed on the host and determining what user, administrator or qatest, the test were to be executed as.Start the vmware client associated with the test host you are saving a snapshot for. Example: log into webes-schnapps if the test host is hosted by webes-schnaps; log into webesvcgalway if the test host is hosted by webesvcgalwayFind the test host in the vsphere listing, right click and select 'open console'Wait for the console window to openClick the open consoleIf the local user is not logged in, select keys ctrl-alt-insert to obtain the login prompt. Log in as the user that the tests are to operate as.If the local user is already logged in, verify the correct user is logged in: start, run, cmd.exe, in the command window enter 'whoami' and then return. If the user name is not correct, then logout and log back in (see above step for logging in) | 
| | | 
| Call <Both_Windows_Windows_Installer_4.5> | Call <Both_Windows_Windows_Installer_4.5> | 
| | | 
| Take Baseline_noPrep snapshot | Take system snapshot named 'Baseline_noPrep'.In comments enter the date in format YYYYMMDD and your name and the template used. | 
| | | 
| Update automation spreadsheets | Update testdata.xls and Snapshot_Configuration.xls with host and lun information.The autoamtion tests need to know the host's lun, name, ip address in order to function. |
| | | 
| Call <Both_Postgre_ODBC_Driver_DSN_install> | Call <Both_Postgre_ODBC_Driver_DSN_install> | 
| | | 
| Call <Both_Windows_Screen_saver_timeout> | Call <Both_Windows_Screen_saver_timeout> | 
| | | 
| Update vmware tools | | 
| | | 
| Install certifcate | Install the HP certificate.This is required for the host to communicate with the data center. | 
| | | 
| Turn off Firefox updating | This must be done on all systems where Firefox is installed, even if FireFox is not used for testing.Start Firefox.Tools, Options, UpdateIn "Automatically check for updates to" section, UN-check all boxes.Click OK | 
| | | 
| Prevent Internet Explorer config request | When IE 8 or 9 is installed, IE will request the user to walk through some config windows.Typically user click the 'Ask later" button to prevent walking through the IE config windows, but the user will be asked the next time IE is started.For automation, this constant request for configuration info is problematic.Therefore, the config request screens should be walked through to prevent the request for occuring in the future.Start IEIf asked to walk through configuration screens, then walk through the screens. For each question select the option that will cause the least amount of processing overhead. For example, select to NOT load any special features, select to NOT load a favorite search engine, etc.If not asked to walk through config screens, then the walk through has already been done.Note IE9 presents the pop up request at the BOTTOM of the screen. | 
| | | 
| Make IE9 status bar visible | If the host has IE9 installed, ensure IE9 is displaying its status bar: -Start IE9-Move the cursor over the top area of the window-Right click and select 'status' so that status has a check mark next to the text and the status bar is shown at the bottom of the window. | 
| | | 
| Run prep script | Copy file \\pdebld1.fc.hp.com\auto\Test_Script\0000_Server_prep.vbs to c:\tempNote: login to \\pdebld1.fc.hp.com is qatest\L0ngh)rnExecute c:\temp\0000_Server_prep.vbs by double clicking on the file.The script should run and finish within 15 seconds.You can review the log file on the test host at c:\irsautomation\test_result_log\0000_Server_prep.logThe last entry will indicate the script finished.Move file 0000_Server_prep.vbs from c:\temp to c:\irsautomation\test_scripts | 
| | | 
| Call <Automation_ALM_install_auto> | Call <Automation_ALM_install_auto> | 
| | | 
| Call <Automation_QTP11_install_auto> | Call <Automation_QTP11_install_auto> | 
| | | 
| Start and configure QTP11 Remote Agent | Start the QTP Remote agent -Start, programs, HP Quick Test Professional\tools\Remote Agent -A new icon will appear on the Windows taskbar. The icon looks like a yellow gear. -Right click on the Remote Agent icon, and select Settings -The Remmote Agent settings window is displayed -Select log leve setting of 'Low' -Enter log folder value of c:\irsautomation\test_results_log -Set 'Cleanup, Restart testing tool after " to 1 runs -Uncheck 'Run Quicktest in hidden mode' -Check 'Keep QuickTest open after a test lab run session ends' -Set 'seconds to operation' to a value of 2700 (this is represents 45 minutes) -Set 'seconds for queries' to a value of 2700 (this is represents 45 minutes) -Leave all other defaults and click OK | 
| | | 
| Reboot the server | Reboot the server | 
| | | 
| Verify Remote Agent started up | Log into the serverVerify the Remote Agent icon is listed in the windows task bar.The icon looks like a yellow gear.The icon is displayed in the lower right corner of the windows task bar.Right click on the icon, and select Settings.Verify the settings are set to low logging to directory c:\irsautomation\Test_Result_Log | 
| | | 
| Clean up hard drive | Deleted c:\temp\qtp11Empty the recycle bin | 
| | | 
| Wait for processes to finish | QTP tests will not be able to start if a snapshot is created while the OS is performing resource intensive processes, such as a virus scan. Therefore, the OS processing status must be verified to be in a proper status prior to saving a snapshot.Starte task manager (either ctrl-alt-del or ctrl-alt-end and then select task manager, or move the cursor over the OS taskbar, right click, and select 'start task manager')Review the process tab, sorting descendign on the 'cpu' column to determine if a processes is using a large amount ( > 20%) of the CPU. If a processes is using a lot of CPU, wait for the process to finish and the CPU usage is low before moving to the next step to save a snapshot.Note: process rtvscan is a virus scan process | 
| | | 
| Reboot | Reboot the host before taking a snapshot. | 
| | | 
| Save Snapshot | After making changes to an automated test host, save a snapshot. The saved snapshot will provide the starting point for the automated test. It is important that when saving a snapshot the local host user is logged into the local console (not a remote desktop or terminal services session). The automated tests cannot start execution unless the local user is logged in Once the user is logged in, save the snapshot. Use the correct snapshot name and change the name of any previous snapshots with the same name to be different. If two snapshots have the same name, the automated tests will not run. Example: an existing snapshot named 'Baseline_None_noRelease' has been updated. Rename the existing snapshot to 'Baseline_None_noRelease_old', then save the new snapshot to name 'Baseline_None_noRelease'Delete any unnecessary snapshots. | 
| | |                 


本文转自hcy's workbench博客园博客,原文链接:http://www.cnblogs.com/alterhu/archive/2012/11/01/2749859.html,如需转载请自行联系原作者。

相关实践学习
【玩转ComfyUI】基于函数计算一键部署AI生图平台ComfyUI
本次实验将带大家通过使用阿里云产品函数计算FC,快速使用ComfyUI实现更高质量的图像生成。
从 0 入门函数计算
在函数计算的架构中,开发者只需要编写业务代码,并监控业务运行情况就可以了。这将开发者从繁重的运维工作中解放出来,将精力投入到更有意义的开发任务上。
目录
相关文章
|
前端开发 算法 PHP
Jetpack Compose Runtime : 声明式 UI 的基础
Jetpack Compose Runtime : 声明式 UI 的基础
425 0
|
JavaScript API
vue插槽slot、slot-scope、v-slot的区别以及嵌套插槽的使用
可以将 slot 理解成一个占位的东西,我们提前在模板中放置一个占位的标记,当其他地方要使用模板时就可以通过标记再传进来具体的内容,这样就可以实现更强的复用能力。
|
9月前
|
数据采集 算法 数据可视化
使用 MATLAB 构建不规则三角网 (TIN)
使用 MATLAB 构建不规则三角网 (TIN)
472 0
|
11月前
|
监控 安全 网络协议
恶意软件无处逃!国内版“Manus”AiPy开发Windows沙箱工具,进程行为+网络传输层级监控! 头像 豪气的
NImplant.exe 是一款后渗透测试工具,可实现远程管理与持久化控制。其优点包括无文件技术、加密通信和插件扩展,但也存在被检测风险及配置复杂等问题。为深入分析其行为,我们基于 aipy 开发了 Windows 沙箱工具,针对桌面上的 NImplant.exe 进行多维度分析,涵盖进程行为、网络连接(如 TCP 请求、目标 IP/域名)、文件控制等,并生成传输层监控报告与沙箱截图。结果显示,aipy 工具响应迅速,报告清晰易读,满足分析需求。
|
前端开发 开发者 UED
《从线性到二维:CSS Grid与Flex的布局范式革命与差异解析》
CSS Grid布局与Flex布局是现代前端开发中不可或缺的两大布局技术。CSS Grid作为二维网格系统,擅长复杂页面结构和响应式设计,通过网格容器、轨道与单元格实现精确的空间划分与元素定位。Flex布局则专注于一维排列,适用于导航栏、列表等内容驱动场景,提供灵活的对齐与空间分配能力。两者各有优势,可独立或结合使用,满足不同布局需求。掌握它们的核心概念与应用技巧,能显著提升开发效率,打造精美高效的网页布局。
313 18
|
数据采集 数据挖掘 API
深入探究小红书笔记详情页面数据采集接口
小红书作为当下热门的内容分享平台,涵盖时尚、美妆、旅游等领域,其笔记详情页数据对品牌方和市场研究者具有重要意义。通过数据采集接口,可获取标题、评论、点赞等信息,用于竞品分析、内容营销效果评估及趋势预测。例如,企业可通过分析用户兴趣优化产品策略,研究新兴消费趋势指导市场推广。文中还提供了Python请求示例,帮助开发者快速上手使用API接口。
|
SQL 分布式计算 DataWorks
MaxCompute MaxFrame评测 | 分布式Python计算服务MaxFrame(完整操作版)
在当今数字化迅猛发展的时代,数据信息的保存与分析对企业决策至关重要。MaxCompute MaxFrame是阿里云自研的分布式计算框架,支持Python编程接口、兼容Pandas接口并自动进行分布式计算。通过MaxCompute的海量计算资源,企业可以进行大规模数据处理、可视化数据分析及科学计算等任务。本文将详细介绍如何开通MaxCompute和DataWorks服务,并使用MaxFrame进行数据操作。包括创建项目、绑定数据源、编写PyODPS 3节点代码以及执行SQL查询等内容。最后,针对使用过程中遇到的问题提出反馈建议,帮助用户更好地理解和使用MaxFrame。
|
存储 监控 调度
云迁移中心CMH:助力企业高效上云实践全解析
随着云计算的发展,企业上云已成为创新发展的关键。然而,企业上云面临诸多挑战,如复杂的应用依赖梳理、成本效益分析等。阿里云推出的云迁移中心(CMH)旨在解决这些问题,提供自动化的系统调研、规划、迁移和割接等功能,简化上云过程。CMH通过评估、准备、迁移和割接四个阶段,帮助企业高效完成数字化转型。未来,CMH将继续提升智能化水平,支持更多行业和复杂环境,助力企业轻松上云。
|
存储 文字识别 搜索推荐
OCR是什么
【6月更文挑战第19天】OCR是什么
2191 4
|
消息中间件 存储 负载均衡
RocketMQ-术语详解(通俗易懂)
RocketMQ-术语详解(通俗易懂)
241 1