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

Why qtp always start action1 and does not start action?

613


What are the views available in quicktest professional?

565


Explain the qtp test phases.

623


What are the benefits of qtp?

566


What are the benefits of quick test pro(qtp)?

564






In Remote acess server how u run a test?

1298


Explain about Test Fusion Report of QTP?

625


What is reusable action?

611


Is the qtp course will help to create a virtual object?

1522


what is clean sweep?

1526


What is a recovery scenario?

577


Differences between quicktest professional (qtp) and winrunner?

634


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1819


banking project description for software tester

7032


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1575