0% found this document useful (0 votes)
0 views

TestCasesExamples

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

TestCasesExamples

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Get list of departments and number of employees in each departments ordered


alphabetically.

2. Get list of employees in each department sorted by number of employees in


each department.

3. IT department has 3 offices with windows. These offices are very popular
and offered to employees based on their hire date.
a) Find out who are occupying the offices.
b) Find out who is eligible to move to the office with windows if one of the
employees from the list (see a) leaves the company.

4. Find out salary percentile for each employees. Get list of employees and
their salary percentiles sorted by salary percentile in descending order.

5. Generate complete list of managers and employees who report to them

6. Find out how many employees got promotions

7. How many people left the company (group by year)

8. Print a list of employees grouped by hire year

9. Find out department where employees are least likely to get salary
increase.

10. Print list of departments and their managers with phone numbers

11. What is average annual salary increase in IT department (assuming all IT


engineers were starting with the lowest salary for given position)?

12. Generate company Phone book where employees first name, last name,
department name and department address are listed

13. Print a list with employees number grouped by country

Search engine test cases:


Test1: Search functionality should not work when no keyword is entered and prompt to enter
Test2: List of links/paths should display matching at least one of the keyword
Test3: Most suitable matches should display at the top of the list
Test4: Link should open in the same window.
Test5: Allow user to return to the search again by resetting or refresh

Test cases for elevator:


Here I am taking the simplest example of metro rail lift used to get from Ticket floor (TF) to Platform
floor (PF). Requirement: passenger should able to use lift to go and come back from Ticket floor to
platform floor. Precondition is passenger is on TF.

1) When light is on for the lift and no request has been made to go from TF to PF, button light should
Off.
2) When passenger made request for PF, button light should ON.
3) When button light is ON and if lift is available at TF, the door should open.
4) When button light is ON and if lift is not available at TF, the indicator light should indicate the
movement of lift from PF to TF.
5) When door opens, it should make a sound.
6) When passenger is in the lift, if passenger press the hold button lift door should not close.
7) If passenger press the lift close button, it should close immediately otherwise should close
automatically after fixed time.
8) If lift fan is ON, and passenger press FAN button it should get OFF or vice versa.
9) Try to call using CALL button to help persons using lift.
10) Now test for overload, if lift is for 10 persons or 100KG weight, try for 11 or 12 persons to use the lift
at one time.
11) Lift door should not open when lift is moving, even after pressing lift opening button.
12) Try to use Pass button of the lift to overcome an request.
13) Let lift is at PF, it should not move to TF if no request made at TF and vice versa.
14) Let passenger get in lift from TF anf starts moving to PF, then if other request made to PF, then lift
should complete first request first and come back to TF after PF.
15) If electricity get gone, Lift should not make a major jerks and starts working on emergency backup.

Login page testcases:


For testing the log-in page following are the possible scenarios:1. The design of login page is as per
the specifications
2. When the login page is opened the cursor is on the user name text box
3. Validating the user name text box with the following conditions:
i. It accepts alphanumeric characters along with the special characters
ii. Checks whether only the special characters like _, space, - are
allowed
iii. It accepts when only alphabets are given
iv. It does not accepts the numeric values alone
v. It does not accepts the void or null values
vi. When tab is pressed it goes to the password text box
vii. Checks whether the user name entered is available in the data base after the tab key is pressed
viii. Error message thrown for the wrong entry of user name
ix. When OK button in the error message is clicked the cursor should be on the user name text box
4. Validating the password text box with the following conditions:
i. Should allow the entry of alphanumeric and special characters
ii. When the entry is made it should encrypt and display as "*" to the users
iii. When tab or entry key is pressed it should go to the next page of the browser
iv. When wrong password is entered and does not matches with the values in the database the error
message is thrown
v. When OK button in the error message is clicked the cursor should be on the user name text box
There may be more possible scenarios for testing this page....but these were the most common ones.

You might also like