Overview

Overview

Welcome to QTP interview questions

Hello software Quality engineers. Welcome to our Software testing world and common QTP(Quick test pro) related technical issues, interview questions etc. . Over 2 years, I am trying to update all possible interview questions in testing area of QTP. With your continuous comments on the topics and suggestions, we are growing day by day.

Showing posts with label test object. Show all posts
Showing posts with label test object. Show all posts

Wednesday, December 19, 2007

How 2 change D logical name of a Test Object?

When recording an object QuickTest Professional uses one of D object's properties as D logical name 4 D object (the name displayed in D Expert View and in D KeywardView modes).
U can change D property that is used 2 be a different one bi specifying which property's value U want 2 use as D logical name 4 D object.
For example in order 2 use D alt property as D logical name of an image, run regedit.exe and set D following information:[HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest\Test Objects\Image]
"tag query name"="alt"

What do know by ADD-ins in QTP? Properties of Test object? Runtime object?

Test objects are the one that will be recognized by QTP, where as Runtime objects are the actual objects that the test objects will be linked to.

SetTOProperty() function is used to change the properties of a test object.
Similarly GetROProperty(outer text) is used to get the outer text of object. Or you can use,
Webelement().object.outerText = “asasasasssa”.