Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This action compares two arrays for equalityto check if they are equal.

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

actualArray

Enter the array which you want to compare. Array items are separate by carat (^) sign.

No

Array

excpectedArray

Enter the expected array against which you want to com[are compare the actual array.

Array items are separate by carat (^) sign.

No

Array

match

This parameter specifies the type of comparison to be done. It can be one of the following: 

  • Exact – This will compare the items of the array for exact match that is size of the two arrays should match. The sequence in which the items occur in the arrays should match. This is a one to one comparison. 

  • Partial- This compares if the second array is a sub-list of the first. The sub-list items in the second array need not be in the same sequence as they appear in the first array. However, it is not vice versa, that is, it will not check if the first array is a sub-list of the seconds second array. In this case, the action will fail.

No

String

...

StoreMatchesFromRegExPattern                  "Cust1(\d?)"               "CustKey1 CustKey123Cust321"           "Key"

Array.IsArray (Deprected)

This action verifies whether the specified data is in the array form. If the data is not an array, reports a defect in the execution report.

...

Array.IsArray              "ArrayKey"

...

ArrayJoinAndStore

This action joins the substrings from an existing array and stores them into the specified key. By default, these substrings are separated by the caret sign (^). The key value can be retrieved using the key name.

...

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKeyArray

Enter the key that holds an array data which you want to join.

Yes

String

Key

Enter the key name under which you want to store the joined array.

Yes

String

 

Example:

Array.JoinArrayAndStore  ArrayJoinAndStore                "ArrayKeyJo^hn^001"            "Key"

...

ArrayReverse

This action reverses the existing sequence of data given in an array.

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKey

Enter the key that holds an array data which you want to sort in an ascending order

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKeyArray

Enter the key that holds an array data which you want to modify the sequence of.

Yes

String

 

Example:
Array.Reverse                     "ArrayKey"

Array.Sort

This action sorts the existing array data in an ascending order.

Input Parameters:

Key

Enter the key name under which you want to store the element.

Yes

String

 

Example:
Array.Sort  ArrayReverse                  "99^1^44^2" ArrayKey"Key"

...

ArraySort

This action stores sorts the length of an existing array into the specified key. The key value can be retrieved using the key name.data in an ascending or descending order.

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKey

Array

Enter the

key that holds an array data whose length

array which you want to

store

sort in an ascending order.

Yes

String

Key

Enter the key name under which you want to store the

array length

element.

Yes

String

Example:

...

dataType

This is the type of data considered for testing. Supported data types are
STRING: These are combination of alphanumeric and special characters items. 
INTEGER: These are strictly numerical items

Yes

String

direction

Keep blank to sort the array in ascending order. Enter desc to sort the array in descending order.

No

String

 

Example:
ArraySort               "9^8^7^6" "key" "Integer" " "

ArraySort               "MH^8^CW^6" "key" "String" "desc"

StoreArrayLength

This action stores the length of an existing array into the specified key. The key value can be retrieved using the key name.

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

Array

Enter the array whose length you want to store.

Yes

String

Key

Enter the key name under which you want to store the array length.

Yes

String

Example:

StoreArrayLength       "99^1^999^0"               "Key"

...

ArrayStoreElementByIndex

This action stores the element from the specified index of an array into the specified key. The key value can be retrieved using the key name.

...

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKeyArray

Enter the key that holds an array data from which you want to store the element.

Yes

String

Index

Enter the index of the element which you want to store.

Yes

String

Key

Enter the key name under which you want to store the element.

Yes

String

Example:
Array.StoreElementByIndex  ArrayStoreElementByIndex                  "ArrayKeyJo^hn^001"          "52"           "Key"

...

ArrayStoreElementIndex

This action stores the index of the specified element from an existing array into the specified key. The key value can be retrieved using the key name.
Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKeyArray

Enter the key that holds an array data from which you want to store the element index.

Yes

String

ElementItem

Enter the element which you want to store.

Yes

StringOccurrence

Enter the number of occurrence from the array which you want to store.

Yes

String

CaseSensitive

Enter whether you want to consider case-sensitivity when comparing content. Value for this parameter can be True or False.

  • Set True for case-sensitive comparison.

  • Set False for case-insensitive comparison.

Yes

String

Key

Enter the key name under which you want to store the index of an element.

Yes

String

Example:

Array.StoreElementIndex  ArrayStoreElementIndex                    "ArrayKeyMon^Tues^Wed^Thurs"           "Sunday"           "1"Thurs"           "True"         "Key"

...

ArrayVerifyElementExist

This action verifies whether the specified item exists in an array and reports a defect in case of not finding the specified item.

...

Parameter Name

Parameter Description

Mandatory

Data Type

ArrayKeyArray

Enter the key that holds an array data from which you want to verify the element.

Yes

String

ElementItem

Enter the element which you want to verify.

Yes

String

CaseSensitive

Enter whether you want to consider case-sensitivity when comparing content. Existence

Value for this parameter can be True or False.

  • Set True for case-sensitive comparison to verify that the given element exists in the array.

  • Set False for case-insensitive comparison to verify that the given element does not exist in the array.

Yes

String

Example:
Array.VerifyElementExists    ArrayVerifyElementExist                     "ArrayKeyMon^Tues^Wed^Thurs"             "SundayThurs"             "True"

LeftTrimAndStore

...

Parameter Name

Parameter Description

Mandatory

Data Type

array data

The array to be verified for ascending or descending order.
The list of data provided should be carat(^) separated.

Yes

Array

datatype

This is the type of data considered for testing. Supported data types are
STRING: These are combination of alphanumeric and special characters items. 
INTEGER: These are strictly numerical items.

Yes

String

direction

The way the data are to be sorted, i.e., in either ascending or descending. Supported directions are:
1=indicates ascending
2=indicates descending

Yes

String

...