how to generate numbers in between to numbers suppose
numbers in between 500 to 1000 in sequencies using vbscript
Answer Posted / amarendra kothuru
Using loops in vb Script, you can generate numbers between
specified range
E.g:
For i= 501 to 1000
Reporter.ReportEvent micPass, "Value: " & i, "Number
between 500 to 1000"
Next
'gives the output as 501,502, 503, etc...
If you want generate random number between 500 to 1000, use
the function "RandomNumber(inbuilt function of QTP, but not
VB Sscript function)
E.g: var_Num = RandomNumber(500,1000)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which scripting language used by quicktest professional?
explain abt dyanamic changing object with example?
What is 'sleep' in sync point?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
how to write xml output check point bu useing descriptive programing .means without useing output check point
How many types of status are there?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
How do you test DLL files using automation Tool QTP?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
How to customize qtp?
What is method name to compare two XML files.
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...