TDS1 Exercise 6 Workbook v1.0
TDS1 Exercise 6 Workbook v1.0
Objective
By the end of this exercise, you will be able to create and adapt a class for the Attribute “Product”.
Key elements:
Class
Class
Reference
Instructions
1. Duplicate the Folder: “Exercise 5 Values” and rename it “Exercise 6a Create and Adapt Class”.
3 Within the Folder named “Classes” create a Sub-Folder named “Exercise 6a Create and Adapt Class”.
Navigate to the Folder “Exercise 6a Create and Adapt Class” within the “TestSheet 1 Calculate Shipping
4.
Costs” Folder and focus on the Attribute “Product”.
Drag the Attribute “Product” and drop it in to the “Classes” within the Folder “Exercise 6a Create and Adapt
5.
Class” to create a new Class named "Product".
Context
Having created a Class, we now need to adapt it to the changing circumstances of our SUT. The ordering of a second
product should now be included in the "Products" Attribute. The Instances that need to be created are:
• A second physical product
• A high quantity of digital Items
• N/A for when there isn’t a second product
These Instances will then allow us to deepen the testing of the shipping costs.
Navigate to the Class named “Product” and add the following 3 Instances:
• “Physical | 2nd Product” (Inner/Valid)
6.
• “Digital | High Quantity” (Inner/Valid)
• “N/A” (Inner/Valid)
Focus on the Class “Product”. Add the Values for the 3 new Instances as per the table below (there should
7.
be no Values entered for the Instance “N/A”):
Instances
Physical | 2nd Product Digital | High Quantity N/A
Attributes
Product Type Physical Digital
Article Casual Golf Belt 3rd Album
Quantity 1 70
1
8. Use “Arrange Instances” to reorganize the Instances within the Class “Product”.
Hints
»» After dragging and dropping the Attribute to create a class, the symbol on the Attribute in the TestSheet changes
and will have a white arrow on a red background indicating the Class Reference.
»» To get a page overview, you can deselect Options > TestCaseDesignUI > Hide EmbeddedScrollArea navigation columns
and in the line above select the number of columns to be displayed.
2
Exercise 06b | Use Class and Complete Instances
Objective
By the end of this exercise, you will be able to add the additional TestSheet Instances at the lower level required due to the
addition of new products.
Instructions
Duplicate the Folder: “Exercise 6a Create and Adapt Class” which contains the TestSheet and rename it
1.
“Exercise 6b Use Class and Complete Instances”.
Navigate and expand the “Ordered Products” Attribute. Navigate to and expand the Folder “Classes” in
2. the Folder “Exercise 6a Create and Adapt Class”. Drag the Class “Product” and drop it into the “Ordered
Products” Attribute.
Rename Attribute “Product” to “1st Product”. Rename the newly created Attribute “Product_1” to “2nd
3.
Product”.
Context
Three new combinations must be added to the “Ordered Products” Level. This is to test three new areas:
• Shipping costs are not added twice when two products are ordered.
• If a high quantity of digital products is added to an order containing a physical product that would normally
incur shipping costs, no shipping costs are incurred as the order exceeds the $50 threshold.
• An order that includes a physical product and a digital product but has a total value below $50 still incurs
shipping costs.
3
Instances
Physical Digital 2 Physical Physical + Physical Free Free Shipping
Digital | + Digital Shipping Shipping | Costs
Shipping | Free Boundary Applied |
Cost Shipping Boundary
Attributes
1st Product Physical Digital Physical Physical Physical Free Free Shipping
Shipping Shipping | Costs
Boundary Applied |
Boundary
2nd Product N/A N/A Physical Digital Digital N/A N/A N/A
| 2nd | High
Product Quantity
4
Exercise 06c | Complete TestSheet Level Instances
Objective
By the end of this exercise, you will be able to create and complete the necessary TestCase Instances.
Instructions
Duplicate the Folder: “Exercise 6b Use Class and Complete Instances” and rename it “Exercise 6c
1.
Complete TestSheet Level Instances”.
On the TestSheet level, add the 3 new Instances:
• 2 Physical (Inner/Valid)
2.
• Physical + Digital | Shipping Cost (Inner/Valid)
• Physical + Digital | Free Shipping (Inner/Valid)
3. Complete the TestSheet Instances entering the Values where they are required as per the table below:
Instances
2 Physical Physical + Digital | Physical + Digital | Free
Shipping Cost Shipping
Attributes
Administration:
Test Designer Max Methodology Max Methodology Max Methodology
Contact Person Peter Business Peter Business Peter Business
Test Stage Regression Regression Regression
Precondition:
Customer Registered | Address Registered | Address Registered | Address
Available Available Available
Process:
Ordered Products 2 Physical Physical + Digital | Physical + Digital | Free
Shipping Cost Shipping
Checkout Standard Standard Standard
Verification:
Message Success Message Success Message Success Message
Order Details / Default Shipping Costs Default Shipping Costs Free Shipping
Shipping Cost
Order Details/ Order Value + Shipping Order Value + Shipping Order Value + Shipping
Total Price Costs Costs Costs
At the TestSheet level, focus on the Attribute “Value Total Price”. Add the Values that correspond to the
4.
actual Values that will be verified according to the table below:
Instances
2 Physical Physical + Digital | Shipping Physical + Digital | Free
Cost Shipping
Attributes
Value Total Price 12.00 12.00 71.00