How to create runtime property for an object?

Answer Posted / prasad

there are three Methods like
For Test Object(TO)
1. GetToProperty()
2. SetToProperty()

For Runtime Object
1.GetRoProperty()

First thing is that every object are treated as the Test
Object(TO) by QTP.

ex.
Suppose u r working with "OK" button. so all the properties
and logical name of the "OK" button will be Stored in
OR(Obj. Repos.)Here it will be treated as TO.When QTP
execute the script it will search the "Ok" button based on
its properties and logical name.In this case it will be
treated as RO. So i don't this that it is needed to create a RO.

Please make me Clarify against it........if any

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

1617


What do you to script when objects are removed from application?

602


Suggest and Define a solution for an application whose objects are not recognized by UFT?

656


Hello friends..... On which areas of an application we can not test with QTP

1547


Explain the new feature of UFT regarding the export of test results?

565






Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2156


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1464


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1363


What is the difference between analog and low level recording?

606


How many types of trigger events are there in qtp?

541


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1609


What are the automation metrice in your project?

1703


how to acess a test in RSA?

1652


How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538

3598


How will you find the current time of the remote machine using QTP script?

583