Replace Content
Last updated
Last updated
Description & Usage: This pre-built Action, found under @Generic Element Name, directs the Avo Assure Client to overwrite the file content with the specified content and save the result in the output varibale.
Input:
For .txt: <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 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)
In a software application supporting user profile creation, updates, and deletions, testing various user inputs and scenarios is crucial. The User wants to ensure the application accurately processes diverse user data. They maintain an Excel sheet with user profile information, including usernames, emails, passwords, and roles. During testing, they replace specific user details to validate different sceanrio.
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.