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
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 |
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 |
Why you are Using Descriptive programming instead of Object Repository?
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..
i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no?
what is the Exact Meaning of Environment Variables?
What is the use of Accessibility check point?
What are the methods used in UFT to handle exceptions or run-time errors?
What is data driver in qtp? Where we use it?
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
Can we select add ins in UFT during run time
What is iteration? How it is related to Test Results in QTP
3 Answers Virinchi Technologies,
How to make arguments optional in a function?
regular expression