test case calculator

12
Test case calculator TC Title Verify GUI of memory functions TC ID M01 1. Test Objective Verify GUI of memory functions 2. Test Configuration A PC with OS installed and Calculator application is available and launched 3. Test Procedure From Calculator window, verify all functions of calculating are existed and in the left order as designed 4. Expected Results There are four buttons about MC, MR, MS, M+ and they are in order from top to bottom of the Calculator window TC Title Verify the function of the MS, MR buttons TC ID M02 1. Test Objective Verify that a digit is stored in to memory and can be recalled 2. Test Configuration

Upload: nguyen-anh-tuan

Post on 16-Oct-2014

321 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Test Case Calculator

Test case calculator

TC Title Verify GUI of memory functionsTC ID M01

1. Test ObjectiveVerify GUI of memory functions

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test ProcedureFrom Calculator window, verify all functions of calculating are existed and in the left order as designed

4. Expected ResultsThere are four buttons about MC, MR, MS, M+ and they are in order from top to bottom of the Calculator window

TC Title Verify the function of the MS, MR buttonsTC ID M02

1. Test ObjectiveVerify that a digit is stored in to memory and can be recalled

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input some digits into edit box- Click on MS button- Click on Clear button- Click on MR button

4. Expected Results

Page 2: Test Case Calculator

- These digits are inputted successfully into edit box- The value “0” exists in the edit box- The first values (stored in memory) is displayed in the edit box

TC Title Verify the function of MC buttonTC ID M03

1. Test ObjectiveVerify that a digit is clear out of memory when using the MC button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input some digits into edit box- Click on MS button- Click on Clear button- Click on MC button- Click on MR button

4. Expected Results- These digits are inputted successfully into edit box- The value “0” exists in the edit box- The value “0” is displayed in the edit box

TC Title Verify the function of M+ buttonTC ID M04

1. Test ObjectiveVerify that a stored value in memory is increased when using the M+ button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input value “4” into edit box- Click on MS button- Click on M+ button- Click on MR button

4. Expected Results- The value are inputted successfully into edit box- The value “8” is displayed in the edit box

Page 3: Test Case Calculator

TC Title Verify GUI of Backspace, CE, C buttons TC ID CLR01

1. Test ObjectiveVerify GUI of Backspace, CE, C buttons (Clear button)

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure4. From Calculator window, verify all functions of Clear are existed and in the top order as

designed5. Expected Results

There are three buttons about Backspace, CE, C and they are in order from left to right of the Calculator window

TC Title Verify the function of Backspace buttonTC ID B01

1. Test ObjectiveVerify that a digit is deleted when using the Backspace button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input some digits into the edit box- Click on Backspace button- Continue to delete the other digits by pressing the Backspace button

4. Expected Results- These digits are inputted successfully into edit box- The first digit in the edit box is deleted successfully- The digits are deleted successfully

TC Title Verify the function of CE, C buttonTC ID C01

1. Test ObjectiveVerify that a digit is cleared out of memory when using the CE, C button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure

Page 4: Test Case Calculator

- Input some digits into the edit box- Click on CE or C button

4. Expected Results- The value are inputted successfully into edit box- The value “0” is displayed in the edit box

TC Title Verify GUI of sqrt, %, 1/x, = buttons TC ID G01

1. Test ObjectiveVerify GUI of sqrt, %, 1/x, = buttons

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test ProcedureFrom Calculator window, verify all functions of sqrt, %, 1/x, = buttons are existed and in the left order as designed

4. Expected ResultsThere are four buttons about sqrt, %, 1/x, = and they are in order from top to bottom of the Calculator window

TC Title Verify the function of sqrt (square root) buttonTC ID S01

1. Test ObjectiveVerify that a digit is squared root using the sqrt button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Form Calculator window, input value “9” into edit box- Click the sqrt button

4. Expected Results- Value “9” is inputted successfully- The value “3” is displayed in the edit box

Page 5: Test Case Calculator

TC Title Verify the function of the “%” buttonTC ID P01

1. Test ObjectiveTo verify that a digit is percent when using the MS button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- From Calculator window, input value “8” into edit box- Click on “%” button

4. Expected Results- Value “8” is inputted successfully- The value “0.08” is displayed in the edit box

TC Title Verify the function of “1/x” buttonTC ID P02

1. Test ObjectiveTo verify function of the “1/x” button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- From Calculator window, input value “2” into edit box- Click on “1/x” button

4. Expected Results- Value “2” is inputted successfully- The value “0.5” is displayed in the edit box

TC Title Verify the function of “=” buttonTC ID P03

1. Test ObjectiveTo verify function of the “=” button (show result when pressed)

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input value “3” into edit box- Click on “+” button- Input value “2” into edit box

4. Expected Results

Page 6: Test Case Calculator

- Value “3” is inputted successfully - Value “2” is inputted successfully- The value “5” is displayed in the edit box

TC Title Verify the GUI of Calculator functionsTC ID Cal01

1. Test ObjectiveVerify GUI of Calculator functions

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test ProcedureFrom Calculator window, verify all functions of calculating are existed and in the right order as designed

4. Expected ResultsThere’re four buttons about /, *, -, + and they are in order from top to bottom of the Calculator window

TC Title Verify that user can plus 2 digits by using "+" functionTC ID Cal02

1. Test ObjectiveVerify the function of “+” button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- From calculator window, input a digit into edit box- Click on the button “+”- Input another digit into edit box- Click on the “=” button

4. Expected Results- The digit is inputted successfully into edit box- The digit is inputted successfully- The correct result of adding 2 digits is displayed successfully into edit box

TC Title Verify that user can minus 2 digits by using "+" functionTC ID Cal03

1. Test Objective

Page 7: Test Case Calculator

Verify the function of “-” button2. Test Configuration

A PC with OS installed and Calculator application is available and launched3. Test Procedure

- From calculator window, input a digit into edit box- Click on the button “-”- Input another digit into edit box- Click on the “=” button

4. Expected Results- The digit is inputted successfully into edit box- The digit is inputted successfully- The correct result of minus 2 digits is displayed successfully into edit box

TC Title Verify that user can multiply 2 digits by using "*" functionTC ID Cal04

1. Test ObjectiveVerify the function of “*” button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- From calculator window, input a digit into edit box- Click on the button “*”- Input another digit into edit box- Click on the “=” button

4. Expected Results- The digit is inputted successfully into edit box- The digit is inputted successfully- The correct result of multiply 2 digits is displayed successfully into edit box

TC Title Verify that user can divide 2 digits by using "/" functionTC ID Cal05

1. Test ObjectiveVerify the function of “/” button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- From calculator window, input a digit into edit box- Click on the button “/”- Input another digit into edit box

Page 8: Test Case Calculator

- Click on the “=” button4. Expected Results

- The digit is inputted successfully into edit box- The digit is inputted successfully- The correct result of divided 2 digits is displayed successfully into edit box

TC Title Verify the GUI of Values numberTC ID N01

1. Test ObjectiveTo verify GUI of values number

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test ProcedureFrom calculator window, verify all function of values number are existed and in the center order as designed

4. Expected ResultsThere’re 9 buttons from 1 to 9, they are in order from left to right and bottom to top of the Calculator window

TC Title Verify the function of Values numberTC ID N02

1. Test ObjectiveTo verify the function of values number

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Click from 0 to 9

4. Expected ResultsThere’re 10 numbers from 0 to 9 are displayed in order into the edit box

Page 9: Test Case Calculator

TC Title Verify the GUI of “0”, “+/-” and “.” buttonTC ID B01

1. Test ObjectiveVerify GUI of “0”, “+/-” and “.” button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test ProcedureFrom calculator window, verify all buttons are existed and in the bottom order as designed

4. Expected ResultsThere’re 3 buttons and they are in order center from left to right of the Calculator window

TC Title Verify the function of “+/-” buttonTC ID F01

1. Test ObjectiveVerify that a digit is negative or positive

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input some digits into the edit box- Click on “+/-” button- Click on “+/-” button again

4. Expected Results- These digits are inputted successfully into edit box- These digits are showed negative- These digits are showed positive

TC Title Verify the function of “.” buttonTC ID F02

Page 10: Test Case Calculator

1. Test ObjectiveVerify the function of decimal button

2. Test ConfigurationA PC with OS installed and Calculator application is available and launched

3. Test Procedure- Input value “2” into the edit box- Click on decimal button “.”- Input value “5” into the edit box

4. Expected Results- Value “2” is displayed into the edit box- The value decimal “.” is displayed into the edit box- Value “5” is displayed into the edit box