Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Session Login

dzwarg edited this page Aug 29, 2011 · 1 revision

These tests check the session limiting features of DistrictBuilder. All tests on this page require two browser windows (i.e. Firefox and Chrome) open simultaneously to simulate a user accessing the application from two locations. Each running instance of these browsers are referred to below as Browser 1 and Browser 2.

Note: you will need to register a user with DistrictBuilder before beginning this test.

Logging In

  1. Open Browser 1
  2. Go to the DistrictBuilder url. (e.g. http://demo.publicmapping.org/)
  3. Enter the user's username in the first field below "Log In".
  4. Enter the user's password in the second field below "Log In".
  5. Click on the "Login" button.
  6. Verify that the plan chooser is visible.
  7. Open Browser 2
  8. Go to the DistrictBuilder url. (e.g. http://demo.publicmapping.org/)
  9. Enter the user's username in the first field below "Log In".
  10. Enter the user's password in the second field below "Log In".
  11. Click on the "Login" button.
  12. Verify that a dialog entitled "Duplicate Session" is shown.
  13. Switch to Browser 1
  14. Click on the "My Plans" tab.
  15. Verify that the application redirects to the login page, and that a dialog entitled "Duplicate Session" is shown.
  16. Switch to Browser 2
  17. Click on the second bulleted item, "Use the system as a guest."
  18. Verify that the plan chooser is visible, and that the chooser does not display the "My Plan" or "Upload Plan" tabs to the left of the plan table.
  19. Click on the "Login" link in the upper right.
  20. Switch to Browser 1
  21. Push the back button in the browser.
  22. Verify that the plan chooser is visible, and that the plans for the user are listed under the "My Plans" tab.
  23. Switch to Browser 2
  24. Enter the user's username in the first field below "Log In".
  25. Enter the user's password in the second field below "Log In".
  26. Click on the "Login" button.
  27. Verify that a dialog entitled "Duplicate Session" is shown.
  28. Click on the third bulleted item, "Force close the other user's session and log in again."
  29. Verify that the dialog is closed, and the application is still at the login screen.
  30. Enter the user's username in the first field below "Log In".
  31. Enter the user's password in the second field below "Log In".
  32. Click on the "Login" button.
  33. Verify that the plan chooser is visible, and that the plans for the user are listed under the "My Plans" tab.
  34. Switch to Browser 1
  35. Click on the "Templates" tab.
  36. Click on the "My Plans" tab.
  37. Verify that the application redirects to the login page, and that a dialog entitled "Logged Off" is visible.

Logging Out

Perform steps 1 - 15 under Logging In, then:

  1. Click on the "Logout" link in the upper right.
  2. Verify that the login page is shown.
  3. Switch to Browser 2
  4. Click on the first bulleted item, "Log in as a different user."
  5. Enter the user's username in the first field below "Log In".
  6. Enter the user's password in the second field below "Log In".
  7. Click on the "Login" button.
  8. Verify that the plan chooser is visible, and that the plans for the user are listed under the "My Plans" tab.

Plan Detail Logout 1

Perform steps 1 - 6 under Logging In, then:

  • Click on the "My Plans" tab.

Perform steps 7 - 12 under Logging In, then:

  1. Switch to Browser 1.
  2. Select a plan to view the plan details.
  3. Verify that the application redirects to the login page, and that a dialog entitled "Duplicate Session" is visible.

Plan Detail Logout 2

Perform steps 1 - 6 under Logging In, then:

  • Click on the "My Plans" tab.

Perform steps 7 - 12 under Logging In, then:

  1. Click on the third bulleted item, "Force close the other user's session and log in again."
  2. Switch to Browser 1.
  3. Select a plan to view the plan details.
  4. Verify that the application redirects to the login page, and that a dialog entitled "Logged Off" is visible.

Plan Details 1

Perform steps 1 - 6 under Logging In, then:

  1. Click on the "My Plans" tab.
  2. Select a plan to view the plan details.

Perform steps 7 - 12 under Logging In, then:

  1. Switch to Browser 1.
  2. Click on the "Edit Selected" button.
  3. Change the "Description" of the selected plan.
  4. Click on the "Save" button.
  5. Verify that the application redirects to the login page, and that a dialog entitled "Duplicate Session" is visible.

Plan Details 2

Perform steps 1 - 6 under Logging In, then:

  1. Click on the "My Plans" tab.
  2. Select a plan to view the plan details.

Perform steps 7 - 12 under Logging In, then:

  1. Click on the third bulleted item, "Force close the other user's session and log in again."
  2. Switch to Browser 1.
  3. Click on the "Edit Selected" button.
  4. Change the "Description" of the selected plan.
  5. Click on the "Save" button.
  6. Verify that the application redirects to the login page, and that a dialog entitled "Logged Off" is visible.

Plan Copy 1

Perform steps 1 - 6 under Logging In, then:

  • Select one of the templates in step 3.

Perform steps 7 - 12 under Logging In, then:

  1. Switch to Browser 1.
  2. Enter a name of a new plan in step 4.
  3. Click on the "Start Drawing" button.
  4. Verify that the application redirects to the login page, and that a dialog entitled "Duplicate Session" is visible.

Plan Copy 2

Perform steps 1 - 6 under Logging In, then:

  • Select one of the templates in step 3.

Perform steps 7 - 12 under Logging In, then:

  1. Click on the third bulleted item, "Force close the other user's session and log in again."
  2. Switch to Browser 1.
  3. Enter a name of a new plan in step 4.
  4. Click on the "Start Drawing" button.
  5. Verify that the application redirects to the login page, and that a dialog entitled "Logged off" is visible.

TODO: Add tests for the AJAX actions on the mapping page.

Clone this wiki locally