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

Answers were Sorted based on User's Feedback



how to write this script using descriptive programming? the script below is the script generated by..

Answer / siri

Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebEdit
("Name:=Email").Set "test123"
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebEdit
("Name:=Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32eb
cbf4"
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").WebButton("Name:=Sign in").Click
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").Link ("innertext:=Logout").Click
Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login").Sync
Browser("Title:=Welcome: Mercury Tours").Close

I hope this helps you.
Regards,
Siri

Is This Answer Correct ?    5 Yes 0 No

how to write this script using descriptive programming? the script below is the script generated by..

Answer / 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

how to write this script using descriptive programming? the script below is the script generated by..

Answer / snemaa

above one is in correct .

same thing can also be written as:
set mypage = Browser("Title:=Welcome: Mercury Tours").Page
("Title:=orkut - login")

mypage.webEdit("Name :=Email").Set "test123"
mypage.webedit("Name :=Passwd").Set "XXXXXXXXXXXXXXXXXX"
mypage.webbutton("Name :=Sign in").Click

..........

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

What is keyword view and Expert view in QTP?

1 Answers   Crea,


For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ?

2 Answers   TCS,


What is difference between design time and run time data table?

0 Answers  


What is post recovery scenario?

0 Answers  


Hi, I will provide perticular age,it needs to enter date in text box (MM/DD/YYYY) compare to system date. or already exist data in the text box.

2 Answers   Virtusa,


How to test fly out menu in qtp?

0 Answers  


If i entered 2 columns and 4 rows inputs in DDT Like Mango fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q is How to get the 2nd column value for corresponding 1 column input in 3rd row ie, ( i need to get "veget" in messge box @ run time

5 Answers   CTS,


What is difference between Quality centre and Test Director?

1 Answers   Nokia,


How many add-ins comes by default with quicktest professional (qtp)?

0 Answers  


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,


How can you connect the database with QTP?

3 Answers  


what are the disadvantages of descriptiveprograming

5 Answers   GE,


Categories