How to Get the Run-time value of an object under that web
app under Test to the local data table sheet of that Action?

Answers were Sorted based on User's Feedback



How to Get the Run-time value of an object under that web app under Test to the local data table sh..

Answer / shriram

Output value is used to catch the run time value. This can
be used to match actual and expected value same as
Checkpoints in QTP.

Is This Answer Correct ?    2 Yes 0 No

How to Get the Run-time value of an object under that web app under Test to the local data table sh..

Answer / kishan

Point to Remember:
1. get the Run time property using "getROproperty" method
2. Use DataTable.value property to set the required value to
a cell in datatable

Sample Code:

val=Browser().Page().webEdit().getRoproperty("<propertyName>")

DataTable.AddSheet "mysheet"
DataTable.getsheet("mysheet").AddParameter "myParam",val

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


whenever a scenario is recorded ever, it creates a object repository automatically (‘per action’ /local ). we do not need to make them individually…then why we need a shared object repository. How it will be practically utilized ?? your input will be highly appreciated..

5 Answers  


i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no?

6 Answers   IBM,


what is the Exact Meaning of Environment Variables?

10 Answers   AppLabs,


What is the use of Accessibility check point?

3 Answers  


What are the methods used in UFT to handle exceptions or run-time errors?

0 Answers  


What is data driver in qtp? Where we use it?

0 Answers  


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

0 Answers   Cap Gemini,


Can we select add ins in UFT during run time

1 Answers   NIIT,


What is iteration? How it is related to Test Results in QTP

3 Answers   Virinchi Technologies,


How to make arguments optional in a function?

0 Answers   Crea,


regular expression

2 Answers   Wipro,


Categories