which checkpoint we use to validate yahoo login screen
window after login with ur id and password in qtp

Answer Posted / anonymous

May be there are several ways, but I think, by getting the
title of the yahoo page, we can validate. This is concept,
not real example. I have to test this today.... So Check
the correctness of this code before run it.

pname= Browser("...").Page("welcome xxxx/OR Something
else").GetRoProperty("text")
If pname="welcomexxx" then
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Pass"
else
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Fail"
End if
Datatable.exportsheet "c:\res.xls",3

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can u explain relative path architecture framework in qtp?

1553


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1676


What is QTP and the use of QTP in TD?

589


Where we can use the analog mode and where we can use the low – level mode?

562


How do you synchronization point through DP?

591






What is use of object spy?

605


Explain hybrid framework with advantages and disadvantages?

538


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1747


What is Associate Repository in QTP 9.2 ?

594


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

1440


I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

1465


Does QTP run in any environment?

602


How to delete an object from the object repository?

588


Differences between text and test area checkpoints?

567


How to get the particular property value?

603