How to use if else in Tosca

If else in Tosca is used to control the flow of the script using a defined condition. In the below example, we are trying to log in to the Demo webshop, and below is the if condition structure If (Error Condition == “”) Then (Verify user logged in successfully) Else (Verify error message for invalid … Read more

How to resolve the “Parameter was not defined” error in Tosca

Problem: The “Parameter was not defined” error in Tosca mostly occurs while comparing 2 characters in an evaluation tool. In the above example, We created 2 buffers Expected value and Actual value. In the evaluation tool, we are evaluating whether 2 characters are the same or not. Syntax used : {B[Expected value]} == {B[Actual value]} … Read more

How to handle color swatches using TOSCA

On many retail websites selecting color swatches may require multiple variables/module attributes. In this article, we will discuss how can we handle this color swatch in a single attribute using TOSCA In this example, we are going to use the Tricentis demo webshop. On the PDP there are 3 color swatches and below will see … Read more

How to handle dynamic drop-down in TOSCA

In every automation tool handling dynamic values is a key factor. In this article, we will discuss some ways to handle dynamic drop-down using TOSCA In this example, I took their demo site as an example. Kindly use the below approaches based on your requirement The demo site has two customizable options, The First one … Read more