Assignment: Currency Conversion Test Procedure

Only available on StudyMode
  • Download(s) : 212
  • Published : August 13, 2011
Open Document
Text Preview
Display Menu Test Cases

Test Case 1: Valid Menu Selection = Canadian Dollars

Inputs: Menu Selection = 1
Expected Outputs:
“Do you want to continue with the conversion, Y = Yes, N = No” Currency_Type = 1

Test Case 2: Valid Menu Selection = Quit

Inputs: Menu Selection = 6
Expected Outputs:
“Do you want to Quit, Y = Yes, N = No”
Currency_Type = 6

Test Case 3: Invalid Menu Selection = 9

Inputs: Menu Selection = 9
Expected Outputs:
“Error 4: Please make a valid menu selection”
“Hit any character or number to continue”
Menu is redisplayed

Get_Int_Value Test

Test Case 1: Valid International Value = 100.0
Inputs: 100.0
Expected Outputs:
International Value = 100.0

Test Case 2: Valid International Value = 0.0
Inputs: 0.0
Expected Outputs:
International Value = 00.0

Test Case 3: Invalid International Value = -15
Inputs: -15
Expected Outputs:
Error 1: Invalid input—Negative Number
Strike any character or numeric key to continue

Test Case 4: Illegal International value = character input
Input: ”L”
Expected Outputs:
Error 2: Illegal Input, Strike any character or numeric key to continue
Convert Currency Test

Test Case 1: Valid International Currency = Canadian
Inputs:
Currency_Type = 1
Int_Value = 100.0
Expected Output:
U.S._Value = 104.67

Test Case 2: Valid International Currency = Mexican
Inputs:
Currency_Type = 2
Int_Value = 100.0
Expected Output:
U.S._Value = 8.52

Test Case 3: Valid International Currency = Euro
Inputs:
Currency_Type = 3
Int_Value = 100.0
Expected Output:
U.S._Value = 144.82

Test Case 4: Valid International Currency = Japanese
Inputs:
Currency_Type = 4
Int_Value = 100.0
Expected Output:
U.S._Value = 1.18

Test Case 5: Valid International Currency = Chinese
Inputs:
Currency_Type = 5
Int_Value = 100.0
Expected Output:
U.S._Value = 15.30

Test Case 6: Invalid International Currency = 6
Inputs:
Currency_Type = 6
Int_Value = 100.0
Expected Output:
U.S._Value = 0.0

Display Results Test Cases

Test Case 1: Valid International Currency = Canadian
Inputs:
Currency_Type = 1
Int_Value = 100.0
U.S._Value = 104.67
Expected Output:
The value of 100.0 Canadian dollars is 104.67 U.S. dollars

Test Case 2: Valid International Currency = Mexican
Inputs:
Currency_Type = 2
Int_Value = 100.0
U.S._Value = 8.52
Expected Output:
The value of 100.0 Mexican pesos is 8.52 U.S. dollars

Test Case 3: Valid International Currency = Euro
Inputs:
Currency_Type = 3
Int_Value = 100.0
U.S._Value = 144.82
Expected Output:
The value of 100.0 European Euros is 144.82 U.S. dollars

Test Case 4: Valid International Currency = Japanese
Inputs:
Currency_Type = 4
Int_Value = 100.0
U.S._Value = 1.18
Expected Output:
The value of 100.0 Japanese yen is 1.18 U.S. dollars

Test Case 5: Valid International Currency = Chinese
Inputs:
Currency_Type = 5
Int_Value = 100.0
U.S._Value = 15.30
Expected Output:
The value of 100.0 Chinese yuan is 15.30 U.S. dollars

Test Case 6: Invalid International Currency = 6
Inputs:
Currency_Type = 6
Int_Value = 100.0
U.S._Value = 0.0
Expected Output:
Error 5: Invalid Currency Type

Currency Conversion Integration Test

Test Case 1: Valid Selection = Canadian
Inputs:
Currency_Type = 1
Int_Value = 100.0
U.S._Value = 104.67
Expected Output
The value of 100.0 Canadian dollars is 104.67 U.S. dollars

Test Case 2: Valid Selection = Quit
Inputs:
Currency_Type = 6
Continue = ”n”
Expected Output
Thank you for using the Currency Conversion Program

Test Case 3: Illegal Currency Amount
Inputs:
Currency_Type = 1
Int_Value = ”L”
Outputs
Error 2: Illegal Input
Strike any character or numeric key to continue
tracking img