Test Design Techniques Homework
Test Design Techniques Homework
QC
In a system designed for postal services' payment: Letters up to 100g are called as light letters. Postal rates for sending the light letters up to 10g are $25. The next 40g should be played by $35. Each next 25g up to 100g should be played by an extra $10. Partitions should be designed for grams. 1. Build equivalence classes (partitions) based on given information 2. Stand Out boundary values 3. Cover requirements above by tests (write test cases names and objectives) based on equivalence partitioning and boundary value analysis
Equivalence partitioning (EP) A black box test design technique in which test cases are designed to execute representatives from equivalence partitions. Boundary value analysis (BVA) A black box test design technique in which test cases are designed based on boundary values. Boundary value is an input value or output value which is on the edge of an equivalence partition or at the smallest incremental distance on either side of an edge, for example the minimum or maximum value of a range. 1. Equivalence classes:
invalid 0g 1g paid by $25 10g 11g paid by $35 50g 51g paid by $45 75g 76g paid by $55 100g invalid 101g
Test Cases
Decision tables If you are a new customer of Apple store and you made a purchase on $500 and more, you will get a voucher on 10% discount for todays purchase. If your purchase worth is less than $500, then you will get a voucher on 5% discount for todays purchase. If you are a gold customer of Apple store, then you will have 30% discount on all store assortments. 1. Build decision table based on given information
Decision table A table showing combinations of inputs and/or stimuli (causes) with their associated outputs and/or actions (effects), which can be used to design test cases.
R1 new customer, purchase on $500 and more Y Y new customer, purchase less than 500$ Y gold customer Causes (inputs) R2 Y Y N R3 Y N N R4 Y N Y R5 N Y Y R6 N Y N R7 N N Y R8 N N N
R3 new customer, purchase on $500 and more Y N new customer, purchase less than 500$ N gold customer Effects (outputs) 5% discount (%)
Causes (inputs)
R6 N Y N
R7 N N Y
10% 30%
2.
State transition
To open a visa you need to pass a list of steps in standard procedure. At first you need to get consultation or read some materials about documents which should be provided. Then you should prepare these documents according to templates and give them to tour agency for verification. If there are mistakes in the documents, they should be re-developed. If documents are prepared correctly, then you should pay $80 for consular fee and pass interview with consul. If embassy accepts documents and you passed interview successfully, then you will get visa. If not, then you will need to try again. 1. Build state transition diagram based on given information
No mistakes
Money paid
passed
Get visa
not passed