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:

  1. Log in as Alice (Username: alice, Password: alice)
  2. Go to "Following" Tab at the top of the profile page
  3. Search for hosts by entering a city name (Boston or Paris)
  4. 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
  1. Log in as Bob (Username: bob, Password: bob)
  2. Go to "Followers" Tab at the top of the profile page
  3. 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:

  1. Log in as Alice (Username: alice, Password: alice)
  2. Go to "Search Place" Tab at the top of the profile page
  3. Search for places of interest by entering a city name (for ex. Boston or Paris)
  4. Now, click on the "Add to wish list" button in front of city name from the search result
  5. 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
  6. Click on "Review" button in front of cities to see and write a review for that city
OR
  1. Log in as Bob (Username: bob, Password: bob)
  2. Go to "Search Place" Tab at the top of the profile page
  3. Search for places of interest by entering a city name (for ex. Boston or Paris)
  4. Now, click on the "Add to Hosting Cities" button in front of city name from the search result
  5. 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
  6. 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:

  1. Log in as Alice (Username: alice, Password: alice)
  2. 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
  3. A city can have multiple reviews which will be listed on this page
OR
  1. Log in as Bob (Username: bob, Password: bob)
  2. 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
  3. 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:

  1. Go to home page of my project
  2. Enter name of city to get list of Top 30 places of interest in that city
OR
  1. Log in as Alice/Bob
  2. Go to "Search Place" Tab at the top of the profile page
  3. 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:

  1. Go to home page of my project
  2. Enter name of city to get list of Top 30 places of interest in that city
OR
  1. Log in as Alice/Bob
  2. Go to "Search Place" Tab at the top of the profile page
  3. 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:

  1. Log in as Alice/Bob
  2. Go to "Review" tab at the top of the profile page to access all the reviews related to user
  3. Toggle between "Review for you/Review by you" button to see all reviews user had provided or other users have given for the user
  4. 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:

  1. Log in as Alice
  2. Follow/Review Bob
  3. Search cities and add them to the wish list
  4. Go to profile page and click unregister to delete entry for Alice
  5. 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