Can we use Virtual Objects in Discriptive Programming?
Answer Posted / uday
Yes, we can define virtual objects using Descriptive
Programming.
You should use x, y, width and height properties to define
virtual objects.
The script will look like below:
window("Paint").WinObject("NetUIHWND").virtualobject("x:=256","y:=66","width:=22","height:=20").Click
13,11
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Mention what are the different types of recording modes in qtp? Which will be used when?
How can you write the scripts that operate on different objects depending on run-time information?
what is impact analysis on regression testing?
How will you handle java tree in qtp?
Hai anyone please "Explain about Framework in QTP?"
what is the difference between data driver & data driven and driver script?
Explain the concept of object repository?
write a script to verify the image path(src property) of the images which are in web pages.
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
If created one virtual object? Next time I changed the window position will it work?
Explain how you can find the absolute value of the number in qtp?
Difference between action & Reusable action?
Explain about business process component? types and usage?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
after initiating one project for testing, when exacltly QTP tester role starts?