9
8/7/2019 loadrunner-summary http://slidepdf.com/reader/full/loadrunner-summary 1/9 Mercury Virtual User Generator: 1. Open Virtual User Generator and click on New Vuser Script and a window will appear named New Virtual User, click on New Multiple protocol Script and click on web (HTTP/HTML) from Available Protocols and add to selected Protocols and click ok. 2. Click on Start Recording a window named like this will appear. Now enter the URL that you are testing, and go to Record into action and choose Action and click ok.

loadrunner-summary

Embed Size (px)

Citation preview

Page 1: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 1/9

Mercury Virtual User Generator:

1. Open Virtual User Generator and click on New Vuser Script and a window willappear named New Virtual User, click on New Multiple protocol Script and click 

on web (HTTP/HTML) from Available Protocols and add to selected Protocols

and click ok.

2. Click on Start Recording a window named like this will appear. Now enter the

URL that you are testing, and go to Record into action and choose Action andclick ok.

Page 2: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 2/9

3. You will now start recording the URL that you are testing, now select whatever 

you are testing and then click stop and you will get a generated script from the

webpage.

4. Run the script and go to result on - Test Result - , now check what web_url you

need, but don’t close this window. Delete the all of the cookies and all of the

unnecessary code that you don’t need should be commented and then run the

Script again.

5. If no errors where found on the script, delete all of the commented code in the

script.

Page 3: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 3/9

6. Now you have a clean script the next step is for you to comment each web_url,

Insert comment first, then start the transaction and end the transaction for each

web_url.

Page 4: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 4/9

7. Rename the Action given it a meaningful name and save the script on the script

folder.

8. For Multiple Actions we go to the Start Recording window type in your URL

page then go into Record into action and down scroll and click on vuser_init.

9. On the recording window we click the Create New Action button to create a new

action then type in the name of the action (Example: Create new action for theElectronic Department ,then create a new action for Apparel ,then create a new

action for Toys etc…).

 

Parameterization:

1. For parameterization we follow the same steps but on the Start Recordingwindow go into Record into action and down scroll and click on vuser_init. Oncewe have recorded the main page we created a new action and give it a name (step

9). Then click on the Find a Store link on the webpage and we enter a zip code

and press enter and end recording.

2. Now Run the script and repeat steps 1-7.

Page 5: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 5/9

3. After doing steps 1-7 we have to find the value that we are testing, in this

case it is the zip code. Highlight the zip code and right click and click on Replace

with a Parameter. A window named Select or Create Parameter will appear,enter the Parameter Name and click ok.

4. Then Right click on the Parameter Name in a pink color, click onParameter properties and a window name Parameter Properties will appear, next

we click on Edit with Notepad and enter different zip codes (3 good and 3 bad)

then click save and exit. It depends on what you are testing here and there couldbe more than one parameter on the script.

Page 6: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 6/9

Page 7: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 7/9

5. Then Click on Vuser and click on Runtime Setting, Then go on Log andclick on Extended log and check the box for Parameter substitution. Then we go

to Run Logic and change the Number of Iterations to whatever number of times

we want to test.

Page 8: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 8/9

6. Then Run the Script and check the Results. ( For price, address you haveto check on web_url of price or address of that particular page and check what

part of the code changes in order to do parameterization, use Notepad to copy and

paste your parameter ) .

Correlation:

1. Record the webpage that you are testing once you are done click stop, thendebug and take all the cookies and follow the previous steps 1-7. In this case we

will Record www.landsend.com and follow these steps Stop – Run – Debug – 

Design.

2. Once you are done click on Vuser and go to Scan script for Correlation

(remember you have to run the script at least once before you Scan the script for correlation)

Page 9: loadrunner-summary

8/7/2019 loadrunner-summary

http://slidepdf.com/reader/full/loadrunner-summary 9/9

3. Now go to View – Script view; check the correlation results and highlight Text in

Recording and click Correlate.

4. Then open note pad and copy the Dynamically Generated Value on the script and

paste into the notepad. After doing so copy WCSPARAM_Diffl.

5. Then click on Vuser and click on Run time setting and then go to the log andcheck the Extended Log and check all the boxes there which are: Parameter, Data

Returned by Server, and Advance Trace.

6. Then go to replay log and we Find WCSPARAM_Diffl in the replay log. Thencopy the Dynamically Generated Value (DGV) and paste on Notepad.

7. Then Run again get the DGV copy and paste and then run again. The purpose of 

Correlation option is to capture the DGV from the server and check that the DGVis never the same.

Import Action:

1. Open new scrip then go to Action and click Import Action into Vuser a

window will appear named Import Action. Then we browse to find our action that

has been saved. Then we select the action and open it to the script that we arecreating.

2. We repeat this until we are done importing all of our action into the script.

3. We may delete whatever action that we don’t need. After importing all the actionthat we need we have to follow these steps debug – design – and save.