Answer Posted / lokesh kanithi
Hi Srinivasan!
Identification can be done using descriptive programming.
Here is example # 1 with description object.
set EditDesc = Description.Create()
EditDesc("Name").Value = "userName"
EditDesc("Index").Value = "0"
Browser("Welcome: Mercury").Page("Welcome: Mercury").WebEdit
(EditDesc).Set "MyName"
Here is example # 2 with out description object.
Dialog("text:=Login").WinEdit("window id:=3001","attached
text:=Agent.*").Set "john"
Dialog("text:=Login").WinEdit("window id:=2000","attached
text:=Password:").Set "mercury"
Dialog("text:=Login").WinButton("text:=OK").Click
These both method will be used in expert view to identify
object with out object avaialble in object repository.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
With what extension you can save the list of tests in a file to run in test batch runner?
Explain the parameter in qtp?
How to check which add-ins are associated with a test in qtp?
What is Distributed testing? How does UFT support it?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
How to replay a script in qtp?
what is run action?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
Name the properties you would use for identifying a browser and page when using descriptive programming?
Is qtp supports uni-code?
Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
Explain data driven framework?
Where to use Property Let, Property Get, Property Set in UFT