Theoretical approach is something very different from practical approach.
QUESTION: You are given an online shopping site. As a user, Click on products. You see a variety of products under different categories. Write a test case for add product as admin and view product as user.
ANSWER: Let's first write the test case for admin login.
1) Login using valid user name and password.
2) Click on Add product. Check whether we are able to add the product successfully.
3) Verify whether all the fields marked in (*) are mandatory.
4) Verify whether the admin has the option to edit the product added.
5) Click on view products in admin to check whether the added product is displayed successfully.
6) Verify whether the admin has the option to remove the product from the site.
7) Edit a product. Check whether the changes are saved successfully.
8) Verify whether the added product is displayed under the category selected by the admin.
Test cases for user:
1) Verify whether the added products are displayed under view products.
2) Verify whether the removed product is displayed under view products.
3) Verify whether the edited product by the admin is displayed correctly.
4) Verify whether the user has the option to edit the product.
5) Verify whether the user can delete the product.
These are the test cases as far as my experience. You may be able to write more test cases than me. So you can work out on these criterion.
Wednesday, August 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment