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

QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

1 Answers  


what is active screen,keyboard view?

2 Answers   BirlaSoft,


what is output parameters in qtp?explain? 2)

2 Answers   Span Infotech, TCS,


hi all i have qtp 9.0, Active screen is not working means after recording script snap shots not displayed in Active screen window. i have all ready check all setting means Tool...>option...>Active screen...>Default Level button is disabled. Is there other setting is remain to set Pls help i m new for qtp

1 Answers  


i have .xls,.txt,.doc files are there (together). i want find only .xls file among them? how can we write function?

3 Answers   CTS,






What are the data types in qtp?

0 Answers  


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

0 Answers   IGI,


Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,


Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?

1 Answers  


WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?

1 Answers   CTS,


What are the properties you would use for identifying a browser & page when using descriptive programming ?

2 Answers  


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


Categories