Exercise 30
Exercise 30
Instructions
2. Within the “Empty Shopping Cart” TestCase, navigate to the “Process>>Empty Shopping Cart” folder.
6. Inside the “Empty Shopping Cart” Folder, create a new TestStep Folder and name it “Select Remove”.
7. Place the “Select Remove” Folder after the TestStep “Calculate Items in Cart Without Header”.
In the Properties for the folder “Select Remove”, for the Attribute “Repetition”, add the value
8.
“{B[ActualCartNumber]}”.
Inside the Folder “Select Remove”, add the Module "WebShop | Shopping Cart", and rename this TestStep to
9.
“Empty Cart”.
10. Enter the values within your newly created TestSteps as per the table below:
Calculate Items
in Cart Without ActualCartNumber {MATH[{B[CartItems]}-1]} Input
Header
52
TestStepFolder TestStep TestStepValue Value ActionMode
Select Remove Shopping cart Products Select
Empty Cart Rename “<Row>” to
Select
“${Repetition}”
Rename “<Cell>” to “Remove”
by selecting it from the Select
dropdown
Checkbox Remove (Right
under the Cell now named True Input
${Repetition})
Insert user and password credentials in the "Precondition" TestStep and run the TestCase in the
11.
ScratchBook.
Hints
» To count the rows of a table like the one in this exercise, you could also use the function "RowCount" as shown
below:
53