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 |
somebody please say me why we go for using regular expressions,actions.what is the main and exact use of this in real time applications.real time testers pls answer my question with example if u can
when to start the automation?
How to connect to data base?
Using Object Repository is a advantage or disadvantage?
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable
is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
How vl i prioritize the actions when i have 10 actions A1, A2, A3......A10. I want to run action as follows A1,A5,A6 and A10. How i can do it. Thanks in Advance to u.
What is RTM (require ment tracebulity marix) fromate?
what is the difference between testing and debugging?
How many types of run modes are there in qtp?
why we are using environment variables instead of global variables?