Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test login redirect function?
#1
Solved: 11 Years, 4 Months ago Question 
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.
Reply
#2
Solved: 11 Years, 4 Months ago
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.
Reply
#3
Solved: 11 Years, 4 Months ago
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")
61.
Code:
Browser("YouPlayoff - Create and").Page("url:=" & PageURL).Link("text:=" & SignOutText).Click
62.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,127 06-26-2015, 12:31 AM
Last Post: babu123
  Search All Test scripts For a Function? AndyBSG 1 2,735 02-19-2015, 04:15 AM
Last Post: supputuri
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,365 07-09-2014, 10:43 PM
Last Post: hhamilton
  Unable to Click on Login Button Paurav 1 3,288 07-03-2014, 05:27 AM
Last Post: supputuri
  QTP is not recognizing Function Library Path associated to the test AshokReddy 2 4,105 12-19-2013, 01:59 PM
Last Post: AshokReddy

Forum Jump:


Users browsing this thread: 1 Guest(s)