Testing Requirements and Use Cases - PiyushGoel1302/goel-piyush-web-dev GitHub Wiki
Use Case 1: User to User relation
To test user to user relation follow these steps:
- Log in as Alice (Username: alice, Password: alice)
- Go to "Following" Tab at the top of the profile page
- Search for hosts by entering a city name (Boston or Paris)
- Now, click on the "Follow" button in front of hosts name from the search result. Alice can also click on "Review" button to read reviews given for the host by other users and also can provide one. Alice can delete all the reviews provided by her
OR
- Log in as Bob (Username: bob, Password: bob)
- Go to "Followers" Tab at the top of the profile page
- In the list of followers who are following Bob, Bob can read reviews given for the user by other users and also can provide one. Bob can delete all the reviews provided by him. Bob can also check their details by clicking on their name
Use Case 2: User to Domain relation
To test user to domain relation follow these steps:
- Log in as Alice (Username: alice, Password: alice)
- Go to "Search Place" Tab at the top of the profile page
- Search for places of interest by entering a city name (for ex. Boston or Paris)
- Now, click on the "Add to wish list" button in front of city name from the search result
- Go to "Wish List" tab at the top of the page to see list of all the cities which Alice has on her wish list
- Click on "Review" button in front of cities to see and write a review for that city
OR
- Log in as Bob (Username: bob, Password: bob)
- Go to "Search Place" Tab at the top of the profile page
- Search for places of interest by entering a city name (for ex. Boston or Paris)
- Now, click on the "Add to Hosting Cities" button in front of city name from the search result
- Go to "Hosting Cities" tab at the top of the page to see list of all the cities which Bob has on his list for hosting
- Click on "Review" button in front of cities to see and write a review for that city
Use Case 3: Domain to Domain relation
To test domain to domain relation follow these steps:
- Log in as Alice (Username: alice, Password: alice)
- Go to "Wish List" tab at the top of the profile page to see the list of all the cities which Alice has on her wish list. Click on "Review" button in front of cities to see and write a review for that city
- A city can have multiple reviews which will be listed on this page
OR
- Log in as Bob (Username: bob, Password: bob)
- Go to "Hosting Cities" tab at the top of the profile page to see the list of all the cities which Bob has on his hosting city list. Click on "Review" button in front of cities to see and write a review for that city
- A city can have multiple reviews which will be listed on this page
Use Case 4: Searching a third party API and display summary results
To test use case 4 follow these steps:
- Go to home page of my project
- Enter name of city to get list of Top 30 places of interest in that city
OR
- Log in as Alice/Bob
- Go to "Search Place" Tab at the top of the profile page
- Enter name of city to get list of Top 30 places of interest in that city
Use Case 5: Detail view of a search result
To test use case 5 follow these steps:
- Go to home page of my project
- Enter name of city to get list of Top 30 places of interest in that city
OR
- Log in as Alice/Bob
- Go to "Search Place" Tab at the top of the profile page
- Enter name of city to get list of Top 30 places of interest in that city
Use Case 6: Profile view providing access to user information and access to all data related to the user
To test use case 6 follow these steps:
- Log in as Alice/Bob
- Go to "Review" tab at the top of the profile page to access all the reviews related to user
- Toggle between "Review for you/Review by you" button to see all reviews user had provided or other users have given for the user
- User can delete reviews provided by them but not the reviews they received
Use Case 7: Cascading delete
To test cascading delete follow these steps:
- Log in as Alice
- Follow/Review Bob
- Search cities and add them to the wish list
- Go to profile page and click unregister to delete entry for Alice
- Log in as Bob to check that Alice is now removed from Followers list of Bob. Also, reviews given by/for Alice are also removed