Skip to content

Core Syntax

6.3.1. Extract Text By Regex

Extract given text by regex.

  • Target: No Target is required.
  • Data Input:
    • text: Give text
    • regex: A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text
    • group: Group number.
  • Data Output: Text match to conditions
  • Syntax: extract text by regex ("", "", "0") => output;

6.3.2. Get All Node Attribute Values from Xml String

Get all attributes values of node from xml string.

  • Target: No Target is required.
  • Data Input:
    • xmlString: Given xml string.
    • xpath: xpath of node.
    • attributeName: such as id, name, class….
  • Data Output: All node attribute values from xml string.
  • Syntax: get all node attribute values from xml string ("", "", "") => output;

6.3.3. Get All Node Text Contents From Xml String

Get all text contents of node from xml string.

  • Target: No Target is required.
  • Data Input:
    • xmlString: Given xml string.
    • xpath: xpath of node.
  • Data Output: All node text contents from xml string.
  • Syntax: get all node text contents from xml string ("", "") => output;

6.3.4. Get All Values From Json String

Get all values from Json String by path.

  • Target: No Target is required.
  • Data Input:
    • jsonString: Given json string.
    • jsonPath: Path of json.
  • Data Output: all values from Json string by path.
  • Syntax: get all values from json string ("", "") => output;

6.3.5. Get Cell Values By Column Index

Get the cell values by column index and row index from test data object.

  • Target: No Target is required.
  • Data Input:
    • dataTable: Test Data Object.
    • comlumnIndex: Index of column.
    • rowIndex: Index of row.
  • Data Output: the cell values by column index and row index from test data object.
  • Syntax: get cell value by column index ("", "0", "0") => output;

6.3.6. Get Cell Values By Column Name

Get the cell value by column name and row index from test data object.

  • Target: No Target is required.
  • Data Input:
    • dataTable: Test Data Object.
    • comlumnIndex: Index of column.
    • rowIndex: Index of row.
  • Data Output: The cell value by column name and row index from test data object.
  • Syntax: get cell value by column name ("", "", "0") => output;

6.3.7. Get Current Date Time

Get current date time by format.

  • Target: No Target is required.
  • Data Input:
    • dateTimeFormat: String format of datetime.
  • Data Output: The current date time.
  • Syntax: get current date time ("") => output;

6.3.8. Get Index Of String

Get index of character/string by given string.

  • Target: No Target is required.
  • Data Input:
    • text: Given string.
    • toFindIndex: Character/string want to find out the index.
  • Data Output: The index of character.
  • Syntax: get index of string ("", "") => output;

6.3.9. Get Node Attribute Value From Xml String

Get attribute value of node from xml string.

  • Target: No Target is required.
  • Data Input:
    • xmlString: Given xml string.
    • xpath: xpath of node.
    • attributeName: such as id, name, class….
  • Data Output: The attribute value of node from xml string.
  • Syntax: get node attribute value from xml string ("", "", "") => output;

6.3.10. Get Node Text Content From Xml String

Get text value from xml string.

  • Target: No Target is required.
  • Data Input:
    • xmlString: Given xml string.
    • xpath: xpath of node.
  • Data Output: The text value from xml string.
  • Syntax: get node text content from xml string ("", "") => output;

6.3.11. Get Number Of Column

Get number of columns from test data source. 

  • Target: No Target is required.
  • Data Input: dataTable: Test Data Object.
  • Data Output: The number of columns from test data source.
  • Syntax: get number of column ("") => output;

6.3.12. Get Number Of Row

Get number of rows from test data source. 

  • Target: No Target is required.
  • Data Input: value: Test Data Object.
  • Data Output: The number of row from test data source.
  • Syntax: get number of row ("") => output;

6.3.13. Get Value From Json String

Get the value from JSON string by json path.  

  • Target: No Target is required.
  • Data Input:
    • jsonString: Given json string.
    • jsonPath: Path of json
  • Data Output: The value from JSON string by json path.
  • Syntax: get value from json string ("", "") => output;

6.3.14. Reset Find Windows Id Cache

When you open a window and it have a window id, then another window will open, then the first window id will be change. This keyword can be used to reset the previous windows.  

  • Target: No Target is required.
  • Data Input: No data input is required
  • Data Output: The value from JSON string by json path.
  • Syntax: reset find windows id cache;

6.3.15. Set Variable Value

Set value into the variable..  

  • Target: No Target is required.
  • Data Input: value: string value.
  • Data Output: Input the variable want to set value on. Then the value will be assigned to the desired variable at the output’s column.
  • Syntax: set variable value ("") => output;

6.3.16. Substring

Cut substring from given string  

  • Target: No Target is required.
  • Data Input:
    • text: string type.
    • beginIndex: the begin index of substring.
    • endIndex: the end index of substring.
  • Data Output: substring from given string.
  • Syntax: substring ("", "0", "0") => output;

6.3.17. Verify Number Comparison

Verify that the comparison between two numbers is true.  

  • Target: No Target is required.
  • Data Input:
    • number : number type.
    • compareOperator : comparison operators (<=; >=; ==; >; <; !=).
    • anotherNumber : number type.
  • Syntax: verify number comparison ("0.0", "", "0.0");

6.3.18. Verify Text Equal

Verify that the text equals with the expected text.  

  • Target: No Target is required.
  • Data Input:
    • text: expected text or expected variable.
    • anotherText: actual text or expected variable.
  • Syntax: verify text equal ("", "");

6.3.19. Verify Text Match Regex

Verify that the text exist in the given text by regex matching.  

  • Target: No Target is required.
  • Data Input:
    • text: expected text or expected variable.
    • regex: A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text.
  • Syntax: verify text match regex ("", "");

6.3.20. Verify Text Not Equal

Verify that the text is not equal with the expected text.  

  • Target: No Target is required.
  • Data Input:
    • text: expected text or expected variable.
    • anotherText: actual text or expected variable.
  • Syntax: verify text not equal ("", "");

6.3.21. Wait

Wait with the given timeout (in seconds).  

  • Target: No Target is required.
  • Data Input: Integer number.
  • Syntax: wait ("");