资源预览内容
第1页 / 共13页
第2页 / 共13页
第3页 / 共13页
第4页 / 共13页
第5页 / 共13页
第6页 / 共13页
第7页 / 共13页
第8页 / 共13页
第9页 / 共13页
第10页 / 共13页
亲,该文档总共13页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
LoadRunner与ALM均为11.00故下载安装QTP11.00按安装教程进行安装汉化许可证默认使用期限30天破解方法(未尝试):重复试用30天的方法1. 找到C:ProgramDataSafeNet Sentinel目录,更名或者删除,如果是xp环境下可能就 是如下的路径:C:Documents and SettingsAll UsersApplication DataSafeNetSentinel不同的用户机器环境可能不一样,大致是这个路径,可以看下。2. 找到QTP11安装目录下bin子目录C:ProgramFiles(x86)HPQuickTestProfessionalbin, 执行 instdemo.exe win7 环境 下用管理员身份运行,xp环境下双击即可对QTP自带的购票软件进行测试1. QTP自带机票购买网站注册账户:tyr521密码:tyr555521,完整执行一次购票流程2. 打开QTP,勾选Web(打开软件时自提示),若已经打开软件,可以通过打开帮助-关于QTP 进行查看,未勾选则需要关闭并重新打开软件进行勾选3. 单击新建测试,单击录制按钮,Web提示框勾选openthe.(第二个)URL输入购票网址(默 认)浏览器选择IE浏览器。Windows Applications选择如下IngsVindows ApplicailonsRecord and run test on any open Windaws-based application Record and run onloriJ7 Applications opened by QuickTestApplications opened via the Desktopby the Windows shell)7 Applications specified belowApplication details:ApplicationWorking FolderProgram Arc1111确定取消帮助单击确定按钮4. 打开的网页中执行购票流程出现的错误:开始录制之前需要打开IE浏览器 工具-Internet选项-内容-自动完成-设置 表单之下的两项取消勾选“自动完成”会列出与以前龍入或访问的条目可能匹配 的內容自动完成功能应用于HBSBE衣浏览历史记录(W回收藏夹源使用ffmdoE搜索戏得更好的结果逍 回表单d)表单上的用户名和峦码()叼在保存密码之前询问我另外需要控制面板中-安全中心-Internet选项高级中对网页中运行插件信任(录制过程中允 许网页中弹出插件的运行操作也会被录制下来,录制结束后可以通过对记录下的操作删除 但提示会导致脚本的运行错误)5. 购票流程执行结束之后单击停止按钮,保存(选择默认路径) 录制下的脚本各字段意义Item-项:操作步骤所作用到的组件(测试对象、工具对象、函数、脚本)Options-操作:select选取click点击set填写,输入Value-值:执行动作的参数:各种输入值、所选项、鼠标单击的是左键还是右键 分配:使用到的变量文档:自动产生用来描述操作步骤的中英文说明6. 运行之前需要 工具-选项-运行选择如下一 GeneralText RecognitionFolders.Active ScreenRunScreen 匚aptur已一 Windows .applications.Advanced- WebFag已/F日归 0 ptions .AdvancedRunRun mode* Normal (displays execution marker)Delay each step execution by: |lT 召 millisecondsC1 Fast厂 Submit a 日已佢厲 to ALM.DC for each failed stepView results when run session ends.Alow other HF products to run tests: and cumponentsStop CLimmand shortcut key:+ .Alt + F5OKCancelApplyHelp7单击运行按钮,IE浏览器下自动执行购票流程运行结束之后不显示结果,提示未找到可以查看结果的程序下载安装 Microsoft Script Debugger 依然报错先进行安装QTP_00626.EXE提示版本升级不正确运行时使用快速模式运行,报错卸载重装QTP,报错可能存在兼容性问题,可以尝试 WIN7 或者 Windows server 2003qtpll 回放结束时报“Cannot open the run results because the HP Run Results Viewer is not installed on this compute 严错误解决方法:在国内论坛一直没有找到有用的方法,这是国外论坛上的两种方法,我没有翻译,个人理 解不同,自己需要自己翻译。1、After creating and running a test, an error is displayed Cannot open the run results because the HP Run Results Viewer is not installed on this computerQuickTest Professio nal (QTP) / Service Test (ST) / Spri nter versi on 11 in troduced a new report ing tool called HP Results Viewer. Some other products such as LoadR unner may be using this tool as well.Un like previous versi on s, its in stallati on process automatically happe ns after the core product related to it get in stalled on a visual-less, in visible/o n-backgro und process which only get no ticed as soon as the shortcut icons on desktop, among other thin gs, gets placed. The QuickTest Add-i n for Quality Center also makes use of this tool, and its installer (when used on machine without QTP) performs this reporting tools installation when finished on background.Note: This new reporting tool, has separate installers on the core product disc En sure the follow ing registries, folders and files get created on the mach ine once the core product finish its installation:Folder: C:Program FilesHPRun Results ViewerDesktop Shortcut: HP Run Results Viewer.l nkRegistry En tries:HKEY_LOCAL_MACHINESOFTWAREMercury In teractiveTest Results HKEY_CURRENT_USERSoftwareMercury In teractiveTest Results (ge nerated after ope nin g) If the core product was in stalled properly, simply run directly the HP Results Viewer in stallati on files:QTP: R un ResultsViewersetup.exeST: STSetupMSIThirdPartyInstallationsHP_Run_Results_Viewer.msi2、C:Program FilesHPQuickTest ProfessionalMSIThis is the path to in stallQTP结果分析:运行结束之后直接显示分析结果(已解决)半汉化版版本结果中不展示Active Scree n(并不是需要通过对分析结果的设置,也不需要通过更改网页图片格式, 应在运行前设置里将发生错误时记录图片改为所有场景均记录图片即可)Active Screen 除了会记录下当时的画面之外,执行操作的对象还会被标记(尝试修改执行过 的操作,更改标记的对象,发现可以成功) 脚本运行过程中经常性出现网页加载缓慢的现象打开已存在的测试结果可以通过开始菜单直接打开Run Results Viewer打开保存的测试结果 还可以通过直接点击工具栏的open(测试结果)按钮可以通过展开左侧测试结果树选中某个测试步骤查看该步骤的详细信息(通过的操作状态为 done)在测试脚本上建立检查点:1. 检查对象的检查点Action 中找到 Book a Flight Mercary,下方的 Active Screen 中找到 姓氏输入框(first name) 右键选择插入标准检查点,预定值均选择默认值,单击确定,该测试步骤之前建立了一 个检查姓氏的标准检查点,单击工具栏保存按钮2. 检查网页的检查点同样选中Book a Flight Mercury,下方Active Screen任意位置(空白处)单击右键选择插入 标准检查点,选取 Page: Book a Flight Mercury 预定值选择默认,可以看到下方 Active Screen整个网页被选定,在Book a Flight Mercury下方建立一个检查网页的检查点,单击 工具栏保存按钮3. 检查文字的检查点打开 Flight confirmation Mercury,下方 Active Screen 中选中文字 NEW YORK 单击右键, 插入文本检查点,预定值选择默认, Flight confirmation Mercury 下建立标准文字检查点 工具栏单击保存4. 检查表格的检查点与插入检查文字的检查点相同, Active Screen 机票价格表中的价格上单击右键选择插入 标准检查点,将默认选项改为Web table (Active Screen中的机票价格表被标记)预定 值选择默认,操作之前建立了检查表格的检查点,单击工具栏保存按钮保存(可以通过双击的方式来勾选或者取消对某字段
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号