what is descriptive.create()in qtp?
Answers were Sorted based on User's Feedback
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 |
Answer / bhuvana
Descriptive programming is to give a description to any obj
by us.and this can be reused
Set objEdit=description.Create()
objEdit.Value("nativeText")="Edit"
objEdit.value("AttachedText")="Enter Text"
window("Application1").Dialog("Login").objEdit.set ("Name1")
window("Application").Dialog("Login").Ok.Click
then you can give diffeternt names in the datasheet and
slow the script to fetch the names from there
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sreeprasad
To create properties collection and we can create
properties object(MYDescription).once we have filled
properties collection with a set of properties objects
(properties,values) we can specify properties object in
place of an obj name
| Is This Answer Correct ? | 1 Yes | 1 No |
CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
What are output values and why they are used ?
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
I have application it is one digital clock with all minutes and seconds. you have to identify the time to verify weather the time displayed is correct time or not? How do you automate this scenario?
what is the difference between parameters and arguments?
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp
If a script has a local repository and also uses a shared repository, which repository will QTP use first when searching for an object during playback?