Hi Friends,
I have an application that is having some options to
choose. While doing business transaction I need to select
one option among from available options. But here the thing
is, we won't get one option which we've chosen already and
the available options will get automatically from the
system with time basis, moreover each and every option
having with various label names respective to that option.

So obviously if I run my recorded script will automatically
gets fail, even though it got pass at first time.

Could anyone please give me appropriate solution for this.
I would be greatly obliged with you if you give the
solution as soon as possible.



Hi Friends, I have an application that is having some options to choose. While doing business tra..

Answer / sunil kumarvv

Hi,
First of all You can spy for particular objects and write
the Descriptive programming.Suppose If The type of Object
is WebRadio Button.
Set pBrowser=Browser
("micclass:=Browser","CreationTime:=1").Page
("micclass:=Page")
Set sObj=Description.Create()
sObj("micclass").Value="WebRadio"
sObj("html tag").Value="INPUT"
Set sLink=iBrowser.ChildObjects(sObj)
sCount=sLink.Count()
For i=0 to sCount-1
sName=sLink(i).GetRoProperty("name")
If sName=Expected Value Then
sLink(i).Select "1"
Exit For
End If
Next
Use this Code.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More QTP Interview Questions

How do you configure QTP AND Test director?

0 Answers  


please any one can explain the keyword driven framework. with gmail example.

0 Answers  


wat are views in qtp explain

3 Answers   IGT,


How to do excception handling ( error handling ) in QTP

6 Answers   Institute for Medical Education,


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,






hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

0 Answers  


How the automated tests in org

1 Answers   Maintec,


how can I read text in browser and export the same into text file?

5 Answers   HP,


Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

1 Answers  


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

0 Answers   Wipro,


How can I test the unix shell in QTP

2 Answers   Persistent,


Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?

1 Answers  


Categories