i am new to qtp i do not know how to write script
how to write the code to login if it fails how to able
error messages
Answer Posted / nanda
HI...What Satya..we dont need add objects to repository for
descriptive programming.
come to scenario....
dialog("login").winedit("Agent Name:").set datatable.value(1)
dialog("login").winedit("Password:").setsecure
crypt.encrypt(datatable.value(2))
dialog("login").winbutton("OK").click
If dialog("Login").dialog("text:=Flight Reservations").exist
then
dialog("Login").dialog("text:=Flight
Reservations").winbutton("text:=OK").click
dialog("Login").WinButton("Cancel").click
Else
window("Flight reservation").close
end if
like this we can handle pop up messages...
If any queries..
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
what is meant by Implicit and explicit requirements?
What is keyword driven framework?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
What are the views available in qtp?
Explain about business process component? types and usage?
Have you faced any problems with object repository?
How many types of recording facility are available in quicktest professional (qtp)?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
What is parameter in qtp?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
How you can find the absolute value of the number in qtp?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?