Testing Area/Manual regression testing: Difference between revisions
From Mahara Wiki
< Testing Area
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<div class="toccolours mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
====Things to test for==== | ====Things to test for Manually==== | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 33: | Line 33: | ||
</div> | </div> | ||
<div class="toccolours mw-collapsible mw-collapsed"> | |||
====Automated Test script scenarios==== | ====Automated Test script scenarios==== | ||
<div class="mw-collapsible-content"> | |||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User should see correct page styling | :::'''Scenario:''' User should see correct page styling | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 41: | Line 43: | ||
::::'''When''' is on the "Mahara homepage"<br /> | ::::'''When''' is on the "Mahara homepage"<br /> | ||
::::'''Then''' user should see "Raw" theme colours <br /> | ::::'''Then''' user should see "Raw" theme colours <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User invalid login | :::'''Scenario:''' User invalid login | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 53: | Line 56: | ||
::::'''And''' user should see "There was an error with submitting this form. Please check the marked fields and try again."<br /> | ::::'''And''' user should see "There was an error with submitting this form. Please check the marked fields and try again."<br /> | ||
::::'''And''' user will not be logged in | ::::'''And''' user will not be logged in | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' "Registration" links to "Registration" page | :::'''Scenario:''' "Registration" links to "Registration" page | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 62: | Line 66: | ||
::::'''When''' user clicks "Registration" link <br /> | ::::'''When''' user clicks "Registration" link <br /> | ||
::::'''Then''' user should be on the "Registration" page<br /> | ::::'''Then''' user should be on the "Registration" page<br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' "Lost username / password" links to "Forgotten your username or password?" page | :::'''Scenario:''' "Lost username / password" links to "Forgotten your username or password?" page | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 71: | Line 76: | ||
::::'''When''' user clicks the "Lost username / password" link <br /> | ::::'''When''' user clicks the "Lost username / password" link <br /> | ||
::::'''Then''' user should be on the "Forgotten your username or password?" page | ::::'''Then''' user should be on the "Forgotten your username or password?" page | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User valid login | :::'''Scenario:''' User valid login | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 81: | Line 87: | ||
::::'''And''' user enters valid password <br /> | ::::'''And''' user enters valid password <br /> | ||
::::'''Then''' user should be on the "Dashboard" page <br /> | ::::'''Then''' user should be on the "Dashboard" page <br /> | ||
::::'''And''' user will be logged in | ::::'''And''' user will be logged in</div> | ||
</div> | |||
</div> | |||
</div> | </div> | ||
==Overview page== | ==Overview page== | ||
Line 114: | Line 121: | ||
</div> | </div> | ||
==== | <div class="toccolours mw-collapsible mw-collapsed"> | ||
====Automated Test script scenarios==== | |||
<div class="mw-collapsible-content"> | |||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User should see correct page styling | :::'''Scenario:''' User should see correct page styling | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 124: | Line 133: | ||
::::'''Then''' automation script take screenshot | ::::'''Then''' automation script take screenshot | ||
::::'''And''' save the file in "Local folder" | ::::'''And''' save the file in "Local folder" | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User can see messages in "Inbox" block | :::'''Scenario:''' User can see messages in "Inbox" block | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 132: | Line 142: | ||
::::'''When''' user is on the "Dashboard"<br /> | ::::'''When''' user is on the "Dashboard"<br /> | ||
::::'''Then''' user should see "Inbox" block <br /> | ::::'''Then''' user should see "Inbox" block <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User click "More" link to see more messages | :::'''Scenario:''' User click "More" link to see more messages | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 147: | Line 158: | ||
::::'''When''' user performs some action <br /> | ::::'''When''' user performs some action <br /> | ||
::::'''Then''' Something should happen <br /> | ::::'''Then''' Something should happen <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User changes Page layout from 2 column to 3 column layout | :::'''Scenario:''' User changes Page layout from 2 column to 3 column layout | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 155: | Line 167: | ||
::::'''When''' user performs some action <br /> | ::::'''When''' user performs some action <br /> | ||
::::'''Then''' Something should happen <br /> | ::::'''Then''' Something should happen <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User changes the page skin from default "Raw" pre-made site skin | :::'''Scenario:''' User changes the page skin from default "Raw" pre-made site skin | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 163: | Line 176: | ||
::::'''When''' user performs some action <br /> | ::::'''When''' user performs some action <br /> | ||
::::'''Then''' Something should happen <br /> | ::::'''Then''' Something should happen <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User adds block to page, edits new block and deletes block from page | :::'''Scenario:''' User adds block to page, edits new block and deletes block from page | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 171: | Line 185: | ||
::::'''When''' user performs some action <br /> | ::::'''When''' user performs some action <br /> | ||
::::'''Then''' Something should happen <br /> | ::::'''Then''' Something should happen <br /> | ||
</div> | |||
</div> | </div> | ||
<div class="mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
:::'''Scenario:''' User wants to do something | :::'''Scenario:''' User wants to do something | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
::::'''Given''' Some preconditions <br /> | ::::'''Given''' Some preconditions <br /> | ||
::::'''When''' user performs some action <br /> | ::::'''When''' user performs some action <br /> | ||
::::'''Then''' Something should happen <br /> | ::::'''Then''' Something should happen <br /></div> | ||
</div> | |||
</div> | |||
</div> | </div> |
Revision as of 19:41, 1 April 2018
Manual Test Cases
Dashboard Manual Testing
To test this page it is assumed that a fresh install of Mahara has taken place and user sets "Password" and "email" for the initial login. It is also assumed that there is a fresh database with no data. For more information of the dashboard please see Mahara 18.04 user manual section 3. Dashboard. This page will have screenshots of pages using the "Raw" theme. Other themes will need to be tested but will have to be set by the Site admin in the Site settings panel found here Admin menu > Configure site > Site options > Site settings
Login page
Assumptions: To test this page it is assumed that a fresh install of Mahara has taken place and user sets "Password" and "email" for the initial login. It is also assumed that there is a fresh database with no data
Things to test for Manually
- Visual check
- Login page uses correct colour "Raw"
- header elements displayed
- Mahara logo displayed -top left of page
- Search bar displayed
- navigation menus displayed - User menu, Administration menu and Main menu
- Welcome Page title h1 displayed
- Text "Edit this text via "Administration menu" → "Configure site" → "Static pages"." is displayed with link to "Static pages" page
- "Quick links" block is displayed with correct links to respective pages
- buttons displayed "Login"
- fields displayed "Username" & "Password"
- Links displayed "Register" & "Lost username / password"
- footer is displayed and links functioning correctly
- User invalid login- user should see an error message and will not be logged in
- User valid login- user should be logged in and and redirected to the Dashboard page
- "Registration" link is displayed and functioning
- "Lost username / password" link is displayed and functioning
Automated Test script scenarios
- Scenario: User should see correct page styling
- Given user is logged in
- When is on the "Mahara homepage"
- Then user should see "Raw" theme colours
- Given user is logged in
- Scenario: User invalid login
- Given user is not logged in
- And is on the Mahara homepage
- When user enters valid username
- And user enters invalid password
- Then user should see "You have not provided the correct credentials to log in. Please check your username and password are correct." error message
- And user should see "There was an error with submitting this form. Please check the marked fields and try again."
- And user will not be logged in
- Given user is not logged in
- Scenario: "Registration" links to "Registration" page
- Given user is not logged in
- And is on the "Mahara homepage"
- When user clicks "Registration" link
- Then user should be on the "Registration" page
- Given user is not logged in
- Scenario: "Lost username / password" links to "Forgotten your username or password?" page
- Given user is not logged in
- And is on the "Mahara homepage"
- When user clicks the "Lost username / password" link
- Then user should be on the "Forgotten your username or password?" page
- Given user is not logged in
- Scenario: User valid login
- Given user is not logged in
- And is on the "Mahara homepage"
- When user enters valid username
- And user enters valid password
- Then user should be on the "Dashboard" page
- And user will be logged in
- Given user is not logged in
Overview page
Assumptions: To test this page it is assumed that a fresh install of Mahara has taken place and user sets "Password" and "email" for the initial login. It is also assumed that there is a fresh database with no data
Things to test for
- Visual check
- Login page uses correct colour "Raw"
- header elements displayed
- Welcome Page title h1 displayed
- Text "Edit this text via "Administration menu" → "Configure site" → "Static pages"." is displayed with link to "Static pages" page
- "Quick links" block is displayed with correct links to respective pages
- user info block displayed
- online users block displayed
- Latest changes I can view block displayed
- My portfolios block displayed
- Inbox block displayed
- Topics I am following block displayed
- Watched pages block displayed
- footer is displayed and links functioning correctly
- Change page "Layout" functionality works
- Change page "Skin" functionality works
- Page edit functionality works Create edit and delete page blocks
- Page links working
Automated Test script scenarios
- Scenario: User should see correct page styling
- Given user is logged in
- Then user should be on "Dashboard" page
- And user should see "Raw" theme colours
- Then automation script take screenshot
- And save the file in "Local folder"
- Given user is logged in
- Scenario: User can see messages in "Inbox" block
- Given user is logged in
- When user is on the "Dashboard"
- Then user should see "Inbox" block
- Given user is logged in
- Scenario: User click "More" link to see more messages
- Bagkground:
TODO: Create step definition
- Given the following "20""Messages" exist:
- | | |
- Given the following "20""Messages" exist:
- Given Some preconditions
- When user performs some action
- Then Something should happen
- Given Some preconditions
- Scenario: User changes Page layout from 2 column to 3 column layout
- Given Some preconditions
- When user performs some action
- Then Something should happen
- Given Some preconditions
- Scenario: User changes the page skin from default "Raw" pre-made site skin
- Given Some preconditions
- When user performs some action
- Then Something should happen
- Given Some preconditions
- Scenario: User adds block to page, edits new block and deletes block from page
- Given Some preconditions
- When user performs some action
- Then Something should happen
- Given Some preconditions
- Scenario: User wants to do something
- Given Some preconditions
- When user performs some action
- Then Something should happen
- Given Some preconditions