In automation testing, while doing descriptive programing;
how will u get the properties of the objects in what
format, what type of a document, and by whom? Pls explain
in detail. Thanks a lot

Answer Posted / saroj

We usually write descriptive programming while we have to
work on a object which appears run time( unable to add to
the repository). ex: I have to add some links to a page run
time and need to click on them. Here we have to write
descriptive programing to work on the links. As I know the
following properties ( Class: Link, Name:<linkname> ).
Using this combination write descriptive programming.

Set midesc=Description.Create()
midesc("micclass").value="link"
midesc("text").value="<name>"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of environment variables in qtp?

550


I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

1414


What are the features and benefits of quick test pro (qtp 8.0)?

603


Have you used xml check point in your project?

558


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1542






What is method name to compare two XML files.

1541


How many types of actions are there in quicktest professional (qtp)?

540


How to create a standard checkpoint ?

561


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1630


Can we Test Welcome Screens and Process Images with QTP

1434


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2190


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1398


can i compare two databases using QTP ?

1888


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1507


How many tabs are available in debug viewer pane?

649