Skip to content

Testing

William Silva edited this page Aug 18, 2017 · 4 revisions

Testing

Use Case 1 - Provide URL to GitHub Wiki with DETAILED Instructions to test user to user relation use case, e.g., user follows a user, user sends message to another user, user comments on the timeline of another user, etc.

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Users' in the navbar. Search for user 'alice'. Click on 'alice'. Click the 'Follow User' button at the bottom.

Go to 'Profile' in the navbar. In your profile in the 'You are following' section, 'alice' will be listed. Click on 'alice'. You will go to alice's profile page. In the 'Is Followed By' section, 'po' will be listed.

Use Case 2 - Provide URL to GitHub Wiki with DETAILED Instructions to test user to domain object use case, e.g., user likes/reviews/comments on a movie, etc.

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Movies' in the navbar. Search for 'dog'. Click on the 'Savage Dog' result. Click on the 'Like Movie' button which is just below the movie overview. Scroll down to the Reviews section. Type "It was good" into the textarea under Write Review. Click on the checkbox next to "Recommended?". Click "Submit Review". The review will show up in the Reviews section.

Go to 'Profile' in the navbar. In your profile in the 'Reviews' section, the review for "Savage Dog" will be shown.

Use Case 3 - Provide URL to GitHub Wiki with DETAILED Instructions to test domain object to domain object use case, e.g., add a song to a playlist, add events to a calendar, organize food items into a menu, etc.

We will make a Product to be sold for a movie.

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Sell' in the navbar. Click on 'Sell a product'. Search for 'Batman' and click on the 'Batman Begins' result. For the category, say "DVD". For the description, say "A brand new DVD that I wanted to get rid of". For the price, say "$10". For the image url, put "https://images-na.ssl-images-amazon.com/images/I/51EERECWD8L.jpg" Click on "Post Product"

You will be brought back to the "Sell Mode" page. Your product will be listed in the "Your Products for sale" section.

Click on 'Movies' in the navbar. Search for 'batman begins'. Click on the 'Batman begins' result. Scroll down to "Products for sale for this movie". You will see your new DVD as one of the listed products to be sold.

Use Case 4 - Provide URL to GitHub Wiki with DETAILED Instructions to test searching a third party API and display summary results use case, e.g., search for movies, recipes, sports team, jobs, non profit organizations, and display a summarized list of results

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Movies' in the navbar. Search for 'superman'. The search results will be displayed with movie posters and movie names for all the 'superman' movies returned by the 3rd-party API (The Movie DataBase - TMDb).

Use Case 5 - Provide URL to GitHub Wiki with DETAILED Instructions to test detail view of a search result, e.g., click on a particular movie, recipe, sports team, job, non profit organization, and display a detailed view of the domain object that merges remote data from API with local data in local database

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Movies' in the navbar. Search for 'Spirited Away'. The search results will be displayed with movie posters and movie names for all the 'Spirited Away' movies returned by the 3rd-party API (The Movie DataBase - TMDb). Click on the "Spirited Away" result. You will be brought to the movie details page for the movie "Spirited Away".

Use Case 6 - Provide URL to GitHub Wiki with DETAILED Instructions to test profile view providing access to user information and access to all data related to the user, e.g., summary list of users being followed, summary list of articles/posts/reviews written by the user, etc.

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'po' with password 'po'. Click on 'Profile' in the navbar. You will see all information related to this user including username, email, first name, last name, liked movies, who po is following, who po is being followed by, what products po has purchased, what products po has for sale, and the reviews that po has written

Project 5 additional tests

i. A user related to another user, e.g., a fan follows their favorite cricket player, a manager gives an employee a raise, an airbnb guest leaves a message for their host, etc.

Use Case 1 above

ii. A user searches for list of domain objects that match a criteria, e.g., search for movies with a title, search for events around boston, search for restaurants near me, etc.

Use Case 4 above

iii. A user views details of a particular domain object listed in the search results, e.g., clicking on a particular movie displays more details of the movie, clicking on a particular restaurant displays more details for that restaurant, etc.

Use Case 5 above

iv. A user views all domain objects related to the user, e.g., a critic sees all their movie reviews listed in their profile page, a buyer sees all orders and/or items listed in their profile page, etc.

Use Case 6 above

v. A user views all other users related to the user, e.g., a fan sees all their favorite football (soccer) players in their profile page, a social network user sees all other users they are following and sees users that are following them, etc.

Use Case 6 above

vi. A user related to a domain object, e.g., a user bookmarks their favorite book, a user creates a playlist, a buyer buys a product

Use Case 2 above

vii. A domain object related to another domain object, e.g., add a song to a playlist, an order that contains several products, a recipe that contains several ingredients, etc.

Use Case 3 above

viii. An admin creates a user

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'admin' with password 'admin'. Click on the 'Admin' button in the navbar. Click on "View Users". Look at the top row. Fill in the 'username' and 'password' fields with 'abcdef' and 'abcdef' respectively. Do not change the Role dropdown from 'user'. Press create. A new user has been created with the username and password that you specified. The user has username abcdef and password abcdef.

You may need to scroll to the right a bit on the table depending on your screen size.

ix. An admin lists all users

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'admin' with password 'admin'. Click on the 'Admin' button in the navbar. Click on "View Users". All users should be listed in the table that you are shown.

x. An admin edits/updates a particular user

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'admin' with password 'admin'. Click on the 'Admin' button in the navbar. Click on "View Users". Find user 'test'. Change the 'First Name' field to 'Alexander'. Change the 'Last Name' field to 'Hamilton'. Change the Email to 'banks@gmail.com'. Under 'Following', enter '5996633b05f52a0004942cac' into the input field and press add. Under 'Liked Movies', enter '19913' into the input field and press add.

Click the green 'Confirm' button. The user has been updated.

xi. An admin removes a user

Go to https://silva-william-webdev.herokuapp.com/project/index.html#!/

Click on 'Sign In' in the navbar. Log in as user 'admin' with password 'admin'. Click on the 'Admin' button in the navbar. Click on "View Users". Find user with username 'deleteme'. Scroll to the right of the table and click the "Delete" button. The user has been deleted.

Clone this wiki locally