Verify Content
Last updated
Last updated
Description & Usage: This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to verify that the provided content is present in the file or not and save the result in the given output variable.
Input:
For Text:
<file path>; <content to verify>;<abs>(Optional)
This syntax is for .txt file where user need to provide file path of text file along with the content to verify and abs if required.
For Excel: <file path>; <sheetname>; <content to verify>;<abs>(Optional)
This syntax is for .xls file where user need to provide file path of excel file along with the sheet name, content to verify and abs if required.
Note: If the specified content is to be verified against the entire text file’s/ excel sheet’s content, then the ‘abs’ argument must be specified.
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
A reporting tool generates a summary report (report.txt) after processing data from various sources. It is crucial to ensure that the report contains the correct summaries and details.
Testing Example: A tester runs a data processing job and checks that the output report file includes the expected summaries.
Input: Data Processed:User transaction data.
Expected Result: The report (report.txt) should contain specific summary entries, such as total transactions and average transaction value, formatted as follows:
Total Transactions: 150
Using the Keyword: The Avo Assure have ‘Verify Content’ keyword to confirm that the expected summaries are present in the report.txt file.
Output: This Action will find the “Total Transactions: 150” content in the file and as it is available in the file it will store result as True in {result} output variable, which can be utilized for display or other purposes.