Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How you know that a test case is a regression test case

3896


can i compare two databases using QTP ?

2350


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.

1993


What is quick test pro?

1002


What is the use of Debug Viewer?

1888


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

2026


What is synchronization? What are the ways you can synchronize?

1098


Explain the difference between call to action and copy action?

921


What is action? How many types of actions are there in qtp?

1040


desribe a situation where u faced a stressful situation and how did u cope with it

1814


What is the process of synchronizing qtp and aut?

973


Explain quicktest professional testing process?

954


How you can delete excel file in qtp?

1019


What is test object?

1081


What is RTM (require ment tracebulity marix) fromate?

1972