Replace Content
Last updated
Last updated
This is pre-built Action located under the @Generic Element Name instructs the Avo Assure Client to replace the content in the file with provided content and save the result in the given output variable.
Input:
For .txt File: <file path>; <content to replace>; <content>
This syntax is for .txt file where user need to provide file path of text file along with the content which should get replaced and content which should replace it.
For .xls, .xlsx File: <file path>; <sheetname>; <content to replace>; <content>
This syntax is for Excel File where user needs to provide the file path of the excel sheet along with the sheet name in which the content is to be replaced, content which should get replaced and content which should replace it.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
Scenario: Data Replacement in Excel for Automation Testing In a software application where user profiles can be created, updated, or deleted, testing various user inputs and scenarios is essential. The User wants to ensure that the application handles different user data accurately. The User maintains an Excel sheet containing user profile data, such as usernames, emails, passwords, and roles. During testing, they need to replace specific user information to validate different scenarios.
Initial Excel Data:
Test Case Execution: During a test run, the Avo Assure tool reads the Excel sheet and performs the following actions:
It updates Row 1 to replace the email with "updated1@example.com" to test the update functionality.
Expected Result: This Action needs to replace Email id “test1@example.com” with “updated1@example.com” this Email id.
Output: This Action will store the replaced content in {result} Variable, which can be utilized for display or other purposes.