Convert to Upper case
This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to convert any given string to uppercase, regardless of whether the input is in lowercase or a mix of cases and save the result in the given output variable.
Syntax
Input: <input string>
input string
It is a set of text or characters used in the input value field
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)

Usecase/Example

Scenario: Username Creation in a Mobile App
In a mobile application you want to create a profile by entering a username. To maintain uniformity and prevent duplicate usernames that differ only in case, the application converts all usernames to uppercase before saving them.
Input
During automated testing, the test script enters various usernames in different cases, such as:
johnDoe
JOHNDOE
JohnDoe
jOhnDoE
Expected Result
Input string needs to be converted into upper case.
Output
The resulting uppercase string is stored in the {result} output variable as JOHNDOE, which can be utilized for display or other purposes.
Last updated
Was this helpful?