文档详情

软件测试案例分析 实验二、Loadrunner基本操作.doc

发布:2017-05-01约2.07万字共15页下载文档
文本预览下载声明
PAGE  PAGE 15 实验二 Loadrunner基本操作 姓名: 学号: 实验目的 (1)理解和掌握性能测试的基本原理和方法。 (2)掌握LR录制模式的选择与使用。 二、实验要求 (1)运用LR录制登陆脚本,完成订票操作。 (2)回放脚本,观察结果。 (3)对脚本进行参数化。 三、实验内容 打开 HYPERLINK http://localhost/MercuryWebTours/ http://localhost/MercuryWebTours/订票页面,注册用户mike/mountain, jack/johnson,两个用户; 使用LR录制 HYPERLINK http://localhost/MercuryWebTours/ http://localhost/MercuryWebTours/订票页面的登录功能,对登录名和密码参数化,数据文件的数据如下: Username Password jojo bean joe young mike mountain jack johnson 将runtime settings中的run logic的循环次数设置为4; 将runtime settings中的log配置,选择extended log,且选中parameter substitution 回放脚本,在execution log中观察参数是否已经带入; 为登录就脚本设置一个事物,名称为”login transaction” 在实验报告中,记录每次的操作步骤及界面截图,保存execution log的执行日志。 四、实验结果: 操作步骤及界面截图 execution log的执行日志 Virtual User Script started Starting action vuser_init. Web Turbo Replay of LoadRunner 7.80.0 for WINXP; Web build 2271 [MsgId: MMSG-27143] Run-Time Settings file: C:\Documents and Settings\Administrator\Local Settings\Temp\noname1\\default.cfg [MsgId: MMSG-27141] Ending action vuser_init. Running Vuser... Starting iteration 1. Starting action Action. Action.c(7): Notify: Transaction login transaction started. Action.c(9): Detected non-resource http://localhost/MercuryWebTours/header.html in http://localhost/MercuryWebTours/ [MsgId: MMSG-26574] Action.c(9): Detected non-resource http://localhost/MercuryWebTours/welcome.pl?signOff=true in http://localhost/MercuryWebTours/ [MsgId: MMSG-26574] Action.c(9): Found resource http://localhost/MercuryWebTours/images/banner_animated.gif in HTML http://localhost/MercuryWebTours/header.html [MsgId: MMSG-26659] Action.c(9): Detected non-resource http://localhost/MercuryWebTours/nav.pl?in=home in http://localhost/MercuryWebTours/welcome.pl?signOff=true [MsgId: MMSG-26574] Action.c(9): Detected non-resource http://localhost/MercuryWebTours/home.html in http://localhost/MercuryWebTours/welcome.pl?signOff=true [MsgId: MMSG-26574] Action.c(9): Foun
显示全部
相似文档