Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

1143


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)

2169


What is action?

1050


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

2141


Explain the difference between call to action and copy action?

1032


How will you find the current time of the remote machine using QTP script?

1114


How to get the particular property value?

1129


Is any limitation to xml checkpoints?

1082


What is ObjectParamater?

2059


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3562


which type of testing process are you following in ur company? how to recognize a qtp page?

1829


can anyone tell me from where i can download qtp demo or crack version

2058


How QTP identify the system time that's changes every seconds?

1107


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1889


What is system testing and what are the different types of tests you perform in system testing?

1220