Asirk75 / Sample1

0 stars 0 forks source link

Computer Databases TestCases v1 #1

Open Asirk75 opened 6 years ago

Asirk75 commented 6 years ago
  Action Expected Result Pass/Fail
TestCase 1: Start the Computer Databases webportal and find total computers      
1 Go to Website: http://computer-database.herokuapp.com/computers Play sample application — Computer database webportal is opened  
2 Check Out how many computers are in total dislayed Total numer Computers displayed: 575  
3 Close the browser Browser is closed  
TestCase 2: Enter one new computer      
1 Go to Website: http://computer-database.herokuapp.com/computers Play sample application — Computer database webportal is opened  
2 Check Out how many computers are in total dislayed Check Out how many computers are in total dislayed: 575  
3 Click on Add a New Computer button Add New Computer Page is displayed  
4 Click on Create this computer button Computer Name field should be displayed in red colour indicating that this field is mandatory  
5 Enter Computer Name: ASUS E1212 Computer name is entered  
6 Enter Introduced Date in this format: dd-mm-yyyy. Enter date: 20-11-2018 Introduced Date 20-11-2018 is entered  
7 Enter Discontinued Date: 24-12-2018 Discontinued Date: 24-12-2018 is entered  
8 Select Company: IBM IBM is selected in Company drop down list  
9 Click on Create this computer button Introduced Date and Discontinued Date is marked in red colour indicating that date format is not correct.  
10 Entert Introduced Date as: 2018-11-20 (yyyy-mm-dd) Introduced Date is entered  
11 Enter Discontinued Date: 2018-12-24 (yyyy-mm-dd) Discontinued Date is entered  
12 Select Company: IBM IBM is selected in Company drop down list  
13 Click on Create this computer button Computer is created and following message should be displayed on top of the page: Done! Computer ASUS E1212 has been created  
14 Check the total number of Computers: It should be 576 Total found computers: 576  
15 Close the browser Browser is closed  
TestCase 3: Find new entered computer      
1 Go to Website: http://computer-database.herokuapp.com/computers Play sample application — Computer database webportal is opened  
2 Enter ASUS E1212 in find by Computer name field and click on Filter by Name button Computer Name ASUS E1212 is found and displayed  
3 Check if only one computer is displayed Only one Computer should be displayed  
4 Check if Introduced Date = 2018-11-20 Introduced Date is = 20 Nov 2018  
5 Check if Discontinued Date = 24 Dec 2018 Discontinued Date = 24 Dec 2018  
6 Check if Company = IBM Company = IBM displayed  
7 Enter only ASUS in Computer name field and click on Filter by Name button 5 Computers are displayed all containing ASUS in name  
8 Enter IBM in the Computer Name field and click on Filter by Name button 25 Computers found is expected on top of the page  
9 Enter "Germany" in the Computer Name field and click on Filter by Name button "Nothing to display" should be displayed  
10 Enter "32" in the Computer Name field and click on Filter by Name button 5 Computers found message should be displayed, all containing the number 32 in name
11 Close the browser Browser is closed  
       
TestCase 4: Find and Update Computer      
1 Go to Website: http://computer-database.herokuapp.com/computers Play sample application — Computer database webportal is opened  
2 Enter ASUS E1212 in find by Computer name field and click on Filter by Name button Computer Name ASUS E1212 is found and displayed  
3 Click on Computer Name: ASUS E1212 Edit Computer Name is displayed with computer details  
4 Change Computer Name: ASUS A11 Computer Name entered is: ASUS A11  
5 Change Introduced Date: 2017-11-30 Introduced Date entered: 2017-11-30  
6 Change Discontinued date:2019-12-30 Discontinued date entered:2019-12-30  
7 Chose Company is change from IBM to empty No company selected  
8 Click on Save this computer button Following message is displayed: Done! Computer ASUS A11 has been updated
9 Enter ASUS A11 in search and click on Filter by Name button ASUS 11 computer is displayed  
11 Click on ASUS A11 and verify the update Introduced Date: 2017-11-30  and & Discontinued date:2019-12-30 and Company: -
12 Close the browser Browser is closed  
TestCase 5: Find and Delete Computer      
1 Go to Website: http://computer-database.herokuapp.com/computers Play sample application — Computer database webportal is opened  
2 Check and Copy the total number of computer Total computer displayed is 574  
3 Enter ASUS A11 in find by Computer name field and click on Filter by Name button Computer Name ASUS A11 is found and displayed  
4 Click on Computer Name: ASUS A11 ASUS 11 computer details are displayed  
5 Click in "Delete this computer" button Following message is displayed:Done! Computer has been deleted  
    Check if the total number computer displayed is 574-1=573  
6 Close the browser Browser is closed  
       
Asirk75 commented 6 years ago

The test case can be extended with some edge/boundary test cases like, what is the limit of characters that can be entered in Comcputer Name field, etc