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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the features and benefits of quick test pro(qtp)?

508


In qtp, how you can exit for loop?

519


How many types of recording facility are available in quicktest professional (qtp)?

597


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3433


What is the Command used to start the QTP

1524






What will be happen if i load object repository at run time, but it has already associated.

1253


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

564


What is qtpro? What is quick test pro?

555


How to execute a winrunner script in quicktest professional (qtp)?

509


What are the different kinds of test steps?

562


How can you write the scripts that operate on different objects depending on run-time information?

2108


How to use the object spy in quicktest professional 8.0 version?

538


Define object spy ?

554


What are the various automation frameworks available in qtp?

499


There is an excel file of 1 to 100 sheets how you will iterate through it?

522