generated from gii-is-DP2/spring-petclinic
-
Notifications
You must be signed in to change notification settings - Fork 1
Project description
Guillermo Garrido Jimenez edited this page Apr 8, 2020
·
27 revisions
The web application will consist of a web page where pet owners will be able to register their pets to tournaments created by the administrators of the website, who are responsible for publishing the information of the tournaments and the fields where they are held. Pets are assigned to guides so that their owners can request to participate in tournaments. The judge users can publish the report that each participating pet has had in each tournament, so that when it has finished a ranking with the three pets with the highest score will be published.
- Tournaments
- Applications
- Fields
- Reports
- Categories
- Rankings
- Administrator
- Jugde
- Guide
Pets and Owners are the old entities & roles involved in the project
User Story 1 | |
---|---|
As an Administrator, I want to be able to create a tournament so the owners can apply participate in new tournaments. | |
A positive test case | When you are authenticated as an Admin, try to create a tournament named "Clark 2019 Tournament", location "York", application date "12/02/2019", start date "10/12/2019" and end date "10/12/2019" and a prize of "150.00 EUR". |
A negative test case | When you are authenticated as an Admin, try to create a tournament named "Clark 2020 Tournament", location "Orleans", application date "12/02/2020", start date "12/01/2020" and end date "10/12/2020" and a prize of "150.00 EUR". Returns to the form because a start date after the request date has been inserted |
User Story 2 | |
---|---|
As an Administrator, I want to be able to create categories for the tournaments so that I can introduce new differents types of pet sports to the system. | |
A positive test case | When the categories "Agility" and "Speed" already exists and you are authenticated as an Admin. Try adding a category with the name "Dog Puller". |
A negative test case | When the categories "Agility" and "Speed" already exists and you are authenticated as an Admin. Try adding a category with the name "Agility". Returns to the form due to a repeated name. |
User Story 3 | |
---|---|
As an Administrator, I want to be able to list all the categories of the system so I can manage the categories of the system. | |
A positive test case | When you are authenticated as an Admin, you try to access the list of categories. |
A negative test case | When you are authenticated as an Owner, you try to access the list of categories and access is denied. |
User Story 4 | |
---|---|
As an Administrator, I want to be able to create and edit fields for the tournaments so that we can have more variety in the tournaments. | |
A positive test case | When you are authenticated as an Admin, you try to access the list of fields. |
A negative test case | When you are authenticated as an Judge, you try to access the list of fields and access is denied. |
User Story 5 | |
---|---|
As an Administrator, I want to add a field to a tournament, so that participants know what kind of obstacles or tests there will be. | |
A positive test case | When you are authenticated as an Admin, try to create a field with the name "Agility circuit 5" with breadth "125.30", lenght "40.10" and url photo of "https://data.agilitynerd.com/images/courses/robertson001.jpg". |
A negative test case | When you are authenticated as an Admin, try to create a field with the name "Agility circuit 5" with breadth "125.999", lenght "40.999" and url photo of "sample text". It returns to the form because the width and length have 3 fractions and the photo is not a valid url. |
User Story 6 | |
---|---|
As an Administrator, I want to be able to list all the fields of the system so I can manage the fields of the system. | |
A positive test case | When you are authenticated as an Admin, you try to access the list of fields. |
A negative test case | When you are authenticated as an Guide, you try to access the list of fields and access is denied. |
User Story 7 | |
---|---|
As an Administrator, I want to be able to assign a judge to a tournament so that every tournament have an assigned judge. | |
A positive test case | When you are authenticated as administrator, try to update the tournament by assigning the judge with the last name "Díaz" with name "Beal 142 London" , location "York", application date "26/02/2019", start date "10/12/2019" and end date "12/12/2019" and a prize of "150.00 EUR" , the other data remain the same. |
A negative test case | When you are authenticated as administrator, try to update the tournament by assigning the judge with the last name "Díaz" with name "Beal 142 London" , location "York", application date "12/10/2019", start date "10/12/2019" and end date "13/12/2019" and a prize of "150.00 EUR" , the other data remains the same less the end date changes to 12/01/2019 and it returns to the form. |
User Story 8 | |
---|---|
As an Administrator, I want to be able to list applications so that I can manage the applications for the users that apply to a specific tournament. | |
A positive test case | When you are authenticated as an Admin, you try to access the list of applications. |
A negative test case | When you are authenticated as an Owner, you try to access the list of all applications and access is denied. |
User Story 9 | |
---|---|
As an Administrator, I want to be able to accept or reject applications so users who have sent a request are informed of their participation in a tournament. | |
A positive test case | When you are authenticated as an Admin, you try to update the application for the pet named "Garles" changing the application status to "ACCEPTED" |
A negative test case | When you are authenticated as an Admin, you try to update the application for the pet named "Joor" changing the application status to "REJECTED", it returns to the form due to you need to write a reason for rejection. |
User Story 10 | |
---|---|
As an Administrator, I want to be able to see a list of all the the tournaments of the system so I can manage easily all the tournaments of the system. | |
A positive test case | When you are authenticated as an Admin, you try to access the list of tournaments. |
A negative test case | When you are authenticated as an Guide, you try to access the list of tournaments and access is denied. |
User Story 11 | |
---|---|
As an authenticated user, I want to be able to see a list of the active tournaments so that I can to know in which tournaments you can start sending applications to register. | |
A positive test case | When you are authenticated as a system user (admin, owner, guide or judge), you try to access to the list of active tournaments. |
A negative test case | When you are anonymous user , you try to access to the list the access is denied. |
User Story 12 | |
---|---|
As an Owner, I want to be able to register my pet on a tournament so that my pet can participate on a tournament. | |
A positive test case | When you are authenticated as an Owner , you try to register a pet with a name "Toby", pet type "Bird" and birth date "20/12/2014 to the tournament "Bird Race 2014" with pet type "Bird". |
A negative test case | When you are authenticated as an Owner , you try to register a pet with a name "Marlen", pet type "Cat" and birth date "20/12/2014 to the tournament "Bird Race 2014" with pet type "Bird", it returns to the form due to pet type are no equal. |
User Story 13 | |
---|---|
As an Owner, I want to see a list of the applications that I have sent for my pets so that I can check the status of the applications that I have made. | |
A positive test case | When you are authenticated as an Owner , you try access the list of applications that you has already made for your pets. |
A negative test case | When you are authenticated as an Judge, you try to list all the applications and access is denied. |
User Story 14 | |
---|---|
As an Owner, I want to assign a guide to my pet so that my pet is available to participate on a tournament. | |
A positive test case | When you are authenticated as an Owner , you have your pet with a name "Toby", pet type "Bird", birth date "20/12/2014 and you updates his data assigning it a guide with last name "James". |
A negative test case | When you are authenticated as an Owner , you have two pets with a name "Toby" and "Gonzo", you assigns a guide to Gonzo and tries to changes his name to Toby so it returns to the form due to duplicated name. |
User Story 15 | |
---|---|
As an Owner, I want to see a list of the reports of my pets so that so that I can see the rating that they had in the past tournaments. | |
A positive test case | When you are authenticated as an Owner, you try to access the list of the reports of your pets. |
A negative test case | When you are authenticated as an Judge, you try to access the list of reports of the pets of a owner and access is denied. |
User Story 16 | |
---|---|
As a Jugde, I want to be able to create a report of a pet that participated in a tournament so that I can publish the score a pet has obtained. | |
A positive test case | When you are authenticated as an Judge, you try to create a report to the pet named "Toba" for the tournament "Douglas III", the score is 58 out of 100 and the comment is empty. |
A negative test case | When you are authenticated as an Judge, you try to create a report to the pet named "Toba" for the tournament "Douglas III", the score is 9000 and the comment is empty, it returns to the form due to the score is higher than 100. |
User Story 17 | |
---|---|
As a Jugde, I want to be able to see a table with all the tournaments where I have to write reports so that I can know in which tournaments I have to write reports. | |
A positive test case | When you are authenticated as an Judge, you try to access the list of the tournaments in which you have write a report. |
A negative test case | When you are authenticated as an Owner, you try to access the list of tournaments in which a judge have to write a report and access is denied. |
User Story 18 | |
---|---|
As a Jugde, I want to be able to see a list with my reports so that I can manage easily all the reports that I have made. | |
A positive test case | When you are authenticated as an Judge, you try to access the list of the reports you have made. |
A negative test case | When you are authenticated as an Guide, you try to access the list of reports of a judge and access is denied. |
User Story 19 | |
---|---|
As an Judge, I want to be able to use the mean score of the reports to make the ranking from a tournament so that I can make the ranking of a tournament. | |
A positive test case | When you are authenticated as an Judge, try to create the ranking of a tournament in which all pets have a report already made. |
A negative test case | When you are authenticated as an Judge, try to create the ranking of a tournament, but of 10 participating pets only 8 have a report, the functionality is blocked. |
User Story 20 | |
---|---|
As a Guide, I want to be able to see a list with the pets that I have been assigned so that I can know the data of the pets that I train. | |
A positive test case | When you are authenticated as an Guide, you try to access the list of the pets assigned to the guide. |
A negative test case | When you are authenticated as an Judge, you try to access the list of pets assigned to a guide and access is denied. |
User Story 21 | |
---|---|
As a Guide, I want to be able to see a list with the reports of the pets that I have assigned to me so that I can know the rating of the pets that I train. | |
A positive test case | When you are authenticated as an Guide, you try to access the list of the reports of your pets. |
A negative test case | When you are authenticated as an Judge, you try to access the list of reports assigned to a guide and access is denied. |
User Story 22 | |
---|---|
As an authenticated user, I want to be able to see the ranking of a tournament so that I can know the rating of the pets. | |
A positive test case | When you are authenticated as a system user (admin, owner, guide or judge), you try to access to the ranking. |
A negative test case | When you are anonymous user , you try to access to the ranking. Access is denied. |