/
"CHANGE_CASE" Command

"CHANGE_CASE" Command

Description: This command changes a value in the Message field to uppercase or lowercase and assigns the value in a variable.
Usage Scenario: Suppose we want to change the first and last names in our Reference app profile to uppercase letters.

Procedure: Define locators to retrieve the first and last names from our Reference app using Get_Web_Value with “Text” and define steps to change the case on them using Change_Case command. Then use Fill command where Value takes the variables from the Change_Case steps. Your steps will look like this:

image-20240201-164057.png
image-20240201-164233.png

See the Test Library path: subject7_samples/subject7_advanced_suite/subject7_modify_profile_information

The following video demonstrates how the First Name and Last Name are retrieved using Get_Web_Value command, changed to Uppercase letters and filled again in their original text boxes. This is part of execution of “subject7_modify_profile_information” test case in “subject7_samples” folder:

Reference App

 

Related content

"CALL" Command
"CALL" Command
Read with this
"FILE_UPLOAD" Command
"FILE_UPLOAD" Command
Read with this
Create a Gherkin Scenario
Create a Gherkin Scenario
Read with this
User's Guide
User's Guide
Read with this
"COMPARE" Command
"COMPARE" Command
Read with this
"WAIT" Command
"WAIT" Command
Read with this