Hi any body can tell me the in detaled information about
Description.Create() thanks in advance
Answers were Sorted based on User's Feedback
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 |
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 |
Error handling
How to use the Object spy in QTP 8.0 version?
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
In real time ,How to run all scripts in QTP? i,e in projects
In qtp, how you can remove the spaces from string?
How to analyzing the checpoint results?
What is difference between QC and TD?
Write a script to customize the test results in PDF and HTML format.
What are the advantages of QTP over WinRunner?
Can I do Game testing with QTP tool
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..
1. IS A VIRTUAL OBJECT USED WHEN THE LABEL IS NOT RECOGNIZED BY QTP