Actions

Difference between revisions of "Testing Area/Manual regression testing"

From Mahara Wiki

< Testing Area
Line 1: Line 1:
 
This page will outline the manual testing of Mahara in sections as outlined in the [http://manual.mahara.org/en/18.04/index.html Mahara user manual]  
 
This page will outline the manual testing of Mahara in sections as outlined in the [http://manual.mahara.org/en/18.04/index.html Mahara user manual]  
  
==Dashboard==
+
==Manual Testing==
To test the Dashboard 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
+
For manual testing 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'''. Other '''themes will have to be set by the Site admin in the Site settings panel''' found here Admin menu > Configure site > Site options > Site settings
  
[[Testing/Manual testing/Dashboard]]
+
<!--#################################################### DASHBOARD #############################################################################-->
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="background:#c7d6c6">
 +
====Manual Test script scenarios for Dashboard====
 +
<div class="mw-collapsible-content">
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' User should see correct page styling
 +
<div class="mw-collapsible-content">
 +
 
 +
{| style="float:right; margin-left: 10px;"
 +
|----
 +
|[[File:Ocean theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Ocean theme]]
 +
|[[File:Modern theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Modern theme]]
 +
|[[File:Primary school theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Primary school theme]]
 +
|[[File:Raw theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Raw theme]]
 +
|----
 +
|}
 +
::::'''Given''' user is logged in
 +
::::'''When''' is on the "Mahara homepage"
 +
::::'''Then''' user should see "Raw" theme colours - <span style="color:red">Compare the page with the screenshots for correct theme colours</span>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
</div>
 +
</div>
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' User can see help icon in the login block
 +
<div class="mw-collapsible-content">
 +
 
 +
{| style="float:right; margin-left: 10px;"
 +
|----
 +
|[[File:Login_Block_05_04_18_09-25-11.png|thumb|100px|Login Block Ocean theme]]
 +
|[[File:ModerLogin 05 04 18 15-19-33.png|thumb|100px|Login Block Modern theme]]
 +
|[[File:PrimarySchoolLogin_05_04_18_15-16-36.png|thumb|100px|Login Block Primary school theme]]
 +
|[[File:RawLogin_05_04_18_15-20-47.png|thumb|100px|Login Block Raw theme]]
 +
|----
 +
|}
 +
 
 +
::::'''Given''' user is not logged in
 +
::::'''And''' the SIte theme is set to "Modern Theme"
 +
::::'''When''' user is on the login page
 +
::::'''Then''' user should see a help icon displayed in top right corner of login block
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
</div>
 +
</div>
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' "Registration" links to "Registration" page
 +
<div class="mw-collapsible-content">
 +
 
 +
 
 +
 
 +
{| style="float:right; margin-left: 10px;"
 +
|----
 +
|[[File:Ocean theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Ocean theme]]
 +
|[[File:Modern theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Modern theme]]
 +
|[[File:Primary school theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Primary school theme]]
 +
|[[File:Raw theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Raw theme]]
 +
|----
 +
|}
 +
 
 +
::::'''Given''' I am on homepage
 +
::::'''When''' I follow "Register"
 +
::::''' And I fill in the following:
 +
::::::: | First name | Lightening |
 +
::::::: | Last name | McQueen |
 +
::::::: | Email address | [email protected] |
 +
::::::: | Registration reason | I will absolutely make this institution more amazing!! |
 +
::::'''And''' I press "Send request"
 +
::::'''Then''' I should see "You should receive an email shortly with a link that you can use to change the password for your account."
 +
::::'''And''' email is recieved <span style="color:red">- this requires a manual inspection of email address to ensure email was sent and is correct</span>
 +
 
 +
</div>
 +
</div>
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' User clicks "Lost username / password" to receive an email to log into site
 +
<div class="mw-collapsible-content">
 +
 
 +
{| style="float:right; margin-left: 10px;"
 +
|----
 +
|[[File:ResetLoginEmail_06_04_18_05-59-52.png|thumb|200px|Reset Email Instructions]]
 +
|----
 +
|}
 +
 
 +
::::'''Given''' I am on homepage
 +
::::'''When''' I follow "Lost username / password"
 +
::::'''And''' I fill in "Email address or username" with "UserA"
 +
::::'''And''' I press "Send request"
 +
::::'''Then''' I should see "You should receive an email shortly with a link that you can use to change the password for your account."
 +
::::'''And''' email is recieved <span style="color:red">- this requires a manual inspection of email address to ensure email was sent and is correct</span>
 +
 
 +
'''NOTE: Existing Behat automated test''' - /test/behat/features/settings/logginattempts.feature - Scenario: Asking for a username reminder (Bug 1460911)
 +
</div>
 +
</div>
 +
 
 +
</div>
 +
</div>
 +
 
 +
<!--####################################################### OVERVIEW ##########################################################################-->
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="background:#c7d6c6">
 +
====Manual Test script scenarios for Overview page====
 +
<div class="mw-collapsible-content">
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' User should see correct page styling
 +
<div class="mw-collapsible-content">
 +
 
 +
 
 +
 
 +
::::'''Given''' user is logged in <br />
 +
::::'''Then''' user should be on "Dashboard" page<br />
 +
::::'''And''' user should see "Raw" theme colours <br />
 +
::::: Raw_theme_-_Dashboard_-_Mahara_-_04_-_04_-_2018.png  <span style="color:red">Compare the page with the screenshots above for correct theme colours</span>
 +
::::'''Then''' automation script take screenshot
 +
::::'''And''' save the file in "Local folder"
 +
 
 +
 
 +
 
 +
</div>
 +
</div>
 +
 
 +
</div>
 +
</div>
 +
<!--#################################################################################################################################-->
  
 
==Content==
 
==Content==
Line 80: Line 221:
 
12. Click the 'Send message' button.<br/>
 
12. Click the 'Send message' button.<br/>
 
'''Expected result:''' The Mahara homepage is displayed with a message 'Your message has been sent'.
 
'''Expected result:''' The Mahara homepage is displayed with a message 'Your message has been sent'.
13. Log in as 'User one'.<br/>
+
13. Log in as 'User one'.<br/><div class="toccolours mw-collapsible mw-collapsed" style="background:#c7d6c6">
 +
====Manual Test script scenarios====
 +
<div class="mw-collapsible-content">
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
:::'''Manual Test Scenario:''' User should see correct page styling
 +
<div class="mw-collapsible-content">
 +
 
 +
{| style="float:right; margin-left: 10px;"
 +
|----
 +
|[[File:Ocean theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Ocean theme]]
 +
|[[File:Modern theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Modern theme]]
 +
|[[File:Primary school theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Primary school theme]]
 +
|[[File:Raw theme - Dashboard - Mahara - 04 - 04 - 2018.png|thumb|200px|Login Block Raw theme]]
 +
|----
 +
|}
 +
 
 +
::::'''Given''' user is logged in <br />
 +
::::'''Then''' user should be on "Dashboard" page<br />
 +
::::'''And''' user should see "Raw" theme colours <br />
 +
::::: Raw_theme_-_Dashboard_-_Mahara_-_04_-_04_-_2018.png  <span style="color:red">Compare the page with the screenshots above for correct theme colours</span>
 +
::::'''Then''' automation script take screenshot
 +
::::'''And''' save the file in "Local folder"
 +
 
 +
 
 +
 
 +
</div>
 +
</div>
 +
 
 +
</div>
 +
</div>
 
14. Click the hyperlink 'Contact us', which is at the bottom of the page.<br/>
 
14. Click the hyperlink 'Contact us', which is at the bottom of the page.<br/>
 
'''Expected result:''' The captcha field is not displayed on the form and the 'Email'and 'Name' fields are auto populated.
 
'''Expected result:''' The captcha field is not displayed on the form and the 'Email'and 'Name' fields are auto populated.
Line 105: Line 276:
  
 
-----
 
-----
 
 
</div>
 
</div>
 

Revision as of 16:41, 21 May 2018

This page will outline the manual testing of Mahara in sections as outlined in the Mahara user manual

Manual Testing

For manual testing 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. Other themes will have to be set by the Site admin in the Site settings panel found here Admin menu > Configure site > Site options > Site settings


Manual Test script scenarios for Dashboard

Manual Test Scenario: User should see correct page styling
Login Block Ocean theme
Login Block Modern theme
Login Block Primary school theme
Login Block Raw theme
Given user is logged in
When is on the "Mahara homepage"
Then user should see "Raw" theme colours - Compare the page with the screenshots for correct theme colours





Manual Test Scenario: User can see help icon in the login block
Login Block Ocean theme
Login Block Modern theme
Login Block Primary school theme
Login Block Raw theme
Given user is not logged in
And the SIte theme is set to "Modern Theme"
When user is on the login page
Then user should see a help icon displayed in top right corner of login block






Manual Test Scenario: "Registration" links to "Registration" page


Login Block Ocean theme
Login Block Modern theme
Login Block Primary school theme
Login Block Raw theme
Given I am on homepage
When I follow "Register"
And I fill in the following:
| First name | Lightening |
| Last name | McQueen |
| Email address | [email protected] |
| Registration reason | I will absolutely make this institution more amazing!! |
And I press "Send request"
Then I should see "You should receive an email shortly with a link that you can use to change the password for your account."
And email is recieved - this requires a manual inspection of email address to ensure email was sent and is correct
Manual Test Scenario: User clicks "Lost username / password" to receive an email to log into site
Reset Email Instructions
Given I am on homepage
When I follow "Lost username / password"
And I fill in "Email address or username" with "UserA"
And I press "Send request"
Then I should see "You should receive an email shortly with a link that you can use to change the password for your account."
And email is recieved - this requires a manual inspection of email address to ensure email was sent and is correct

NOTE: Existing Behat automated test - /test/behat/features/settings/logginattempts.feature - Scenario: Asking for a username reminder (Bug 1460911)


Manual Test script scenarios for Overview page

Manual Test 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
Raw_theme_-_Dashboard_-_Mahara_-_04_-_04_-_2018.png Compare the page with the screenshots above for correct theme colours
Then automation script take screenshot
And save the file in "Local folder"


Content

Testing/Manual testing/Content

Portfolio

Testing/Manual testing/Portfolio


BUGS to test for Manually

Bug description: All users with exception of root user has ctime set when they are first created
Original Bug: https://bugs.launchpad.net/mahara/+bug/1702198/comments/2

Create new admin user and Log into Database using the following commands

    sudo -u postgres psql                           - starts PSQL terminal
    \l                                              - lists databases 
    \c <db name>                                    - connect to database 
    Select ctime from usr where username='admin';   - returns date/time user was created 

Date should be date user was created


Bug description: Mahara logo is cut off at the bottom in IE11.

Environment to be tested: Master Browser to be tested: IE 11

Precondition: The institution 'Institution A' exists and the user is a admin in that institution.

Steps to reproduce: 1. Open IE 11 and enter the URL to the Mahara instance.
Expected result: Mahara logo should be displayed properly without any cut off.
2. Log in as ‘Institution admin’.
Expected result: Mahara logo should be displayed properly without any cut off.

3. Navigate to Administration menu > Institutions > Settings.
4. Click the ‘Settings’ button for ‘Institution A’.
5. Upload a logo and Click the ‘Submit’ button.
6. Log out and Log in back as ‘Institution admin’.
Expected result: Mahara logo should be displayed properly without any cut off.
7. Compare the Mahara logo with another browser and verify if the dimensions are aligned properly.
Expected result: Mahara logo should have the same dimensions as the other browser.


Bug description: Add recaptcha field to contact us form when logged out

Environment to be tested: Master

Browser to be tested: Any browser

Precondition: 1. A user with 'Site admin' access exists.
2. 'reCAPTCHA site key' & 'reCAPTCHA secret key' are generated.
NOTE: You create the 'reCAPTCHA site key' & 'reCAPTCHA secret key' at https://www.google.com/recaptcha/admin
3. Normal user ‘User one’ exists.

Steps to reproduce: 1. Log in as 'Site admin'.
2. Navigate to Administration menu > Configure site > Site options > Security settings.
3. Switch 'reCAPTCHA on user registration/contact us forms' to 'Yes'.
4. Enter the 'reCAPTCHA site key' & 'reCAPTCHA secret key'.
5. Click the 'Update site options' button.
6. Log out as 'Site admin'.
7. Click the hyperlink 'Contact us', which is at the bottom of the page.
Expected result: A captcha field is displayed on the form. 8. Enter an email into the 'Email' field.
9. Enter the name 'Tester' into the 'Name' field.
10. Enter the text as 'This is a test message' into the 'Message' field.
11. Select the checkbox 'I'm not a robot'.
12. Click the 'Send message' button.
Expected result: The Mahara homepage is displayed with a message 'Your message has been sent'.

13. Log in as 'User one'.

Manual Test script scenarios

Manual Test Scenario: User should see correct page styling
Login Block Ocean theme
Login Block Modern theme
Login Block Primary school theme
Login Block Raw theme
Given user is logged in
Then user should be on "Dashboard" page
And user should see "Raw" theme colours
Raw_theme_-_Dashboard_-_Mahara_-_04_-_04_-_2018.png Compare the page with the screenshots above for correct theme colours
Then automation script take screenshot
And save the file in "Local folder"


14. Click the hyperlink 'Contact us', which is at the bottom of the page.
Expected result: The captcha field is not displayed on the form and the 'Email'and 'Name' fields are auto populated. 15. Enter the text as 'This is a test message' into the 'Message' field.
16. Click the 'Send message' button.
Expected result: The Mahara dashboard page is displayed with a message 'Your message has been sent'.


BUG 1772298

Bug description: login help icon hidden on Modern theme

Environment to be tested: Master
Browser to be tested: Chrome

Summary: Help icon is missing when the site theme is set to Modern theme and the user is on the log in page.

1. site has Modern Theme set
2. User is on the login screen

Actual result: the help icon is hidden - if user clicks in the general area the help text is displayed

Expected result: help icon is displayed and is clickable to reveal help text.