TestCases - bounswe/bounswe2015group5 GitHub Wiki

Test Cases

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.

Test Case ID: TC12

Test Priority: Medium

Module Name: Asking Questions

Test Title: Verify registered user is able to ask questions about a case.

Description: Test that a registered user can request additional and spesific

information about a case by question type of comments.

Test Designed By: Mehmet Burak Kurutmaz

Test Designed Date: 29.03.2015

Test Executed By: N/A

Test Executed Date: N/A

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 containing the case URL Case and its questions section are visible N/A N/A
2 Click on "Ask Question" button A popup box containing a text field (for question) appears. N/A N/A
3 Fill the text box and click on the "Submit" button text = "Can earthquakes be predicted?" A notification indicating the status of the asking question action appears and
questions section is updated to include new question.
N/A N/A

Post-conditions:

  • System added question to the database.
  • User's question is listed in the questions section of the case.

Test Case ID: TC13

Test Priority: Medium

Module Name: Rating Questions

Test Title: Verify registered user is able to rate questions about a case.

Description: Test that a registered user can rate an asked question about a case

Test Designed By: Melih Demirören

Test Designed Date: 29.03.2015

Test Executed By: N/A

Test Executed Date: N/A

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 containing the case URL Case and its questions section are visible N/A N/A
2 Click on one of the asked questions text = "Is biological immortality possible?" A popup box containing 2 slider items (for accuracy and efficiency) appears. N/A N/A
3 Arrange sliders and click on the "Submit" button efficiency=10, accuracy=10 A notification indicating the rating action appears. N/A N/A

Post-conditions:

  • User's rating is visible on the question.
  • System added new rating to the question.

Test Case ID: TC14

Test Priority: Medium

Module Name: Answering Questions

Test Title: Verify registered user is able to answer questions about a case.

Description: Test that a registered user can answer a question about a case to provide additional and spesific information.

Test Designed By: Melih Demirören

Test Designed Date: 29.03.2015

Test Executed By: N/A

Test Executed Date: N/A

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 containing the case URL Case and its questions section are visible N/A N/A
2 Click on "Answer Question" button "Answer Question" button will disappear, a multilined text box will appear instead just below the question. N/A N/A
3 Type the answer and click on "Send" button. text="Good question, I found this research on lobsters, you can navigate to the link below..." Answer will be visible under the question. N/A N/A

Post-conditions:

  • User's answer is visible under the question.

Test Case ID: TC19

Test Priority: Medium

Module Name: Admin Panel

Test Title: Case Deletion

Description: Test that an administrator can delete a spesific case from the system

Test Designed By: Mustafa Tuğrul Özşahin

Test Design Date: 29.03.2015

Test Executed By: N/A

Test Execution Date: N/A

Pre-conditions:

  • Administrator is logged in with clearance to access case records and with delete permission.
  • There must be at least one case in the system.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 Navigate to admin panel URL Case deletion option visible N/A N/A
2 Choose case deletion option URL Case deletion page appeared, with list of cases and their report counts, and deletion checkboxes N/A N/A
3 Choose case(s) to delete Checkbox checkings & submit button List of cases, without the deleted ones N/A N/A

Post-conditions: The deleted cases won't appear again on the system to any user.


Test Case ID: TC20

Test Priority: Medium

Module Name: Admin Panel

Test Title: Case merge

Description: Test that an administrator can merge two cases into one case

Test Designed By: Mustafa Tuğrul Özşahin

Test Design Date: 29.03.2015

Test Executed By: N/A

Test Execution Date: N/A

Pre-conditions:

  • Administrator is logged in with clearance to access case records and with merge permission.
  • There must be at least two cases in the system.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 Navigate to admin panel URL Case merge option visible N/A N/A
2 Choose case merge option URL Case merge page appeared, with list of cases, and merge checkboxes N/A N/A
3 Choose two cases to merge Exactly two checkbox checkings & submit button Textbox for the title of the new (merged) case N/A N/A
4 Enter title for the new (merged) case title (text) & submit button List of cases, decremented by one, with the new title N/A N/A
5 Choose more or less than two cases to merge more or less than two checkbox checkings & submit button Failure message: you can only merge two cases in one operation N/A N/A

Post-conditions: The merged two cases will appear as one case in the system, with the given title.


Test Case ID: TC21

Test Priority: Medium

Module Name: Admin Panel

Test Title: Adding Relation

Description: Test that a registered user can add a relation between two cases in the system.

Test Designed By: Mustafa Tuğrul Özşahin

Test Design Date: 29.03.2015

Test Executed By: N/A

Test Execution Date: N/A

Pre-conditions:

  • User is logged in with an activated account.
  • There must be at least two cases in the system.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 Go to the case's page URL Add relation option visible N/A N/A
2 Choose add relation option Menuitem click Add relation popup box is appeared with a search bar for the case(second) to add relation, and a textbox for entering relation description (in which sense they are related), and a submit button N/A N/A
3 Enter half of the other case's name for relation adding, to the search bar Text Dropped-down list of the cases starting with the entered text N/A N/A
4 Choose one of the dropped down cases Menuitem click Auto-completed case name field N/A N/A
5 Enter relation description to the description textbox text - N/A N/A
6 Click submit menuitem selection Success message for relation addition, and the newly added case in the related cases list below the case page N/A N/A

Post-conditions: The two cases will be related in a sense the user states.


Test Case ID: TC22

Test Priority: Medium

Module Name: Rating A Relation

Test Title: Rate a Relation with respect to accuracy

Description: Verify registered user is able to rate a relation of an existing case with another one

Test Designed By: Ömer Ulusal

Test Design Date: 29.03.2015

Test Executed By: N/A

Test Execution Date: N/A

Preconditions:

  • Registered user must be logged in.
  • Registered user must be on the same page with the case.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 Registered user clicks the relations of case. Menuitem Click Relations box is shown. N/A N/A
2 User clicks the rating button of the specific relation. 3 stars Rating bar of the relation is colored & overall rating should change. N/A N/A

Postconditions:

  • The rated relation will be stronger, or weaker while gathering search results or recommendations according to its average rate.
  • The rate will be shown on the relation.

Test Case ID: TC23

Test Priority: Medium

Module Name: Semantic Search

Test Title: Semantic Search

Description: Verify that search mechanism outputs semantic results

Test Designed By: Ömer Ulusal

Test Design Date: 29.03.2015

Test Executed By: Adnan Budak Cengiz

Test Execution Date: 07.01.2016

Precondition:

  • Registered user must be logged in.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 User goes to main page. URL=http://ec2-52-35-108-249.us-west-2.compute.amazonaws.com:8080/XploreProject/#/viewTag/1 Main page is shown. A page appeared with a welcome post Pass
2 User clicks the tag search bar. Menuitem Click Tag search bar should be chosen. Tag search bar appearead opened with a list of tags Pass
3 User writes the keyword. text="Mark Zuckerberg" Search bar should be filled with "Mark Zuckerberg" Search bar recommended some tags and concepts Pass
4 User clicks the tag or enter. Menuitem Click Tag search results page is shown, results should include the cases which is semantically similar to 'Mark Zuckerberg' Contributions similar to "Mark Zuckerberg" are listed on the right panel Pass

Postconditions:

  • The found semantically related cases will be shown on the search results page along with the direct results (found by word matching).

Test Case ID: TC24

Test Priority: Medium

Module Name: Getting recommendations

Test Title: Getting recommendations

Description: Verify that recommendation mechanism works properly

Test Designed By: Ömer Ulusal

Test Design Date: 29.03.2015

Test Executed By: N/A

Test Execution Date: N/A

Precondition:

  • Registered user must be logged in.

Dependencies: N/A

Steps

Step Test Steps Test Data Expected Result Actual Result Status (Pass/Fail) Notes
1 User goes to main page. URL Main page is shown & Right side of page shows the recommendations about the user's search history and cases which was visited by him/her. N/A N/A
⚠️ **GitHub.com Fallback** ⚠️