:: 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 (3495)
 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 ?    3 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
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance.. Wipro 12
What are objects? how do you select the unknow object?   3
Will QTP gets installed on virtual PC.What is the maintenance number to be given   1
How to covert a String to an integer?   4
how to count spaces in a given string ex: "this is jagadeesh" in QTP with simple functional script Cap-Gemini 4
How to database testing by manualy?in my db having 100 records when i am retriving the data from db it shows in frent end 30 records how to find bug using QTP?plz Exp realtimers (Chandana) Wipro 7
w is descriptive programming TCS 2
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties.. Clinical-Soft 5
Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me   1
If we are record a same web page for 2 times.1st time it is showing 6 objects in the Object Repository and for the 2nd time it is showing like 7 Objects in the Object Repository why it is happening Kanbay 4
Explain the concept of object repository & how QTP recognises objects?   1
Give me brief idea about QTP automation object model? TCS 5
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.   ::