ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
how can you select random value for every iteration from a
weblist
 Question Submitted By :: Raj
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can you select random value for every iteration from a weblist
Answer
# 1
get thetotal items in the list 
and use the ' Randamize ' function Rnd()
 
Is This Answer Correct ?    0 Yes 2 No
Kiran1783
 
  Re: how can you select random value for every iteration from a weblist
Answer
# 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")
Browser("Browsername").Page("PageTile").WebList
("WebListName").Select ("#" & RandomNumber(0,ItemsCount))
 
Is This Answer Correct ?    4 Yes 2 No
Amarendra Kothuru
 
 
 
  Re: how can you select random value for every iteration from a weblist
Answer
# 3
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

next
 
Is This Answer Correct ?    0 Yes 1 No
Kishore
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
HI, Based On The Information Below Write A Data Driven test Script Edit Box 1 Should take Value From Num1 Column Edit Box 2 Should take Value From Num2 Column Click On Add Button, Get The Value Of Exp res Column, Get Value From Actual Result Edit Box , Compare Two Values, Write Pass / Fail Value Into Result Column Thanks In Advance... Kavitha Input.Xls Num1 Num2 Exp res Act res Result 10 30 40 40 Pass 50 40 90 90.5 - - - - - - - - - - - - - - - - UHG3
what are the different data driven types?  6
How can we open an Excel sheet through the script eSymbiosis6
can we run the scripts of QTP8.2 in QTP7.0?  1
What is the Risk Analysis? Waht types of risk analysis are there?  1
How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana) Wipro4
hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com  2
how to merge object repositories?  4
What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?  2
How we can merge the object repositories?say if we have two or three object repositories then how e can merge them? is there any option in Qtp to merge the object repositories BirlaSoft4
How to add a runtime parameter to a data sheet?  4
diff between dim & redim ? in detailed? pls any one explain me?  1
How to retrive the property of an object?  5
Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent  1
How to load a object repository in QTP during runtime? Virtusa1
how to identify an object which is not in the object repository identification can be done using descriptive programming.  2
What is creation time property and how does it work?  1
Is there anyone can tell me where I can download free or trial QTP? I tried HP website, it was not there anymore. If someone know, pls send me URL. Tks...  1
what is smart identification?  1
What is test automation framework?which framework does QTP follow?Need some practical explanation as to how u will start ur testing process following a particular framework? Sony2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com