0% found this document useful (0 votes)
20 views5 pages

TDS1 Exercise 6 Workbook v1.0

The document outlines a series of exercises aimed at creating and adapting a class for the 'Product' attribute in a TestCase design context. It includes detailed instructions for duplicating folders, creating classes and instances, and arranging test cases to assess shipping costs for different product combinations. The exercises emphasize the importance of adapting to changes in product attributes and ensuring that test cases are comprehensive for automation specialists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

TDS1 Exercise 6 Workbook v1.0

The document outlines a series of exercises aimed at creating and adapting a class for the 'Product' attribute in a TestCase design context. It includes detailed instructions for duplicating folders, creating classes and instances, and arranging test cases to assess shipping costs for different product combinations. The exercises emphasize the importance of adapting to changes in product attributes and ensuring that test cases are comprehensive for automation specialists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Exercise 06a | Create and Adapt Class

Objective
By the end of this exercise, you will be able to create and adapt a class for the Attribute “Product”.

Why is this important?


This exercise demonstrates how classes can be created and adapted.

Key elements:

Class
Class
Reference

Instructions

1. Duplicate the Folder: “Exercise 5 Values” and rename it “Exercise 6a Create and Adapt Class”.

2. In the “TestCaseDesign” Folder, create a Folder named “Classes”.

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.

Why is this important?


If a TestSheet is amended, the impact to the combinations must be taken into account.

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.

Focus on the “Ordered Product” Attribute. Add 3 TestCase Instances:


• 2 Physical (Inner/Valid)
4.
• Physical + Digital | Shipping Cost (Inner/Valid)
• Physical + Digital | Free Shipping (Inner/Valid)
Arrange the Instances by selecting the Attribute “Ordered Products” and chose “Arrange Instances” from
the “Optimize Instances” button in the Ribbon. Make sure the final order of the Instances appear as follows:
• Physical (StraightThrough)
• Digital
• 2 Physical (Inner/Valid)
5.
• Physical + Digital | Shipping Cost (Inner/Valid)
• Physical + Digital | Free Shipping (Inner/Valid)
• Free Shipping (Inner/Valid)
• Free Shiping | Boundary (Inner/Invalid)
• Shipping Costs Applied | Boundary (Inner/Invalid)

3


Navigate to and expand the “Ordered Products” Attribute (Process>>Ordered Products).


6. Where the Attributes intersect with the following TestSheet Instances, add the Values according to the table
below:

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.

Why is this important?


The relevant TestCase Instances must now be created at the TestSheet level and, in order for all the TestCases to be readable
for Automation Specialists, Values must be entered.

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

You might also like