Compare Inputs
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to compare the inputs specified in the input Value (.xml and .json content) and save the differences in the 1st output variable and status (if the Action executed then saves the result as True, else False in 2nd output.
Input: <Input Text (Original)>;<Input Text(Changed)> <Selective/All(Optional)>
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In a web application that allows user registration, input data is submitted in JSON format. It’s essential to ensure that the input values match expected values to maintain data integrity before creating a new user account.
A user submits their registration information via an API request in JSON format. You want to compare this input against expected values to verify accuracy.
Input Value Example:
Input JSON:
Expected JSON:
The application should confirm that the values for Name, Email, and Password in the input JSON match the expected values.
As the inputs in the above scenario are same, the {result} variable will contain the result of removed/added lines between the compared files and {status} variable will contain status as ‘True’, which can be utilized for display or other purposes. {result} variable will contain the result of removed/added lines between the compared files and {status} variable will contain status as ‘True’.