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?
Answer Posted / 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 View All Answers
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
What is optional step in qtp? How you can add optional step in qtp?
What are the factors on which script execution time is dependent?
How to analyzing test results using quicktest professional?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
Hi All, How to Compare two strings character by character in QTP
what is Property......End Property loop? how to write sript for it in QTP
What is an expert view and keyword view?
How to use setroproperty?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance
How many types of Automation frameworks are there in UFT? Describe them.
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
What are the features supported by UFT?