Write Descriptiv prg 4 login
logn....txt bx
password---txt bx
ok---btn
Answer Posted / suresh.testing
In order to develop this script we should know the test
object descriptive properties & values (By using objectspy)
Ex:Static Descriptive program for login page(Banking
application)
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtuid").Set "Admin"
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtpwd").Set "suresh"
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").Image("html
id:=login").Click
------------------------------------------------------------Ex:
Dynamic Descriptive program for login page (banking application
set br=description.create
br("name").value="usRanfordbank"
set pg=description.create
pg("title").value="usRanfordbank"
set uid=description.create
uid("html id").value="txtuid"
set pwd=description.create
pwd("html id").value="txtpwd"
set img=description.create
img("html id").value="login"
Browser(br).Page(pg).WebEdit(uid).Set "Admin"
Browser(br).Page(pg).WebEdit(pwd).Set "suresh"
Browser(br).Page(pg).Image(img).Click
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
What is action?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
Explain the difference between call to action and copy action?
How will you find the current time of the remote machine using QTP script?
How to get the particular property value?
Is any limitation to xml checkpoints?
What is ObjectParamater?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
which type of testing process are you following in ur company? how to recognize a qtp page?
can anyone tell me from where i can download qtp demo or crack version
How QTP identify the system time that's changes every seconds?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is system testing and what are the different types of tests you perform in system testing?