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
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 |
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 |
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 |
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 |
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
how to capture data from images in QTP and produce them in excel sheet?
1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?
IS standard check point is very important than the other check points in QTP? If so why?
How to find given string is palindrome or not without using strreverse() function?
take one example and write vbscript on one web application in qtp? explian descriptive programe with one example?
How do you invoke an application using the step generator in qtp?
Is it mandatory to know abt regular expression in descriptive programming
In an application you have a web table. You are provided with an external Excel sheet with the same structure as that of the web table. How will you retrieve all data from the web table and compare it with corresponding data available in the excel sheet, using QTP? How will you report the results in QTP?
How to call a function in QTP?Is there any method ? Thanks , PRASANNA
Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri
WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........