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
Diff b/w test scenario's and test Procedures?
What is fragmentation and paging?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
In qtp is it possible to check broken links of a page?
Tell some commonly used Excel VBA functions?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
Explain advantages and disadvantages of ddf?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
How to customize checkpoints with parameters?
What are test settings and global settings?
What is Associate Repository in QTP 9.2 ?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?
How would you export a script from one pc to another in qtp?
Difference between action & Reusable action?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?