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.
Answer Posted / 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 View All Answers
In Remote acess server how u run a test?
Explain the check points in quicktest professional?
Is it possible to call from one action to another action in qtp?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
What is the difference between local and shared object repository in qtp?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
How do client side image and server side image work?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
What r the different filters in defect in quality center
Should have experience in framework means?
How to find the difference between 2 dates in qtp?
Have you faced any problems with object repository?