:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Testing >> Automation Testing >> QTP


 WinRunner interview questions  WinRunner Interview Questions (496)
 Load Runner interview questions  Load Runner Interview Questions (486)
 QTP interview questions  QTP Interview Questions (3504)
 Test Director interview questions  Test Director Interview Questions (161)
 Rational TestSuite interview questions  Rational TestSuite Interview Questions (106)
 Silk Test interview questions  Silk Test Interview Questions (59)
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions (385)
how can you select random value for every iteration from a
 Question Submitted By :: QTP
I also faced this Question!!     Answer Posted By  
# 1
Dim ListCount

ListCount =
count")'Count the items in the list

ListCount = ListCount-1 'index value starts from 0

Randomize 'initiate random number

RandomValueList = Int(ListCount * Rnd)' convert
listcount as random number in the RandomValueList variable

("#" & RandomValueList) 'Call the RandomValueList variable
appending to index of weblist
Is This Answer Correct ?    4 Yes 1 No
# 2
First get the Items count from the List and Use the
RandomNumber() function to get the random Index value. The
below code will work

ItemsCount = Browser("Browsername").Page("PageTile").WebList
("WebListName").GetROProperty("items count")
("WebListName").Select ("#" & RandomNumber(0,ItemsCount))
Is This Answer Correct ?    6 Yes 7 No
Amarendra Kothuru
# 3
get thetotal items in the list
and use the ' Randamize ' function Rnd()
Is This Answer Correct ?    1 Yes 4 No
# 4
Get the count of elements in the weblist

for i = 0 to count-1

result = randomnumber(i,count-1)

browser("xyz").page("xyz").weblist(" ") .select result

Is This Answer Correct ?    0 Yes 5 No

Other QTP Interview Questions
  Question Asked @ Answers
Give a comment on Regular Expressions using QTP?   4
What is the another extension name of library file. If that is exist than what's the difference between them. Synechron 2
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain Polaris 4
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???   4
hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take? ADP 1
how qtp will recognise if application is run on many browsers Cap-Gemini 1
What is source control?   1
What are the properties you would use for identifying a browser & page when using descriptive programming ?   2
Hi Friends, while playing the recorded test i am getting this error "Cannot identify the object "q" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application." error is coming in this line of code "Line (2): "Browser("Google").Page("Google").WebEdit("q").Set "airtel broadband"". " .... please tell me how to overcome this problem. need help asap... Thanx in advance   3
What are the file extensions for per-action, shared object repository files and what is the extension for library files? Semantic-Space 8
Suppose u write test case in Excel sheet . how u open that test case in Test Director? Ordain-Solutions 4
difference Between LowLevel and Normal Recording Modes?   4
For more QTP Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::