Friday, October 4, 2013

Testing a web service (Part 3)


OK, Let's wrap this up.

There were two (or more) fail test cases. One for conversion of USD to USD , and the other was conversion of some micro currencies like ZWD to USD.

Here is an example a passed test suite:



Test Case Name and Number: 2-BRIC2BRIC
Test Case Description: conversion rate from the currency of one BRIC nation to the currency of another BRIC nation,
Pre-Condition: http://www.webservicex.net/CurrencyConvertor.asmx web service should be running and accepting SOAP request and must send response.
Status:
Strated



Exit Criteria: The service must return either conversion rate or exception message if anything goes wrong.

Step ID
Test Requirement
Test for the features
Steps to be executed
Expected result
Actual Result
Pass/Fail
Remarks
Comparing INR, CAD, JPY and TRY to Other same group
BRIC2BRIC-01
Web service should be running
Conversion rate requst
1. Put BRL in FromCurrency field
2. Put RUB in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-02
Web service should be running
Conversion rate requst
1. Put RUB in FromCurrency field
2. Put BRL in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-03
Web service should be running
Comparison of Steps 01 and 02
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

BRIC2BRIC-04
Web service should be running
Conversion rate requst
1. Put BRL in FromCurrency field
2. Put INR in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-05
Web service should be running
Conversion rate requst
1. Put INR in FromCurrency field
2. Put BRL in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-06
Web service should be running
Comparison of Steps 04 and 05
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

BRIC2BRIC-07
Web service should be running
Conversion rate requst
1. Put BRL in FromCurrency field
2. Put CNY in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-08
Web service should be running
Conversion rate requst
1. Put CNY in FromCurrency field
2. Put BRL in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-09
Web service should be running
Comparison of Steps 07 and 08
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

BRIC2BRIC-10
Web service should be running
Conversion rate requst
1. Put RUB in FromCurrency field
2. Put INR in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-11
Web service should be running
Conversion rate requst
1. Put INR in FromCurrency field
2. Put RUB in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-12
Web service should be running
Comparison of Steps 10 and 11
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

BRIC2BRIC-13
Web service should be running
Conversion rate requst
1. Put RUB in FromCurrency field
2. Put CNY in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-14
Web service should be running
Conversion rate requst
1. Put CNY in FromCurrency field
2. Put RUB in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-15
Web service should be running
Comparison of Steps 13 and 14
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

BRIC2BRIC-16
Web service should be running
Conversion rate requst
1. Put INR in FromCurrency field
2. Put CNY in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as A
As Expected
Pass

BRIC2BRIC-17
Web service should be running
Conversion rate requst
1. Put CNY in FromCurrency field
2. Put INR in ToCurrency field
3. Call ConversionRate operation with above inputs
Conversion rate result should be returned. Record the result as B
As Expected
Pass

BRIC2BRIC-18
Web service should be running
Comparison of Steps 16 and 17
1. Check if A=1/B
 A and 1/B must be equal or very close (maximum 0.5% difference)
As Expected
Pass

TEST CASE HISTORY
Tester Name
Date and Time
O/S, Broswer & other specs
Script File number/name
comments
Payam P
1/8/2013
See comment
 2-BRIC2BRIC.py
and
 2-BRIC2BRIC.html













And here you are two failed ones:

Test Case Name and Number: 5-Currency2Itself
Test Case Description: Checking if a currency can be compared with itself and return a constant value (whether True or False)
Pre-Condition: http://www.webservicex.net/CurrencyConvertor.asmx web service should be running and accepting SOAP request and must send response.
Status:
Strated





Exit Criteria: The service must return either conversion rate or exception message if anything wrong goes..

Step ID
Test Requirement
Test for the features
Steps to be executed
Expected result
Actual Result
Pass/Fail
Remarks
Checking if a currency can be compared with itself and return a constant value (whether True or False)
5-Currency2Itself-1
Web service should be running
Check conversion rate for same currency codes.
1. Put INR in FromCurrency field
2. Put INR in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return 1 as conversion rate as it does for most currencies.
As Expected
Pass

5-Currency2Itself-2
Web service should be running
Check conversion rate for same currency codes.
1. Put EUR in FromCurrency field
2. Put EUR in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return 1 as conversion rate as it does for most currencies.
As Expected
Pass

5-Currency2Itself-3
Web service should be running
Check conversion rate for same currency codes.
1. Put USD in FromCurrency field
2. Put USD in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return 1 as conversion rate
Service return wrong conversion rate as 0
Fail

TEST CASE HISTORY
Tester Name
Date and Time
O/S, Broswer & other specs
Script File number/name
comments
Payam P
1/8/2013
See comment
5-Currency2Itself-Check.py
and
5-Currency2Itself-Check.py














Test Case Name and Number: 6-ZWD-Test-Case
Test Case Description: Comparing ZWD with another currency.
Pre-Condition: http://www.webservicex.net/CurrencyConvertor.asmx web service should be running and accepting SOAP request and must send response.
Status:
Strated







Exit Criteria: The service must return either conversion rate or exception message if anything wrong goes..

Step ID
Test Requirement
Test for the features
Steps to be executed
Expected result
Actual Result
Pass/Fail
Remarks
Comparing ZWD with another currency.
ZWT-01
Web service should be running
Check conversion from ZWD to USD
1. Put ZWD in FromCurrency field
2. Put USD in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return conversion rate
Service return 0
Fail

ZWT-02
Web service should be running
Check conversion from USD TO ZWD
1. Put USD in FromCurrency field
2. Put ZWD in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return conversion rate
Service return 0
Fail

ZWT-03
Web service should be running
Check conversion from ZWD to ZWD
1. Put ZWD in FromCurrency field
2. Put ZWD in ToCurrency field
3. Call ConversionRate operation with above inputs
Service should return conversion rate as 1
Service return 0
Fail

TEST CASE HISTORY
Tester Name
Date and Time
O/S, Broswer & other specs
Script File number/name
comments
Payam P
1/8/2013
See comment
6-ZWD-Test-Case.py
and
6-ZWD-Test-Case.html












No comments:

Post a Comment