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

Is text area check point supports for web applications?

0 Answers  


what are the different kinds of frameworks in automation?

2 Answers   Accenture,


How to use the object spy in quicktest professional 8.0 version?

0 Answers  


suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro)

4 Answers   Fidelity, Wipro,


what is action in QTP?

1 Answers   Infosys,






Suppose there is a bitmap with some text in it how do you write the script to get the text.

2 Answers   BirlaSoft,


what is mean by output parameters? I need full description with example. tell me any one please

1 Answers  


What is the difference between link and hyperlink?

1 Answers  


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


what is descriptive programming in QTP? How can be done?

19 Answers   Accenture,


What is the Difference between copy to action and call to action?

0 Answers  


In qtp, explain what is qrs file?

0 Answers  


Categories