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
How you know that a test case is a regression test case
can i compare two databases using QTP ?
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What is quick test pro?
What is the use of Debug Viewer?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
What is synchronization? What are the ways you can synchronize?
Explain the difference between call to action and copy action?
What is action? How many types of actions are there in qtp?
desribe a situation where u faced a stressful situation and how did u cope with it
What is the process of synchronizing qtp and aut?
Explain quicktest professional testing process?
How you can delete excel file in qtp?
What is test object?
What is RTM (require ment tracebulity marix) fromate?