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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the factors on which script execution time is dependent?

603


how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)

1421


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3260


How does qtp identify objects in the application?

579


To which environments does quicktest professional supports?

533






What contains Data Driven Framework document in qtp?

1455


How many types of recording modes in qtp? Which will be used when?

546


How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?

2217


What are the trigger events in qtp?

570


Explain QTP using different development techniques ?

531


what is clean sweep?

1875


How to carry out bit map check points in QTP

1759


How to analyzing test results using quicktest professional (qtp)?

577


What are the types of environment variables in qtp?

540


In qtp, how you can get the last character from a string?

549