Nexial Automation

Test Automation Platform for everyone!

X

$(count)

Description

This built-in command, as the name suggest, provides count of various text filters such as “count-uppercase-only”, “count-lowercase-only”, “count-digit-only”, “count-only-punctuations”, etc.  It also provide other basic functionality to manipulate character data. 

Available Functions

$(count|upper|text)

Renders the number of uppercase characters in text

Example
Script

Output


$(count|lower|text)

Renders the number of lowercase characters in text

Example
Script

Output


$(count|number|text)

Renders the number of digit characters (0,1,2,3,4,...) in text

Example
Script

Output


$(count|alphanumeric|text)

Renders the number of alphabetic and numeric characters in text

Example
Script

Output


$(count|whitespace|text)

Renders the number of whitespace characters - space, tab, newline (\n), carriage return (\r) - in text

Example
Script

Output


$(count|punctuation|text)

Renders the number of punctuation characters (!"#$%&'()*+,-./\:;<=>?@[]^_{|}~)  in text

Example
Script

Output


$(count|any|text|include)

renders the number of matches in text based on the characters listed in include.
For example, $(count|any|This is a test.|ist) would yield 7 since This is a test.

  • duplicate character in characters will not alter the result (i.e. no duplicate count)
  • character in include is not order specific

Example
Script

Output


$(count|size|text)

renders the length of text

Example
Script

Output


$(count|omit|text|omitChars)

Renders the number of characters in text that are not found in omitChars

Example
Script

Output


$(count|sequence|text|search)

Renders the number of matches in text based on the specified search. For example, $(count|sequence|Doo be doo be doo|oo) would render 3.

Example
Script

Output