Can i run the qtp, without OBJECT REPOSTIRY...

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


Please Help Members By Posting Answers For Below Questions

How does qtp recognize objects in aut?

592


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.

1382


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.

1853


Your roles and responsibilities and daily tasks? (As automation tester)

2581


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.

1537






How do you check ticket cost and ticket number in flight application?

591


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

1903


Explain the concept of object repository and how qtp recognises objects?

528


can i compare two databases using QTP ?

1884


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?

656


Dis advantages of XML checkpoint ?

1579


Differences between quicktest professional (qtp) and winrunner?

625


What are the main differences of qtp and win runner?

595


why text area checkpoints cannot used for web applications

1883


How is test case write?

576