Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What are Specials Characters and Escape Characters?

In Qualitia, few characters have some special meanings. For example, the caret sign (^) works as a separator when providing multiple sets of values in an array, opening and closing curly braces ({}) denote that the value being provided is from a variable in static or parameterized data.

When you want to use these special characters as part of your data, you must use an escape character. Using these escape character avoids special meanings behind these characters and treat them as normal string values.

Qualitia Special Characters and Escape Character

Qualitia Specials Characters are as follows.

...

The occurrence of these special characters can be there in following cases.

Use Case 1: Object Parameterization

Object parameterization helps you changing object properties runtime without updating object details. In case the parameterized value contains any of the special character, Qualitia users must use escape characters while providing such values.

...

In the example below, locator value contains special character curly bracket ({) is which is then escaped using tilde (~).

Use Case 2: Static Data

In case you are providing Static Data for executing test cases, which contains Qualitia special characters, you must use an escape character.

...

To escape this special character, you must use tilde two times (~~).

Use Case 3: Parameterized Data

In case you are using parameterized data, you need to provide the data with special characters using escape characters. In the example below, the URL contains special character tilde (~).

To escape this special character, you must use tilde two times (~~).

Use Case 4: Conditional Expressions

It may happen that the data being provided into the conditional expression contains Qualitia special characters. Such data needs to provide data using escape characters. In the example below, the URL contains special character tilde (~).

...