I'm quite new at QTP. Im doing a web-based app testing. I
create something new item and a new link is created in the
home page. This link is dynamic as it changes every 3
seconds. Obviously the new link is not in my Object Repo
and I am trying to find a way how can I do a check or get
the propery of the link I created. I can do it on keyword,
but I need to do a check on expert mode, vbscript. I always
get an error that is not identified whenever i try to check
it (browser(b),page(p).link(newlink). Any idea?

Answers were Sorted based on User's Feedback



I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new..

Answer / qatechie

I think using descriptive programming can provide you a
solution.
Try to create a Description object for the link. Since the
url/link is dynamic, use the regular expression to find this
link on the homepage. I am not sure, if I answered your
question but think this as one possible solution.

Is This Answer Correct ?    1 Yes 0 No

I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new..

Answer / saff5005

i thinck u need to enable smart identification mechanism
which identifes the object by its properties ,
so for doing this ,steps are as follows

1)Choose Tools > Object Identification. The Object
Identification dialog box opens.

2)Select the appropriate environment in the Environment
list.
3. Select the test object class you want to configure.
4. Click the Configure button next to the Enable Smart
Identification check box. The Smart Identification
Properties dialog box opens:


choose what ever properties u want to give to base filter n
optional filter .and then run the test

correct me if i am wrong

Is This Answer Correct ?    1 Yes 1 No

I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new..

Answer / pravati

use Descriptive dynamic programming and use the property in getroproperty which is same for every new link.also use smart identification,and Regular Expression

Is This Answer Correct ?    0 Yes 0 No

I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new..

Answer / babu

Create a output value for that particular link and store it
in a Action/Gloabal Datatable. Store that link in to a
variable. Using Settoproperty, set that stored link value
to "Value" parameter.
Change the link name in the object repository as well and
pass the same link name to the link method.
Whenever the link is changed, that link will be stroed in
the datatable and the value will be set to the link object.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

What is the use of running the scripts in Hidden-mode in UFT?

0 Answers  


Why to use descriptive programming?

0 Answers  


how to test Web application using QTP software

0 Answers  


What does VBS file contain..? what is VBS file.?

4 Answers  


They asked by using qtp recording writing scripting

0 Answers   Wipro,






How to use actions in qtp ?

0 Answers  


PLS SEND REAL TIMERS, WHAT IS SOA TESTING..IM TRYING 3+ YR.. I HAVE GOOD KNOWLEDGE ON MANUAL TESTING... NOW IM NEW TO LEARN "ETL TESTING" IS BEST OR NOT? BEFORE LEARNING ETL TESTING ANY SKILLS ARE REQUIRED..... AND NOW WHAT IS THE MARKET FOR ETL TESTING... AND IT IS BASED ON PROGRAMMING OR NOT?PLS HELP ME REAL TIMERS IM REQESTING U..... CONTACT ME gan9000@gmail.com

1 Answers  


What is synchronization? What are the ways you can synchronize?

0 Answers  


I have 14 itmes in a drop down that are associated with an account And these items change with different accounts I want to be able to define it by and index number or any other id so if I enter 2 in my Global excel sheet it selects the 2nd item from the drop down - is this possible?

5 Answers   Rogers,


How to Creating an Output Value using QTP?

1 Answers  


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

0 Answers  


Categories