what is descriptive.create()in qtp?

Answer Posted / nanda

This is used when we are working with descriptive programming.
that is not descriptive..

description.create...

it is used to create an object through scripting.

for example..

set objtext = description.create
objtext("nativeclass").value = Edit
objtext("attachedtext").value = "XXXXX"

now objtext is an edit box with name XXXXX

browser("dsagd").page("dsada").webedit(objtext).set "dsahdas"

If any queries....
nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can delete excel file in qtp?

601


How will you check a web application for broken links using qtp?

556


Explain about the test fusion report of quicktest professional (qtp)?

545


Hoe can we do retesting using functions please give the code for it using login page

1572


wht type of User defined functions or Java Releated functions do we write in VB scripting

1836






Explain how Selenium is different from UFT?

700


write script for bitmap image?

1549


What is an expert view and keyword view?

576


What are the disadvantages of recording test cases in qtp?

599


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1773


what r the main attributes of test automation?

1482


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1552


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

581


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

546


What are private functions in QTP? How they can be called from the function library?

638