Below are some Test Case samples that I wrote while working on previous projects.
Description: Check if the login works when a person uses a correct user/pass.
Steps to Reproduce
- Go to www.website.com/login
- Add a correct user/pass
- Press Login button
Expected Result: User should be able to login and is taken to his profile page.
Test Data: User:radu & Pass:123456
Description: Check if the login works when a person uses a wrong user/pass.
Steps to reproduce
- Go to www.website.com/login
- Add a wrong user/pass
- Press Login button
Expected Result: User should not be able to login. There will be an error message ”User or Password is wrong”.
Test Data: User: info & Pass: info1
Description: Check if the login works when a person uses a correct user/pass and the Remember Me checkbox is on/pressed.
Steps to Reproduce
- Go to www.website.com/login
- Add a correct user/pass
- Press the Remember Me checkbox
- Press Login button
- Close the page
- Go to login again
Expected Result: User should be able to login and is taken to his profile page. User should be able to acces his profile page without login credentials after he closes his profile page.
Test Data: User:radu & Pass:123456
Description: Check if the login works when a person uses SQL Injection.
Steps to Reproduce
- Go to www.website.com/login
- Add a SQL Injection query
- Press Login button
Expected Result: User should not be able to login.
Test Data: User: " or ""=" & Pass: " or ""="
Description: Check if the search box is working by typing a product by it”s name.
Steps to Reproduce:
- Go to emag.ro
- Type a correct product name in the Search Box
- Click on the Search Icon
Expected Result: The user should be able to navigate through a result list displayed on the page.
Test Data: Insert: tricou de dama alb
Description: Check if the search box is working by typing random letters.
Steps to Reproduce:
- Go to emag.ro
- Type some randome letters
- Click on the Search Icon
Expected Result: The page will display zero results with few advises: check if you spelled the term correctly; try using synonyms; try again, using a more general search.
Test Data: Insert: asasasa
Description:
Check if a product can be added to wishlist.
Steps to Reproduce:
-
Go to https://libris.ro/
-
Add a correct user/pass
-
Press Login Button
-
Type a correct product name in the Search Box
-
Click on the Search Icon
-
Click on the product
-
Click on Add to wishlist icon
-
Click on Wishlist
Expected Result:
The user should be able to add a product to Wishlist.
Test Data:
Insert: user: [email protected]; pass: 123456; search box input: Fluturi Volumul 1
Description:
Check if the API works when introducing a correct city name.
Steps to Reporduce:
-
Launch the app Postman
-
Click on Collections
-
Click on Create new collection and add a name
-
Press Save button
-
Click on Add a Request to start working
-
Insert a name for the new request
-
Enter the URL of API to test in the URL textbox
-
Select the HTTP method (GET)
-
For each KEY insert a VALUE
-
Click the Send button to start the test
Expected Result:
The response is valid and and all the keys have the correct value.
Test Data:
Insert : Collection name : Weather, Add a request name: Get weather by city name, API URL:
api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
key: q, value: london
key: appid, value: f3f34dfbc6243e6a57dbca12f16d3740