I have a WebEdit Object.It is added in object repository.It
has two properties Name and Index.In the next release the
Name Property is same but the index property is
changed.when i run the script will the script Pass or Fail
Answer Posted / kishan
Name is usually under Mandatory Property of a webEdit Element.
Eventhough the Index property changes, as QTP Intially Use
the Mandatory Property(name)to identify the object,
case 1:
*******
if that name property is unique in that webPage then QTp
will definetly identify that webEdit object without any fialure.
(I have checked it even by making smart identification false
+ Index property : changing(1 to 12). still QTP is able to
identify the object properly w/o any issues.)
case 2:
******
If web page has 2 objects with same properties then we
should use index property. This time script will fail if we
dont specify correct index value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
what are all the fileds present in object repository?
How to save your test using quicktest professional (qtp)?
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
Explain how qtp identifies objects?
What is the use of an object spy tool in qtp?
Can U Explain about QTP tool from older version to latest version also its differences?
How to use Environment parameterization? Explain with an example.
What is test object model in quicktest professional?
What are the views available in quicktest professional?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
What are the features of quick test pro(qtp)?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
If I change the object name in one action will it be updated in all the actions? Or not?
How to execute a winrunner script in quicktest professional (qtp)?