While - Condition

This is a looping construct that allows for execution of actions/statements as long as the While condition is True.

'While' Properties:

DisplayName: The Display name which is the name of the action box.

Condition: The condition which is a Visual Basic Boolean Expression.

Example pseudo-code:

j=0  While j<5    
print ("Hello World\n")    
j=j+1; end While  
Output: Hello World
Hello World
Hello World
Hello World
Hello World 
NONE

For Each - Condition

This is a loop construct that allows the user to repeat a group of statements/actions for each element in a Collection. The user must specify the Visual Basic Collection Data Type (List of Integers, List of Strings, Arrays etc.).

'For Each' Properties:

Property Name

Data Type

Property Type

Property Description

DisplayName

String

 

The name of the action box.

TypeArgument

Data Type of members of property 'Values'.

 

The Data Type of the members of the Collection.

Values

Collection Data Type (List of Integers, List of Strings, etc.)

Input

The Data Type of the Collection.

Example pseudo-code:

Variable Num_List is of type List of Int32
Num_List ={1,10,100}
for each Int32 in Num_List
write ("Model Based Testing Rocks\n")
Output:
Model Based Testing Rocks
Model Based Testing Rocks
Model Based Testing Rocks
CODE

Switch - Condition

This action is for creating a switch mechanism for flow control.  The initial step of this action is to choose the Visual Basic Data Type (Int32, String etc.)  that will be used to control the Switch. The Switch statement is a multiway branching mechanism based on a defined set of cases. It is an alternative to an if-else construct.

Switch Properties:

Property Name

Data Type

Property Type

Property Description

Display Name

String

 

The name of the flowchart action box.

Expression

Visual Basic Activity (block of 1 or more statements)

 

This property defines the Activity of the Switch mechanism (which operates on the Data Type specified when the Switch action is dragged to the Flowchart canvas).

Example pseudo-code:

Assume we choose Int32 as our DataType  
Variable i is DataType Int32 
i=2 switch ( i ) 
Case 1:  print ("Hello 1"); break;  
Case 2: print ("Hello, hello 2"); break;  
Case 3: print ("Hello, hello, hello 3");break;  
default: print ("No case for given %i");break; end switch  
Output: Hello, hello 2 
CODE

If - Condition

This is a standard If Then Else condition which takes as input a Visual Basic Boolean expression.  To input the Then and Else parts of the condition, double click the box. That will bring up the following kind of box:

The Then and Else parts of the condition can be completed by dropping actions into the relevant part of the condition.

As in all other actions, the Display Name on the box can also be specified (String).


Decision - Condition

This is a Flow Decision action which takes a Visual Basic Boolean Expression as input. It also allows the user to specify different labels (on the Action Box) for True and False conditions. Example: The user wants to use Boolean labels Yes and No  rather than True and False.

Decision Properties:

Property Name

Data Type

Property Type

Property Description

Condition

Boolean

Input

The input property specifies a Boolean based on TrueLabel and FalseLabel.

DisplayName

String

 

This property specifies the name on the Display Box.

FalseLabel

String

 

This property specifies the False Label.

TrueLabel

String

 

This property specifies the True label.

VIP DEVOPS INTEGRATION VIP DESIGNER ACTIONS CONDITION & LOOP ACTIONS