Convert to Upper case
Last updated
Last updated
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.
Input: <input string>
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
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.