Test Cases vol.2 - bounswe/bounswe2015group5 GitHub Wiki
Test Cases vol.2
These are the test cases corresponding to the use cases in the Use Cases page. Each test case has an id: TC# which shows the use case number it belongs to.
Project Name: Xplore
Test Case ID: TC1
Test Priority: Medium
Module Name: Registration
Test Title: Registration
Description: Creating an active account in the system
Test Designed By: Hanefi Önaldı
Test Design Date: 29.03.2015
Test Executed By: Mehmet Burak Kurutmaz
Test Execution Date: 07.01.2016
Precondition:
- Guest User has an e-mail address
- Guest User chooses a username that is not registered before
Dependencies: -
Steps
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | Guest User goes to signup page. | URL=http://ec2-52-35-108-249.us-west-2.compute.amazonaws.com:8080/XploreProject/#/signup | A registration form is shown containing fields for username, email address, password. | Signup page is shown with username, email address, password fields. | Pass | There is also password verification field |
| 2 | Guest User fills in the registration form and press Sign Up | username="cRazYb0i" email="[email protected]" password="123456" | System verifies the username, password, and email and redirects to home page | System redirected to home page | Pass | User also logged in |
Postconditions:
- The Guest User is now a Registered User
- The new Registered User is logged in now
Test Case ID: TC2
Test Priority: Medium
Module Name: Login
Test Title: Login Attempt
Description: Already registered user provides credentials to login
Test Designed By: Hanefi Önaldı
Test Design Date: 29.03.2015
Test Executed By: Mehmet Burak Kurutmaz
Test Execution Date: 07.01.2016
Precondition:
- User has already registered successfully
Dependencies: TC1
Steps
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | User goes to login page. | URL=http://ec2-52-35-108-249.us-west-2.compute.amazonaws.com:8080/XploreProject/#/login | Login page is shown containing fields for username, and password. | Login page is shown. A form appeared with username and password fields | Pass | |
| 2 | User fills in the login form and | username="cRazYb0i" password="123456" | User is now logged in and redirected to home page | User logged in and home page appeared | Pass | Username appeared on navigation bar |
Postconditions:
- The User is authenticated and the system displays a his/her home page.
- User is unable to login for some reason that system reports to user.
Test Case ID: TC3
Test Priority: Medium
Module Name: Search
Test Title: Search Attempt
Description: Guest or registered user attempts to search for a case.
Test Designed By: Arda Akdemir
Test Design Date: 29.03.2015
Test Executed By: Melih Demirören
Test Execution Date: 07.01.2016
Precondition:
- User is viewing the Xplore and able to see the search bar.
Dependencies: N/A
Steps
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | User types a query into the search title bar. | text="Istanbul" | Search result regarding the query is shown. Titles containing freedom is shown | "Istanbul court rejects appeal against arrests of Cumhuriyet daily's Can Dündar, Erdem Gül" title is shown | Pass | |
| 2 | User selects a contribution title from the search results. | title="Istanbul court rejects appeal against arrests of Cumhuriyet daily's Can Dündar, Erdem Gül" | User is redirected to Contribution's page | System opened http://ec2-52-35-108-249.us-west-2.compute.amazonaws.com:8080/XploreProject/#/viewContribution/2 page. Contributions body appeared | Pass | Contribution's comments also appeared |
Postconditions:
- User sees a contribution that matches the given searching query.
Test Case ID: TC5
Test Priority: Medium
Module Name: Adding Contribution
Test Title: Add Contribution
Description: Verify registered user is able to add a contribution
Test Designed By: Buket Yılmazel
Test Design Date: 29.03.2015
Test Executed By: Çağlayan Aras
Test Execution Date: 07.01.2016
Pre-conditions:
- Registered user is logged in.
Dependencies: N/A
Steps
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | Click on add contribution button placed on the page | Contribution form will be appeared | Contribution form appeared | Pass | ||
| 2 | Add title to contribution and tags | text = " The first station of Hisarüstü-Levent subway is Levent", tags= "metro(metro)" | System autocompletes tags | System autocompleted tags and recomended tags | Pass | |
| 3 | Click on Contribute button | Contribution's page appears | Contribution's page appeared with username, title and tags | Pass | The graph located in left is updated |
Post-conditions: Users contribution will be shown.
Test Case ID: TC6
Test Priority: Medium
Module Name: Rating
Test Title: Rating a contribution of another user
Description: Verify registered user is able to rate a contribution of another user
Test Designed By: Buket Yılmazel
Test Design Date: 29.03.2015
Test Executed By: Mert Çotuk
Test Execution Date: 07.01.2016
Pre-conditions:
- Registered user must be logged in.
- Registered user must be on the same page with the contribution.
Dependencies: N/A
Steps
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | User click on Like button which is placed under contribution | Rating of the contribution is incremented by 1 | Rating increased by 1 | Pass | Like button is disabled |
Post-conditions: Users rating will be visible on the contribution.
Test Case ID: TC8
Test Priority: Medium
Module Name: Commenting
Test Title: Verify registered user is able to comment on a contribution.
Description: Test that a registered user can add his/her comment for a contribution of a case.
Test Designed By: Can Güler
Test Designed Date: 29.03.2015
Test Executed By: Umut Gülsün
Test Executed Date: 07.01.2016
Pre-conditions:
- Registered user is logged in.
Dependencies: N/A
Steps:
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | Navigate to the page of the tag on which the contribution that will be commented sits. | URL=http://ec2-52-35-108-249.us-west-2.compute.amazonaws.com:8080/XploreProject/#/viewTag/1 | The contribution that will be commented is visible. | Contribution's page opened with Comments Button | Pass | |
| 2 | Click on the comments button just below the contribution text. | Contribution's comment page appears, a multilined text box will appear instead just below the contribution. | Comments of the contribution is appeared with a text box and comment button | Pass | ||
| 3 | Write the comment, and click on the Comment button. | comment='Great contribution if you can support it with an evidence' | Indented comment will be visible under the contribution. | Comment is added below the contribution | Pass |
Post-conditions:
- Both guests and registered users shall be able to see the comments.
Post-conditions:
- Both guests and registered users shall be able to see the comments.
Test Case ID: TC10
Test Priority: Medium
Module Name: Tagging
Test Title: Verify registered users are able to add tags contributions
Description: Test that a registered user can add a tag to contribution
Test Designed By: Hakan Şahin
Test Design Date: 29.03.2015
Test Executed By: Mustafa Oğuzhan Karakaya
Test Execution Date: 07.01.2016
Pre-conditions:
- Registered user is logged in.
Dependencies: N/A
Steps:
| Step | Test Steps | Test Data | Expected Result | Actual Result | Status (Pass/Fail) | Notes |
|---|---|---|---|---|---|---|
| 1 | Click on add contribution button placed on the page | Contribution form will be appeared | Contribution form appeared | Pass | ||
| 2 | Add title to contribution and tags | text = " Cumhuriyet daily’s Dundar, Gul arrested over report on Syria arms transfer", tags= "Justice System" | System autocompletes tags | System highlighted similar tags and added tags to tags area | Pass | |
| 3 | Click on Contribute button | Contribution's page appears | Contribution's appeared with username, title and tags | Pass |
Postconditions:
- System added new tags to the contribution.
- User's tag is visible on the tag section of the contribution.