how to write this script using descriptive programming?
the script below is the script generated by QTP plz write
the script using descriptive programming? plzzzzzzzz do
answer thanku
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebEdit("Email").Set "test123"
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebEdit
("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4"
Browser("Welcome: Mercury Tours").Page("orkut -
login").WebButton("Sign in").Click
Browser("Welcome: Mercury Tours").Page("orkut - home").Link
("Logout").Click
Browser("Welcome: Mercury Tours").Page("orkut - login").Sync
Browser("Welcome: Mercury Tours").Close

Answer Posted / mageshkumar

All above answers are 100% correct...

just trying to optimizing the code..

With Browser("Welcome: Mercury Tours").Page("orkut -
login")
.WebEdit("Email").Set "test123"
.WebEdit
("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4"
.WebButton("Sign in").Click
.Click
.Sync
with End
Browser("Welcome: Mercury Tours").Close

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

980


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

1399


What test cases can you automate using QTP?

638


How is UFT 11.5 version different from UFT 12.0?

602


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1437






Where we use data driver in qtp?

601


how to find that tools work well with your existing system?

1399


How to change the priorities of the recovery scenario properties?

587


Mention the different actions types of qtp.

571


How to delete an object from the object repository?

589


What are the differences between quicktest professional and winrunner?

536


Differentiate the type of test cases which can be automated and which cannot be automated?

562


how will you check how many members visited the website www.infosys.com?

1476


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1513


could any help me please, how to work on visual foxpro application using UFT

1672