• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Load Runner
 Load Runner is a performance testing tool.
It also does functional testing.Load Runner has 4 components:
Virtual User Generator (VUGEN)
Controller 
Analysis
Load Generator.1)VUGEN:VUGEN is where wea) Record, b) Run, c) Debug & d) Design.They are called Vuser scripts.2)Controller:Controller is where we apply the load. The Controller organizes drives, managesand monitors the load test.3)Analysis:Analysis is where we analyze the performance results.4)Load generator/Launcher :It is the local host [which is CPU]. Load generator generates the load by runningvirtual users.Load Runner has 2 views:1)Script view2)Tree view: It has 2 vies as well:- a) Page view & b) HTML view
To start:
Go to Programs
Load Runner 
Virtual User Generator 
Click on “New file”
Expand E Business
Select “Web(HTTP/HTML)”
Click “OK”
Highlight “Action”
Click “Record”
 
Type URL[www.Macy’s.com]
Click “OK”Then run from the top. Result summary appears. Status =”Passed”.On the left window expand the “Iteration” to watch the screens. Then close the resultwindow.Delete cookies and design.To design we have write “Comments” and “Start” and “End” transactions.To write comments:
Go to “Insert”
Click on “Comment” and write the commentE.g. “Typewww.Macy’s.com.” and the main page of Macy’s will open.”Then click on the icon “Start transaction” and write “Macy’s” and enter. At the end of that script click on the icon “End transaction” and it will automatically have “Macy’s”, just enter. Similarly we have to do it to every link. After we are done we have to runagain and save the test case with a name.
Toggle Break point
Using the Toggle Break point we can stop the script where ever we want. But it has somelimitations. We can use TBP only before “web_url” & “web_ txt”. Using the ToggleBreak point we can do line by line debugging. After debugging we design the script.There are 3 kinds of errors:1)Syntax error: [ , ; : “ ) ] etc.2)Runtime error: Spelling error.3)Compiling error:Syntax error and Runtime error are tester’s responsibility.Compiling error is programmer’s responsibility.Toggle Break point is only for Runtime error. The TBP looks like a hand symbol. If we put TBP anywhere besides web_url or web_txt the system won’t recognize it and it willrun through without stopping. After designing we can put Toggle Break Point before“LR_start_transaction”. If we put TBP before “LR_end_transaction” it will work but it is better to stop it at start. Sometimes we are not sure about some scripts whether to delete itor not. In that case first put it under comment and run. If it works then delete it. By usingTBP we can do line by line debugging. Toggle Break Point is only for runtime error.We can check the Pass/Fail log in the “Replay log”.
Multiple actions:
 
In Load Runner we have multiple actions. We can make one long script but break it upinto “Action1”, “Action2 etc. to make our job easy. Every time we start a new actionwhile recording that we can click on to the icon “New action” and start another action init.Vuser_init = Vuser initialization. It logs on procedure to the server.Vuser_end = Logs off procedures to the server.In between the Vuser_init & Vuser_end the “Action” is included.An example of multiple actions:In VUGEN open a new file
Click on “Record”
Click on “Autos”
Click on “New cars”
Click on “BMW”
Click on to the icon “New action” and it becomes “Action1”
Click on “Used cars”
Click on “Acura”
Click on to the icon “New action” and it becomes “Action2”
Click on “Sell my car”
Click on “Blue book”
StopTo give a name to the “Action”, highlight, right click, delete and type the new name.
Integration Testing
To integrate tests:
Click on “Action”
“Import action into the Vuser” and you get the window
Click on “Browse”
Highlight the Vuser script you want and
Click “Open”
Highlight the “Action” name and click “OK” and it will come there.Keep doing until you have integrated all the “Actions” and then “Run”.
Parameterization
Definition:Replacing the original value with a different value and the value that you arereplacing has to be in the database.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...