• No results found

Test Case Calculator

N/A
N/A
Protected

Academic year: 2021

Share "Test Case Calculator"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

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

A 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

(2)

- 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 button

TC ID

M03

1. Test Objective

Verify that a digit is clear out of memory when using the MC button

2. Test Configuration

A 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+ button

TC ID

M04

1. Test Objective

Verify that a stored value in memory is increased when using the M+ button

2. Test Configuration

A 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

(3)

TC Title

Verify GUI of Backspace, CE, C buttons

TC ID

CLR01

1. Test Objective

Verify GUI of Backspace, CE, C buttons

(Clear button)

2. Test Configuration

A PC with OS installed and Calculator application is available and launched

3. Test Procedure

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

designed

5. 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 button

TC ID

B01

1. Test Objective

Verify that a digit is deleted when using the Backspace button

2. Test Configuration

A 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 button

TC ID

C01

1. Test Objective

Verify that a digit is cleared out of memory when using the CE, C button

2. Test Configuration

A PC with OS installed and Calculator application is available and launched

3. Test Procedure

(4)

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 Objective

Verify GUI of sqrt, %, 1/x, = buttons

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 sqrt, %, 1/x, = buttons are existed and in the left order as designed

4. Expected Results

There 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) button

TC ID

S01

1. Test Objective

Verify that a digit is squared root using the sqrt button

2. Test Configuration

A 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

(5)

TC Title

Verify the function of the “%” button

TC ID

P01

1. Test Objective

To verify that a digit is percent when using the MS button

2. Test Configuration

A 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” button

TC ID

P02

1. Test Objective

To verify function of the “1/x” button

2. Test Configuration

A 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 “=” button

TC ID

P03

1. Test Objective

To verify function of the “=” button (show result when pressed)

2. Test Configuration

A 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

(6)

- The value “5” is displayed in the edit box

TC Title

Verify the GUI of Calculator functions

TC ID

Cal01

1. Test Objective

Verify GUI of Calculator 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 right order as designed

4. Expected Results

There’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 "+" function

TC ID

Cal02

1. Test Objective

Verify the function of “+” button

2. Test Configuration

A 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 "+" function

TC ID

Cal03

1. Test Objective

Verify the function of “-” button

(7)

A 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 minus 2 digits is displayed successfully into edit box

TC Title

Verify that user can multiply 2 digits by using "*" function

TC ID

Cal04

1. Test Objective

Verify the function of “*” button

2. Test Configuration

A 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 "/" function

TC ID

Cal05

1. Test Objective

Verify the function of “/” button

2. Test Configuration

A 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

(8)

- 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 number

TC ID

N01

1. Test Objective

To verify GUI of values number

2. Test Configuration

A PC with OS installed and Calculator application is available and launched

3. Test Procedure

From calculator window, verify all function of values number are existed and in the center order as designed

4. Expected Results

There’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 number

TC ID

N02

1. Test Objective

To verify the function of values number

2. Test Configuration

A PC with OS installed and Calculator application is available and launched

3. Test Procedure

- Click from 0 to 9

4. Expected Results

(9)

TC Title

Verify the GUI of “0”, “+/-” and “.” button

TC ID

B01

1. Test Objective

Verify GUI of “0”, “+/-” and “.” button

2. Test Configuration

A PC with OS installed and Calculator application is available and launched

3. Test Procedure

From calculator window, verify all buttons are existed and in the bottom order as designed

4. Expected Results

There’re 3 buttons and they are in order center from left to right of the Calculator

window

TC Title

Verify the function of “+/-” button

TC ID

F01

1. Test Objective

Verify that a digit is negative or positive

2. Test Configuration

A 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 “.” button

TC ID

F02

1. Test Objective

(10)

2. Test Configuration

A 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

References

Related documents