How to test login redirect function? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to test login redirect function? (/Thread-How-to-test-login-redirect-function) |
How to test login redirect function? - jraphicqesign - 05-28-2010 I am a beginner of QTP, I want to test login redirect function on http://www.youplayoff.com/ step 1, open page A (use Data Table "pre_login_page" to test multiple pages) step 2, click on the [Sign in] button (same position and similar properties(only redirect link is different) on different pages As) step 3, call an existing log in action step 4, use a checkpoint to check the current page link is A (use Data Table "pre_login_page") Questions: How can I make step 2 and step 4? For step 2, each iteration will use different page A, then how can I click on [Sign in] from different pages? For step 4, since step 3 is a call of existing action, and they will return to different pages. How can I get the value of page links for these different return pages? Thanks a lot! This is my very first QTP test case. RE: How to test login redirect function? - jraphicqesign - 05-28-2010 any one can help? I am testing the redirect function after log in. Basically, for example, from game info page, I choose to login, and after log in, I would expect the browser to jump back to game info page automatically. I am trying to use a data table to test different pages at once, and where the problem comes from. RE: How to test login redirect function? - jraphicqesign - 06-28-2010 I figure out this by myself, if you are interested to know the answer, please look at here: automation.youplayoff.com/2010/06...youplayoff-com/ there is some highlights: How can I make step 2 and step 4? For step 2, each iteration will use different page A, then how can I click on [Sign in] from different pages? answer: 21.'From the page opened above, click the "Sign In" link 22. Code: Browser("YouPlayoff - Create and").Page("url:=" & PageURL).Link("text:=" & SignInText).Click For step 4, since step 3 is a call of existing action, and they will return to different pages. How can I get the value of page links for these different return pages? web page answer: Case Else 60. Code: Browser("YouPlayoff - Create and").WinEdit("Edit").Check CheckPoint("RedirectToPreviousPage") Code: Browser("YouPlayoff - Create and").Page("url:=" & PageURL).Link("text:=" & SignOutText).Click |