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
what type of automation is follwed in the project?
Which scripting language used by quicktest professional (qtp)?
How to find the difference between 2 dates in qtp?
what are all the fileds present in object repository?
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
what is keyword driven testing in qtp?n how is it useful?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
Hai anyone please "Explain about Framework in QTP?"
Is text area check point supports for web applications?
How many types of actions are there in quicktest professional (qtp)?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?