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 to break the object spy ?

874


How to add synchronisation points in qtp?

764


What is the file extension of the code file in qtp?

764


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1737


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

1830


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1605


How will you report the bug and explain the defect tracking sheet you handled?

2797


How you debug your script?

752


What are some test assets and related extensions of qtp?

773


Explain the difference between check point and output value?

712


How does quicktest professional (qtp) identifies the object in the application?

773


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1760


write script for bitmap image?

1769


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3676


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2786