How do we create and run the scripts with out using O.R. ?
Answers were Sorted based on User's Feedback
Answer / rav
Using descriptive programming, you can define all the
objects in the script itself..you dont necessarily need to
use OR for that...
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / king
dialog("regexpwndtitle:=login").winedit("attached
text:=Agent Name:").set "raju"
dialog("regexpwndtitle:=login").winedit("attached
text:=Password:").set "mercury"
dialog("regexpwndtitle:=login").winbutton
("regexpwndtitle:=ok").click
window("regexpwndtitle:=Flight Reservation").ActiveX
("acx_name:=MaskEdBox").Type "080808"
window("regexpwndtitle:=Flight Reservation").wincombobox
("attached text:=fly from:").Select "Denver"
window("regexpwndtitle:=Flight Reservation").wincombobox
("attached text:=fly to:").Select "London"
window("regexpwndtitle:=Flight Reservation").winbutton
("regexpwndtitle:=flight").click
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / usha
Thank you for the answer. Can u please give me an example
so that I get a clear Idea ?
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rani
We can create and run the scripts without Object Repository,
Object Repository is nothing but collection of properties
and corresponding values. Each collection represents an
object.
Descriptive programming is a way of specifying properties
and values without using the OR interface.
Throwing the properties and values straight into the
command.
Ex:
Systemutil.Run"www.mail.yahoo.com"
Set a=Browser("name:=Yahoo!.*").page("title:=Yahoo!.*")
a.WebEdit("name:=login").Set "yourusername"
a.WebEdit("name:=passwd").Set "xxxx"
a.Webbutton("name:=Sign in").Click
You can try this code.It should work if you provide valid
username and password.
Let me know still if you are not clear on this.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / viswajith
Very nice Answer Rani.
Can u tell me that what is the recovery scenario?
Explain it in understandable format.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....
Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
How to check the URL using Automation tool QTP
Give me the Example of standard check point and text check point with syntax?
3 Answers IMI Soft, IMI Soft Engineering,
What is CMMP and CMMH?
What is log file? what is the use of Log fine. How to create? what are the contents and the main advantages of log files. plz do help me in this concepts as i have an interivew on qtp in a couple of days. plz do help me.. thanks in Advance.
what is meant by automation tool?
How can we make a shared object repository in QTP 9?
3 Answers Kanbay, Ordain Solutions,
write the vb script for call to new action in qtp?
How do you send email with attachment from outlook using qtp ?
what is debugging testing?