Cleantext function

This functions trims the special characters or characters from the string specified in the custom settings against “clean_chars” field. Go to Settings > Project Settings > Custom Settings > clean_chars
Just specify the characters here in the format as shown below:

Syntax: ${__cleantext(String)} String can be static or dynamic

Edit parameter section and click on Form, select functions from the dropdown and select cleantext function. Provide the string that is to cleaned.

After completing this step, test step will look as below:

Example: ${__cleantext(Test!@#)}

Here in the above snapshot actual string is Test@#! as defined in var1, after using this function its value become Test stored in var2.

Was this page helpful?