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 In-string function will do?
What is meant by Repository?
7 Answers ALFiNE IT Solutions, Four soft,
how can u find the syntax errors or other script errors in your test during the execution of your QTP Test - (i.e., not after the execution/test run finished, but before finishing the test run)
what is vmodel?advantages and disadvantages of vmodel?
unique properties of button,edit box, radio button,check box?
By default Action1 runs first in QTP. Is it possible to start the run with Action2?
anyone can explain about "Smart Identification" in QTP. what is the use of "Smart Identification" ???
How can we redirect QTP results in to a excel sheet after the execution
How we can add actions in the test using QTP?
In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?
write a qtp script to enter user name & password for flight reservation login page from excel sheet
Explain the new feature of UFT regarding the export of test results?