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
How does qtp recognize objects in aut?
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
Your roles and responsibilities and daily tasks? (As automation tester)
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
How do you check ticket cost and ticket number in flight application?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
Explain the concept of object repository and how qtp recognises objects?
can i compare two databases using QTP ?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
Dis advantages of XML checkpoint ?
Differences between quicktest professional (qtp) and winrunner?
What are the main differences of qtp and win runner?
why text area checkpoints cannot used for web applications
How is test case write?