51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 6589|回复: 14
打印 上一主题 下一主题

[原创] Mercury LoadRunner SP 考试复习题目

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-5-20 02:54:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1. Which of the following information are considered relevant when gathering system
usage for a performance test? There are two answers.
a. System architecture
b. Business processes
c. Application modules about to be unit-tested
d. Financial data such as general ledger and P&L statements
2. There are three main criteria to determine which business processes to select for per-
formance testing. What are these criteria?
3. Each business process takes a certain amount of time to complete. Under ideal condi-
tions, you determine this amount of time as ________________________
4. You want to determine how many users are active on a Web site during a twenty-four
hour period. What type of diagram can you use to map the business processes and the
volume of each across a fixed time line?
5. How many transactions will need to run per minute if a load test has to run for two
hours with 5000 users, assuming an average transaction length of five minutes?
6. This value represents the number of users performing business processes on the appli-
cation during the busiest time frame of an atypical day (e.g. holiday). What do you call
this value?
7. Write a quantifiable performance test objective given the following informati
Maximum number of concurrent users at peak time: 6000
Business Process: Update Totals
Preferred response time range: 5 to 7 seconds
Core LoadRunner and Virtual User Generator (VuGen)
1. What is a Load Test?
2. What is an Integration Test?
3. What are the LoadRunner Components and what role does each play in creating a
performance test?
4. General Vuser Functions:
Transactions are defined and measured in a Vuser script using which two functions?
5. What is ThinkTime?
6. Create a Vuser script where the value of lr_think_time is parameterized. The value of
thinktime should be displayed as an output message in the execution log.
7. What is correlation?
Correlation Activity:
This exercise requires internet access.
Application: Mercury Tours
URL: http://newtours.mercuryinteractive.com
Vuser Recording Settings:
■ Recording should be HTML-based
■ Correlation during recording should be turned off
■ Advanced recording should be turned off
General Vuser Settings:
■ Save correlation information during replay
■ Show only differences that appear in action
■ Download images on Snapshots viewer
■ HTML comparison: for scanning differences
■ Record the application startup
Record User Actions:
1. Sign in to the Mercury Tours Web site as jojo with the password bean.
2. Enter the flight information to the FLIGHT FINDER page.
Accept the defaults for all input fields except the following listed below (round-trip
flight, 1 passenger, economy class, etc)
Departing From: San Francisco
Arriving In: New York
3. Click the CONTINUE button.
4. Accept the first departing flight in the list.
By default, the first available flight is selected for each direction when the SELECT
FLIGHT page appears.
5. Select the last (4th) return flight in the list.
6. Click the CONTINUE button on the SELECT FLIGHT page.
7. Purchase the selected flight.
Enter the passenger and credit card information in the BOOK A FLIGHT page. Use the
data supplied below:
First Name: Joseph
Last Name: Smith
Number: 783921045786
8. Click the SECURE PURCHASE button on the BOOK A FLIGHT page.
9. Verify that the Flight Confirmation page appeared.
10. In the browser, click Sign-Off and wait for the Sign-On page to appear. Stop record-
ing.
Vuser Requirements:
■ Save the Vuser script twice.
■ In one of the scripts, parameterize the fields “fromPort” and “toPort” as type, file,
sequential using the following data:
Depart Arrive
San Francisco New York
Seattle Frankfurt
Sydney London
Zurich Acapulco
■ The script should play back correctly.
Questions:
■ What were the errors found in the Vuser script?
■ How did you correct the errors?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2006-5-20 02:54:56 | 只看该作者

Mercury LoadRunner SP 考试复习题目 --转贴

Performance Test Planning
1. A B
2. Mission-critical, heavy throughput, dynamic content
3. Preferred response time
4. Task Distribution Diagram
5. 1000 transactions per minute
6. Peak load
7. The Update Totals transaction time should be seven seconds or less during peak hours
for 6000 concurrent users.
Core Technology and Navigation


1. A load test is a short-term test of system performance under typical real-world condi-
tions using critical business processes.

2.
3. Controller - the administrative center for creating, maintaining, executing and moni-
toring scenarios. Scenarios have a .lrs extension
LoadRunner Generators - Machines that emulate user volume and locally stores load
test results until the scenario completes running, then the results are transferred to
the results file specified.
LoadRunner Analysis - Processes the results from the scenario run. Results files have
a .lrr extension. After the results are processed by the LR Analysis tool, the results
files have a .lra extension.
Virtual User Generator - records Vuser scripts that emulate the steps of real users
using the application under test
4. lr_start_transaction
lr_end transaction
5. ThinkTime is a measure of time that a real user takes to pause between the execution
of steps.
6. A sample snippet of code that parameterizes the value of thinktime and outputs the
value to the execution log:
//Save the string value of the parameter to an INT variable
int yzf = atoi(lr_eval_string(“{param1}”);

lr_think_time(yzf);
lr_output_message (“The parameter value is %s”, lr_eval_string(“{param1}”));
7. Correlation is the method of capturing values in a script as a result of dynamic data
passed from server to the client and back. The values are saved in a LoadRunner
parameter and is reused instead of the original re corded value.

8. Correlation Activity:
First error is in the basic script. On the list of available flights, even if the first listed
flight is selected by default in the Departing From table, you still need to record
clickin on it for the value to be captured and correlated when the cities are parameter-
ized.
When the departing and arrival cities were parameterized, errors occured during the
run because the flight information changes depending on the selected departing and
arrival cities. An auto-scan corrected the errors by placing the appropriate
web_reg_save_param statements in two correlations found, Blue Skies and United
flight details.
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2006-5-20 18:45:10 | 只看该作者
谢!
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2006-5-27 21:11:18 | 只看该作者
自己顶一下,希望有更多的考证的人来观注这个贴.
sdlkfj3
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2006-6-2 22:35:17 | 只看该作者
非常感谢!
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2006-7-6 15:52:26 | 只看该作者
十分感谢 !sdlkfj5
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2006-7-26 22:37:45 | 只看该作者
第二题  What is an Integration Test? 没有答案阿
回复 支持 反对

使用道具 举报

该用户从未签到

8#
发表于 2006-7-26 22:37:54 | 只看该作者
请问这个复习题来自真题吗?
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2006-7-27 09:31:03 | 只看该作者
非常感谢,顶!
回复 支持 反对

使用道具 举报

该用户从未签到

10#
发表于 2006-7-28 11:06:35 | 只看该作者
有点后悔怎么当初不好好学英语了!!
回复 支持 反对

使用道具 举报

该用户从未签到

11#
发表于 2006-8-21 16:02:34 | 只看该作者
太好了  谢谢  我是这次九月份的考试 要开始认真准备了
回复 支持 反对

使用道具 举报

该用户从未签到

12#
 楼主| 发表于 2006-8-21 17:03:26 | 只看该作者
更多考SP的人可以看过来啊!
回复 支持 反对

使用道具 举报

该用户从未签到

13#
发表于 2006-8-22 17:56:18 | 只看该作者
9月份考SP
欢迎一起讨论: fengchuanbin@hotmail.com 上海
回复 支持 反对

使用道具 举报

该用户从未签到

14#
发表于 2007-8-21 17:33:40 | 只看该作者
sdlkfj2 kan xiexie
回复 支持 反对

使用道具 举报

该用户从未签到

15#
发表于 2007-8-23 17:44:25 | 只看该作者
非常感谢!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-9 10:42 , Processed in 0.071987 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表