Question
I am considering using assertion connector to compare the output of a script with the expected results.
If output does not match the expected results, how can I check the row and column information to identify the relevant data?
Answer
When an assertion exception occurs in the Compare File or Compare Table Model operations in the assertion connector, the cause of the exception is output in the error message after script execution.
The error message will vary depending on the comparison settings and conditions.
For example, the following error message indicates that the input value in the second row/column is not equal to the expected value.
ASSERT0001E
Processing of [ASSERT_TABLE(Basic/Assertion/Table Model Comparison)] failed. Cause: [com.appresso.ds.common.fw.AssertionException: [line [2],column name=[color],column number=[2],detail=[input value <blue> is not equal to expected value <yellow>]]
Supplementation
For details on Compare File and Compare Table Model operations, please refer to the following manual pages.
Compare File
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/assert_file.htm
Compare Table Model
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/assert_table.htm
Comments
0 comments
Article is closed for comments.