Hi any body can tell me the in detaled information about
Description.Create() thanks in advance

Answers were Sorted based on User's Feedback



Hi any body can tell me the in detaled information about Description.Create() thanks in advance..

Answer / chandu

description .create() is used for descriptive programming
without adding the objects in the Obj repository we'll use
this. for example to create a button object use the
following code

set b1=description.create
b1("Class Name").value="webButton"
b1("attached text").value="OK"

Is This Answer Correct ?    0 Yes 0 No

Hi any body can tell me the in detaled information about Description.Create() thanks in advance..

Answer / kumar .c

Description.Create() is indicated the Descriptive
programming starting syntax. it is used for when
objectrepository is not available and when client ask
spcifically then tester go for descriptive programming.


the following code is example for login page descriptive
programming

Set br= descrition.Create
br("applicationversion").value = "internetexplorer 6"
set pg= description.create
pg("page name").value = "Login"
set weu=description.create
we("text").value = "username"
set wep =description.create
wep("text").value = "password"
set wb=description.create
wb("name").value = "OK"
login page script
systemutil.run "serverpath","",".exepath".open
browser(br).navigate "url"
browser(br).page(pg).webedit(weu).set "chaitu"
browser(br).page(pg).webedit(wep).set "merrcury"
browser(br).page(pg).webbutton(wb).click

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

Error handling

3 Answers   Wipro,


How to use the Object spy in QTP 8.0 version?

2 Answers  


how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage

2 Answers  


In real time ,How to run all scripts in QTP? i,e in projects

3 Answers  


In qtp, how you can remove the spaces from string?

0 Answers  






How to analyzing the checpoint results?

0 Answers  


What is difference between QC and TD?

8 Answers  


Write a script to customize the test results in PDF and HTML format.

0 Answers   DuPont,


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


Can I do Game testing with QTP tool

1 Answers   Google,


Hi Frriends... I have one Query please give the apropriate ans. when we r working with web based application , the user loggedin page name is changed respect to the username ( Take a exp. Yahoomail.com) .When we use Datadriven test to this scenario ,each time the loggedin page name is changed ...then the script is fail.. at that time wat can do... please give the apropriate ans. Thanx in advance..

3 Answers  


1. IS A VIRTUAL OBJECT USED WHEN THE LABEL IS NOT RECOGNIZED BY QTP

7 Answers   Ordain Solutions,


Categories