Text Functions
notContains()
In a nutshell The notContains() function performs a case-sensitive search to check whether an input value does not contain a specified search value. It takes an input value and a search value as arguments and returns True if the input value does not ...
toLowerCase()
In a nutshell The toLowerCase() function takes a string as an argument and returns the same string with all letters converted to lower case. The return type is Text. It is useful in test scripts where text values need to be normalized to lower case ...
toUpperCase()
In a nutshell The toUpperCase() function takes a string as an argument and returns the same string with all letters converted to upper case. The return type is Text. It is useful in test scripts where text values need to be normalized to upper case ...
indexOf()
In a nutshell The indexOf() function takes a string and a search string as arguments and returns the index of the first character of the search string's first occurrence in the string. It returns -1 if the search string is not found, and the search ...
concat()
In a nutshell The concat() function takes a source text and an append text as arguments and returns a single string formed by joining them together. The return type is Text. It is useful in test scripts where you need to combine two text values into ...
trim()
In a nutshell The trim() function takes a string as an argument and returns the same string after removing all leading and trailing spaces. The return type is Text. It is useful in test scripts where you need to clean up text values before using them ...
length()
In a nutshell The length() function takes a string as an argument and returns the total count of characters in that string, including spaces. The return type is Number. It is useful in test scripts where you need to validate or compare the character ...
subString()
In a nutshell The replaceAll() function takes a string, a search string, and a replacement string as arguments. It performs a case-sensitive search and replaces all occurrences of the search string with the replacement string, returning the modified ...
replaceAll()
In a nutshell The replaceAll() function takes a string, a search string, and a replacement string as arguments. It performs a case-sensitive search and replaces all occurrences of the search string with the replacement string, returning the modified ...
equalsIgnoreCase()
In a nutshell The equalsIgnoreCase() function performs a case-insensitive comparison to check whether two strings are equal. It takes two strings as arguments and returns True if both strings are equal and False if they are different. It is useful in ...
endsWith()
In a nutshell The endsWith() function performs a case-sensitive search to see if a string ends with a specified search string. It takes a string and the search string as arguments and returns True if the string ends with the search string and False ...
startsWith()
In a nutshell The startsWith() function performs a case-sensitive search to see if a string begins with a specified searchString. It takes a string and the search string as arguments and returns True if the string begins with the searchString and ...
containsIgnoreCase()
In a nutshell The containsIgnoreCase() function takes a string and a search string as arguments and returns True if the string contains the search string, regardless of letter case. It returns False if the searchString is not found. It is useful in ...