More on Loops and String Comparison in LoadRunner

String Comparison in LoadRunner

After watching the video please solve the following questions:
Use loop to resolve question 1,2,3,4 and 7
1. sum = 13+26+39+…..+260
2. result = 3*7*11*……………………….*23
3. result = 100/2 + 200/2 +300/2………..10000/2
4. sum = 23+83+123+………+803
5. Save “Software QA Testing” to a parameter “sParam1”
Save “Software Qa Testing” to a parameter “sParam2”
Write a program to compare this two-string using strcmp.
Use if….else to display appropriate message.
Also write details of what you know about strcmp.
6. Save “Software QA Testing” to a parameter “sParam1”
Save “QA” to a parameter “sParam2”
Write a program to find if “sParam2” is present in “sParam1” using strstr.
Use if….else to display appropriate message.
Also write details of what you know about strstr.
7. Display the following series: 19,33,47……………500

Upload the comment here and I will provide feedback.

Leave a Reply

Your email address will not be published. Required fields are marked *

*