...
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:
| 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
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 |
---|
Array | Enter the |
array which you want to |
sort in an ascending order. | Yes | String |
Key | Enter the key name under which you want to store the |
element. | Yes | String |
Example:
...
dataType | This is the type of data considered for testing. Supported data types are | 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.
| 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.
| 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. | Yes | Array |
datatype | This is the type of data considered for testing. Supported data types are | Yes | String |
direction | The way the data are to be sorted, i.e., in either ascending or descending. Supported directions are: | Yes | String |
...