How do we create and run the scripts with out using O.R. ?

Answers were Sorted based on User's Feedback



How do we create and run the scripts with out using O.R. ?..

Answer / rav

Using descriptive programming, you can define all the
objects in the script itself..you dont necessarily need to
use OR for that...

Is This Answer Correct ?    3 Yes 0 No

How do we create and run the scripts with out using O.R. ?..

Answer / king

dialog("regexpwndtitle:=login").winedit("attached
text:=Agent Name:").set "raju"
dialog("regexpwndtitle:=login").winedit("attached
text:=Password:").set "mercury"
dialog("regexpwndtitle:=login").winbutton
("regexpwndtitle:=ok").click
window("regexpwndtitle:=Flight Reservation").ActiveX
("acx_name:=MaskEdBox").Type "080808"
window("regexpwndtitle:=Flight Reservation").wincombobox
("attached text:=fly from:").Select "Denver"
window("regexpwndtitle:=Flight Reservation").wincombobox
("attached text:=fly to:").Select "London"
window("regexpwndtitle:=Flight Reservation").winbutton
("regexpwndtitle:=flight").click

Is This Answer Correct ?    3 Yes 1 No

How do we create and run the scripts with out using O.R. ?..

Answer / usha

Thank you for the answer. Can u please give me an example
so that I get a clear Idea ?

Is This Answer Correct ?    1 Yes 0 No

How do we create and run the scripts with out using O.R. ?..

Answer / rani

We can create and run the scripts without Object Repository,
Object Repository is nothing but collection of properties
and corresponding values. Each collection represents an
object.
Descriptive programming is a way of specifying properties
and values without using the OR interface.
Throwing the properties and values straight into the
command.

Ex:
Systemutil.Run"www.mail.yahoo.com"
Set a=Browser("name:=Yahoo!.*").page("title:=Yahoo!.*")
a.WebEdit("name:=login").Set "yourusername"
a.WebEdit("name:=passwd").Set "xxxx"
a.Webbutton("name:=Sign in").Click

You can try this code.It should work if you provide valid
username and password.
Let me know still if you are not clear on this.

Is This Answer Correct ?    0 Yes 0 No

How do we create and run the scripts with out using O.R. ?..

Answer / viswajith

Very nice Answer Rani.

Can u tell me that what is the recovery scenario?

Explain it in understandable format.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

6 Answers   CTS,


What are the option you can use to synchronize your test?

2 Answers  


Synchronozation types in QTP

11 Answers   Diebold,


How will you handle the situation when object is not captured during record?

12 Answers   AZTEC,


is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?

2 Answers  


what is database check point, how will you parameterize the database from seperate data table?

2 Answers   JPMorgan Chase,


how to write scripts in QTP?

4 Answers   Ordain Solutions,


if interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company?

1 Answers   iGate,


after click on compose mail how can we attached a file in qtp with vbscript code

0 Answers  


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

2 Answers  


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

0 Answers  


Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?

3 Answers  


Categories