我 平民生,平民活,不讲美,不讲阔。 只求此生,光明磊落,平平静静,守诚守拙。 此心无争,但盼无过,快快乐乐,我做我说。 仰天长笑,我便是我,努力努力,一点不错!

sp模拟试题

上一篇 / 下一篇  2006-12-12 20:56:31

Part I. Performance Test Planning
1. Which of the following scenarios best describe a load test?(1 point)
a. A test is run for 24-48 hours to evaluate the system stability over a long duration.
b. A test that is executed using critical business processes and user roles to evaluate the system performance during a typical day
c. A test to isolate a specific configuration or component on the system,such as the total available web server connections.
d. A test to validate the user interface and business logic
2. Which of the following statements is not characteristic of performance testing?(1 point)
a. Performance testing validates how each component performs when the system is under load.
b. Performance testing leverages a large number of automated test scrīpts to validate and verify the business logic,complete business processes,and the user interface
c. Performance testing leverages critical business processes or transactions that generate a high volume of data to identify any bottlenecks failure points on a system.
d. Performance testing includes all the system components,which include dependent/associated software programs,hardware servers and network components.
3. Which of the items listed would be the best choice to give a QA team the information it needs to understand both the environment of th System Under Test, as well as the software/hardware components that the team should be monitoring?Choose the best answer.
a. Test Plan
b. System Architecture
c. Test Requirements
d. Performance Testing Goal
4. True or False:Executing a performance test and analyzing the results is an iterative process.(1 point)
5. Which of the following statements is a measurable performance test requirement?(1 point)
a. One hundred and fifty users can log into the system in less than fifteen seconds.
b. The purchase order business process generates a purchase order number.
c. A buy transaction computes California tax by adding 8.25% of the total purchase
d. The financial reporting program can generate fifty end-of-quarter reports.
6. According to Mercury’s BTO,select the correct business processes for a performance test is critical.Which of the following criteria should be used to select business processes for performance testing?There are two answers.(2 point)
a. Processes that require substantial system resources
b. Processes that perform administrative and executive functions such as reporting,general ledger and profit and loss statements
c. Processes that are undergoing acceptance testing in newly developed modules of the application under test
d. Processes that contain dependencies with middleware system,legacy systems,file sharing,and other applications
7. When comparing performance testing to integration testing,in which environment should you expect to have a larger set of automated test scrīpts?(1 point)
a. Performance Testing
b. Integration Testing
8. List the three criteria by which you will identify the business processes to use for a performance test.(3 points)
9. Why is system backup and restore important during performance testing?Select all that apply.(2 points)
a. To remove any test-dependent data that can cause errors during the test execution
b. To ensure that the system and database administrators know there is a performance test in progress.
c. To prepare the system for the next iteration of load testing by resetting the database to its original state.
d. To ensure that database resources are not fully utilized and causing a bottleneck during testing.
10. Complete the statement: (3 points )
The objective of performance testing is to ______ and eliminate _____ problems before releasing the system in a ___________ environment
图片
Task Distribution Diagram of the SaveAll Online BookShop for question #11
Business Processes
Create new account
Search for books
View shopping cart
Purchase orders
Administrative processes
Order processing
System backup
11. In SaveAll’s task distribution profile above,when does peak database activity occur?What is the total number of tasks performed at peak activity?(2 points)
12. How many transactions need to run per minute if a performance test has to be run for one hour with 1000 users,assuming an average transaction length of three minutes.(3 points)
13. SaveAll Online BookShop’s architecture is shown below.
A firewall sits between the Internet and two web servers.The web servers pass data to and receive data from a middleware application and an Oracle database.
The site is currently experiencing problems with its Web servers.Looking at the web site’s architecture,what component do you think should be added to the system for the Web servers to
process a more or less even number of requests?(1 point)
图片
Part II. Core LoadRunner
A. General LoadRunner and VuGen Questions
1. Name the two LoadRunner components you need to install on a Windows load generator machine.There are two answers.(2 points)
2. Load generator machines are known by three other names.What are these names?(3 points)
3. match the file to the LoadRunner component:( 4 points )
___ a .The VuGen Results file
___ b.The LoadRunner scenario file
___c.The Controller executable
___d.The LoadRunner results file that can be opened in the Analysis tool
A. lrs
B. wlrun
C. magentproc
D. qtp
E. lrr
4. The _______ enables the Controller and the load generator machine to communicate with each order.(1 point)
5. Which of the following is not a valid single protocol for an E-Business Vuser?(1 point)
a. Palm
b. Ftp
c. HTTP
d. WAP
B. About scrīpting in the Virtual User Generator(VuGen)
6. All function prototypes are listed in the library _________ files.These files are located within the include directory of the LoadRunner installation.The contain detailed syntax information,return values,and other information that may not have been included in the Function Reference.(1 point)
7. A LoadRunner _____ measures the performance of the server by measuring the time it takes for the server to respond to specified Vuser requests.(1 point)
8. Create a scrīpt that retrieves the name of a host machine and its IP address if IP spoofing is enabled. Use your machine as the host machine.If the IP address is null or empty, write the message “IP Spoofing disabled” in the execution log.If the IP address is not empty, write the
IP address in the execution log.Write the name of the host machine in the execution log.
Use parameters as you need them.You are free to name the parameters provided you include a brief descrīption in the scrīpt. Save the scrīpt as IIB12.Write your scrīpt in the space provided on the answer sheet.(4 points)
9. What LoadRunner function can you use to capture today’s date into a parameter?(2 points)
10. In a scrīpt,the value for lr_think_time is parameterized.The parameter name is thinktimeParam.The value of thinktime Param is written into the execution log. Write the statements to meet the requirement in the answer sheet.If you used a scrīpt to accomplish this requirement,save your scrīpt as IIB14.(3 points)
Create a Web Vuser Activity
Requirements:
The test scrīpt you will create must fulfill all the requirements listed below.Grading will be based on the completeness of the scrīpt,including the requirements.
a. Create a basic Vuser using the information specified in the Use Case on the next page
b. Record all user steps under the Action section of the Vuser scrīpt
c. Each user step should NOT be defined as a transaction
d. Dynamic values should be included in the execution log.
e. Save the scrīpt in LR80Sp_TestFiles/MyFiles.Name The Vuser scrīpt IIB15.
USE CASE FOR MERCURY TRAINING MOCKSITE
Application:Mercury Training Mocksite
URL:Http://www.mocksite.merc-training.com
Browser:Internet Explorer 6.0
Browser condition: Caching is disabled.The pages should be refreshed every time they are visited.
User Steps to Complete the Business Process:
Descrīption
Expected Result
Login
1.Type aleli in the Username field.
2.Type jorel in the Password field
Passwrod appears as asterisks
3.Click the “Login” Button
The user is logged into the Mercury training mocksite.
Search for a class by location
1.In the left navigation menu,click the “Courses by Location” button
A training facilities page with the US Facility map appears.
2.Click the area Sunnyvale,CA
The mercury Sunnyvale calendar page appears
3.Select December and 2005 from the calendar
The calendar updates to show the course
moth and year items.
Application Risk Management Model.
Register for a class in selected location
1.Click the link Application Risk Management Model in blue.
The online store appears
2.Click the “Add to Shopping Cart”button
The shopping cart contents page appears
3.Click the “Checkout” button
The Mercury Policy page appears
4.Click the “I Agree” button
The shipping information page appears
5.Type kiks Commercial in the field labeled Company
6.click the “Submit Shipping Info” button
The payment page appears
Pay for a class
1.Select the radio button for Partner Internal under the section “Who is this training for”
The payment page appears
2.Select Mastercard from the credit card list in the Billing Method section
3.Type the card number 4111-1111-1111-1111
4.Select the expiration date as 8/2005
5.click the “Submit Billing Info” button
An order confirmation page appears
6.In the Order Preview page,click the button”Confirm Order.”
An order confirmation page appears
7.Click the “back” link in the Order Confirmation page.
You will return to the MI Sunnyvale facility page
Log out
1.Under the gray banner with text “Register,” Click the “Home” link
You whill return to the Mercury Training Mocksite home page
2.On the home page,click the button “Log out”
Refer to activity “Create a Web Vuser” to answer questions 11 through 20
11. What setting did you configure in Internet Explore to disable caching?(1 point)
a. Check for newer versions of stored pages automatically
b. Automatically check for Internet Explorer updates
c. Set days to keep pages in history and Favorites
12. What is the importance of setting think time?(2 points)
13. What setting would you configure to view the execution log at a detail level that includes parameter substitution,data returned by the server and advanced trace?(1 point)
14. Write the statements that you added or modified in the basic test to correct the play-back problem.Exclude any lengthy URLs to save time.(4 points)
15. What settings did you configure so that when the scrīpt is played back,(a) there is no caching, and (b) each iteration simulates a new user?(2 points)
16. Name the three primary reasons for correlating statements in a Vuser scrīpt.(3 points)
17. What setting did you use to meet reqirement (b) :The recording option for the scrīpt type should be set to “A scrpt describing user actions.”( 2 points)
18. Did you encounter any problems during playback?If yes, briefly describe the problems you encountered.(2 points)
19. Especially relevant when you want to test the entire system,including end-user time, what is the run time setting that loads graphic images when accessing a Web page during replay?(1 point)
C. About Scenario Setup and Execution
Mercury Travels has contracted your services as a Performance Engineer to help them evaluate the behavīor of their application.To access it go to Start->Programs->Mercury Tours->Start Server. Then go to Start->Programs->Mercury Tours->Mercury Tours.
The Flight Reservation application is a Web site that processes flight reservation orders.The application server recently went through some hardware upgrades.
Whih the new hardware,it is expected that performance of the business processes will be faster.The new hardware should be running at 50% capacity or less even if multiple users are logged in and making their reservations.
Business Processes and Response Time(RT) in seconds:
Business Process
Current BT
Preferred RT
Log in
3
3
Purchase reservation
9
3
The company has gathered some preliminary information and agreed on their performance objectives.They also created two Vuser scrīpts prior to your arrival.The Vuser scrīpts are located in \LR80Sp-TestFiles-02\MTours DIRECTORY.
Vuser 1: scrīpt_IIC1 Vuser 2: scrīpt_IIC2
Note: For this activity,assume that the test machine you are using is the application server with the hardware upgrades.The machine name is ‘localhost’.Supply your machine specifications in the answer sheet.
􀂄 Operationg system: Window2000 professional
􀂄 CPU: 1GB RAM with 2.8 Ghz processor
􀂄 Disk Space:75GB(Before installation)
Requirements:
The objective is to create a load test scenario to:
􀂄 Evaluate transaction reponse time
􀂄 Monitor server resources
When your are finished,Save your scenario and analysis fies under LR80SP-TestFiles-02/MyFiles.Provide descrīptive name for the scenario and analysis fles.
Directions
At 100% load ,use 10 Vusers for each Vuser scrīpt.Two Vusers should run every 5 seconds.Run the scenario for three minutes.
20. According to Mercury’s best practices on scenario execution, performance testing is implemented in a series of load tests with varying numbers of Vusers. List the series of load tests for scenario execution.What is the purpose of each of these load tests?(8 points)
21. What setting did you use so that all Vusers were initialized before starting the scenarion?(1 points)
22. Name the graphs/monitors you selected to meet the load test scenario objectives.(2 points)
23. at full load,provide the following scenario information(5 points)
Measurement
value
No.of vusers
Avg Processing Time Percentage
Max Processing Time Percentage
Avg Disk Time Percentage
Max Disk Time Percentage
Avg Processor Queue
Max Processor Queue
Total number of hits during the load test:________
Total throughput:________
D. About Result Analysis(8 points)
24. State your findings on the transaction reponse time.(3 points)
25. State your findings on the server resource capacity under full load.(3 points)

TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-27  
 123456
78910111213
14151617181920
21222324252627
282930    

我的存档

数据统计

  • 访问量: 4239
  • 日志数: 3
  • 建立时间: 2006-12-11
  • 更新时间: 2006-12-28

RSS订阅

Open Toolbar