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

How may types of defects identify application or your currently working application?pls give me answer..

1721


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1780


How do you test DLL files using automation Tool QTP?

2969


What is the meaning Work bench?

1954


How do you synchronization point through DP?

796


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2385


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

2106


How to capture a window in QTP?

1720


How to add verification steps to tests?

9416


Can launch two instances of qtp on the same machine?

767


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

882


What are the advantages of qtp?

758


What are the key points to create a framework in QTP for oracle forms?

2003


How often were they executed?

2230


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1884