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


Please Help Members By Posting Answers For Below Questions

How many types of parameters are there?

547


The hybrid framework can be implemented for any application. Is it true?

587


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

654


how do i know how to use tools

1453


What are the different attribute used with regular expression?

535






can any body give the banking domain concepts/links

3633


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1442


How QTP support all types of applications (platforms)?

4081


What are test settings and global settings?

579


What are the features supported by UFT?

671


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1498


Explain runtime dynamic settings?

2026


Did QTP prove efficient for your project? Yes or No, explain?

6119


What is action? How many types of actions are there in qtp?

614


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1337