使用HP Web访问示例应用程序
This tutorial uses HP Web Tours, a sample Web-based travel agency system, to demonstrate how LoadRunner is used as a solution for load testing. HP Web Tours users connect to a Web server, search for flights, book flights, and check flight itineraries.
本教程使用HP Web游览,以旅行社系统的样本网页,展示LoadRunner作为负载测试解决方案。惠普Web参观用户连接到Web服务器,搜索航班,预订机票,并检查飞行路线。
While LoadRunner supports many different protocols, this tutorial demonstrates how to load test a Web-based application.
而LoadRunner支持许多不同的协议,本教程演示如何测试一个基于Web的应用程序。
In this section of the tutorial, you will learn how to start and work with HP Web Tours.
在本教程的这一部分,您将学习如何启动和使用HP Web旅行。
Prerequisites
先决条件
1.Ensure that LoadRunner is installed in the default folder, C:\Program Files (x86)\HP\LoadRunner. If LoadRunner is installed in a non-default folder, the HP Web Tours application will not open.
1。确保LoadRunner安装在默认文件夹,C:\ Program Files(x86)HP LoadRunner \ \。如果LoadRunner是一个安装在非默认文件夹,惠普Web应用程序将不开放参观。
2.Ensure that you have Internet Explorer version 10 or higher.
2、确保拥有Internet Explorer版本10或更高版本。
3.HP Web Tours requires Java version 7 update 65 or Java 8 in order to function properly. You can check your version from the Control Panel or from http://java.com. If necessary, upgrade to version 8.
3.hp Web参观需要java java版本7更新65或8才能正常运行。你可以检查你的版本从控制面板或http://java.com。如有必要,升级到8版。
4.Add localhost to the Exception Site List.
4。添加本地到异常名录。
a.On the LoadRunner machine, open the computer's Control Panel.
A.在LoadRunner的机器,打开电脑的控制面板。
b.Search for Java, and double-click Java (32-bit) or Java 64-bit. The Java Control Panel opens.
B.搜索java,双击java(32位)或java 64位。java控制面板打开。
c.Click the Security tab and click Edit Site List. Click Add and enter http://127.0.0.1:1080. Click Continue to approve the address. Approve any warnings.
单击“安全”选项卡,单击“编辑站点列表”。单击“添加”按钮,输入HTTP:/ / 127.0.0.1:1080。单击“继续”以批准地址。批准任何警告。
d.Repeat the above step and enter http://localhost:1080.
重复上述步骤,输入HTTP:/ /本地:1080。
5.Start the sample Web server.
5、启动示例Web服务器。
•On the LoadRunner machine, select Start > All Programs > HP Software > HP LoadRunner > Samples > Web > Start HP Web Tours Server.
•LoadRunner机上,选择开始>所有程序>软件> > >网络> HP LoadRunner进行HP Web服务器开始旅行。
•On icon-based desktops, such as Windows 8, search for "Start HP" and select Start HP Web Tours Server from the results.
•以图标为基础的桌面,如Windows 8,搜索“启动HP”,然后从结果中选择启动HP Web服务器。
A command line window opens indicating that the server is running. Keep this window open while you access the HP Web Tours application.
命令行窗口打开,指示服务器正在运行。在访问HP Web旅游应用程序时保持此窗口打开。
Try Out HP Web Tours
试试惠普网络旅游
In this section, you will test the HP Web Tours application in Internet Explorer before your record it within VuGen. This will help you understand the application and approve any warnings issued by the browser.
在本节中,您将测试HP Web参观在Internet Explorer中应用你的记录在VuGen。这将帮助您了解应用程序并批准浏览器发出的任何警告。
1.Open the Web Tours site.
1、开通网站旅游网站。
On the LoadRunner machine, select Start > All Programs > HP Software > HP LoadRunner > Samples > Web > HP Web Tours Application. In icon-based desktops, such as Windows 8, search for "HP Web" and select HP Web Tours Application from the results. A browser opens and displays the HP Web Tours home page.
在性能测试机,选择开始>所有程序>软件> > >网络> HP LoadRunner进行HP Web Tours应用程序。在基于图标的桌面上,如Windows 8,搜索“HP Web”并从结果中选择HP Web旅游应用程序。浏览器打开并显示HP Web旅游主页。
If you are prompted by your browser or by Java to approve the application, do so.
如果你是通过你的浏览器或java提示审批申请,这样做。
2.Log on to HP Web Tours.
2、登录到HP Web旅游。
a.Type in the following information:
输入下列信息:
- User name: jojo
用户名称:JOJO
- Password: bean
-密码:bean
b.On the left pane, click Login. HP Web Tours welcomes you to the application.
在左侧窗格中,单击登录。HP Web旅游欢迎您的应用程序。
3.Reserve a flight.
3、预订航班。
a.In the left pane click Flights. The Find Flight page opens.
在左侧窗格中单击航班。查找飞行页面打开。
b.Change the Arrival city to Los Angeles.
把到达城市改为洛杉矶。
c.Click Continue.
单击“继续”。
d.In the Find Flight page, accept the default flight selection and click Continue.
在“查找飞行”页中,接受默认航班选择并单击“继续”。
e.In the Payment Details page, fill in some of the fields and click Continue. The Invoice page is displayed, summarizing your flight reservation.
在付款详细信息页中,填写一些字段并单击继续。显示发票页,概述您的航班预订。
4.End your HP Web Tours session.
4、结束你的HP网络旅游会话。
On the left pane, click Sign Off to log off.
在左侧窗格中,单击“注销”注销。