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
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 |
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 |
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 |
What do you mean by iteration?
In an interview what r the questions asked in qtp related project? pls any answer this question?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
1.IF SOME OBJECT IN APPLICATION IS NOT IDENTIFIED BY QTP? HOW WILL YOU OVERCOME THIS? 2. WHEN AND WHYDO U GO FOR DESCRIPTIVE PROGRAMMING? 3. WHAT IS THE DIFFERENCE BETWEEN VB AND VBA? 4.WHAT ARE THE REGULAR EXPRESSIONS YOU USED? 5.IF ANY REQUIREMENT IS ADDED IN YOUR PROJECT, HOW WILL YOU PROCEED TO DERIVE THE TEST CASES AND HOW WILL YOU PERFORM AUTOMATION FOR IT?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
Where we can use the synchronization?
what is the code in QTP to take screen shot?
Can u call txt extension file in QTP?
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
How do you invoke any application and write a script to invoke QTP using VB Script.
What is action? How many types of actions are there in qtp?