Test Case Specification
Change History
Version | Date | Modifier | Description of Change |
---|---|---|---|
0.1 | 22 Mar 2020 | Damiano Ghisellini | Initial draft. |
1. Introduction
This document provides the test cases to be carried out for the PCTO Application. Each part to be tested is represented by an individual test case. Each case details the input and expected outputs.
2. Test Cases: Login
Test ID: 2.1
Field | Description |
---|---|
Title | Correct login as student |
Feature | Log in to use the application as student. |
Objective | Confirm that proper username and password yield access to the website as expected. |
Setup | A web server must be running. |
Test Data
Login information:
- Username: Username existing on Spaggiari
- Password: Password associated with that user
Test Actions
- Access the login page
- Select the "student" type
- Enter login information
Expected Results
You access a page that offers the possibility to search for companies in the database, apply filters, or log out.
Test ID: 2.2
Field | Description |
---|---|
Title | Correct login as tutor |
Feature | Log in to use the application as tutor. |
Objective | Confirm that proper username and password yield access to the website as expected. |
Setup | A web server must be running. |
Test Data
Login information:
- Username: Username existing on Spaggiari
- Password: Password associated with that user
Test Actions
- Access the login page
- Select the "tutor" type
- Enter login information
Expected Results
You access a page that offers the possibility to search for companies in the database, apply filters, change them or log out.
Test ID: 2.3
Field | Description |
---|---|
Title | Incorrect password |
Feature | Log in to use the application. |
Objective | Confirm that a valid username with an invalid password denies access to the website without leaving the user stranded. |
Setup | A web server must be running. |
Test Data
Login information:
- Username: Username existing on Spaggiari
- Password: password1234
Test Actions
- Access the login page
- Select a user type
- Enter invalid login information
Expected Results
You remain on the login page and you are informed that your login credentials are incorrect.
3. Test Cases: Filtering companies
Test ID: 3.1
Field | Description |
---|---|
Title | Adding correct filters |
Feature | Add filters to search for specific companies. |
Objective | Confirm that the use of filters reduces the number of companies displayed. |
Setup | A web server must be running and there must be a connection to the database. |
Test Data
Filters applied:
- Province: Verona
- District: San Giovanni Lupatoto
Test Actions
- Add the filters in the provided space
Expected Results
All the companies present in Verona, in the municipality of San Giovanni Lupatoto, will be displayed.
Test ID: 3.2
Field | Description |
---|---|
Title | Adding inexistent filters |
Feature | Add filters to search for specific companies. |
Objective | Confirm that using inexistent filters does not return any results. |
Setup | A web server must be running and there must be a connection to the database. |
Test Data
Filters applied:
- Province: Zevio
Test Actions
- Add the filters in the provided space
Expected Results
No company will be displayed.
4. Test Cases: Company information
Test ID: 4.1
Field | Description |
---|---|
Title | View company information |
Feature | View more information about a particular company. |
Objective | Confirm that clicking on a company displays additional information about it. |
Setup | A web server must be running and there must be a connection to the database. |
Test Data
N/A
Test Actions
- Click on a company
Expected Results
A page containing more information about the chosen company will be displayed.
5. Test Cases: Modify companies
Test ID: 5.1
Field | Description |
---|---|
Title | Adding companies |
Feature | Add a company to the database. |
Objective | Confirm that by entering the data of a new company, it appears in the list |
Setup | A web server must be running and there must be a connection to the database. "Tutor mode" is required. |
Test Data
Company information:
- Type: Azienda
- Name: Prova SRL
- Province: Verona
- District: San Giovanni Lupatoto
- Nation: Italia
- Address: Via Prova, 1
- CAP: 37057
Test Actions
- Select the "add" option
- Enter the data
- Save changes
Expected Results
The company will appear on the list.
Test ID: 5.2
Field | Description |
---|---|
Title | Removing companies |
Feature | Remove a company from the database. |
Objective | Confirm that by deleting a company, it doesn't appear in the list anymore. |
Setup | A web server must be running and there must be a connection to the database. "Tutor mode" is required. |
Test Data
N/A
Test Actions
- Select the "remove" option
- Select the company
- Save changes
Expected Results
The company will not appear on the list anymore.
Test ID: 5.3
Field | Description |
---|---|
Title | Modifying companies |
Feature | Modify a company in the database. |
Objective | Confirm that, by modifying a company, the changes appear in the list. |
Setup | A web server must be running and there must be a connection to the database. "Tutor mode" is required. |
Test Data
- Province: Firenze
Test Actions
- Select the "modify" option
- Select the company
- Enter the new data
- Save changes
Expected Results
The changes will appear on the list.
See this document as PDF