How do we Access, retriew and edit the runtime objects in
Automation Testing using QTP

Answer Posted / baba

We cannot edit runtime objects in Automation Testing, bcoz
Runtime objects means the Objects available in AUT,
we can only use the properties available for objects and we
can change the property/properties available in OR during
runtime by using SETTOPROPERTY

We can retrieve the property and its value by using

GetRoProperty

eg:
dialog("Login").Activate
dialog("Login").WinButton("OK").SetTOProperty "text","Cance"
print dialog("Login").WinButton("OK").GetROProperty("text")

it returns "Cance"

it is changing the property value during runtime.

please check it once in ur QTP

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we do the frame work in qtp

1820


How to create runtime property for an object?

1703


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2218


The hybrid framework can be implemented for any application. Is it true?

806


Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

2294


What is quicktest professional?

781


Define Canvas view of UFT?

814


what is description object?

1828


Write a script to verify font style and color of a windows object using descriptive programming

1119


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1642


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1630


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1971


What is the use of ordinal identifier in qtp?

793


What is the difference between Keyword Driven test and Data Driven test?

2013


How is test case write?

802