Is there any way to generalize error when checking within a test case? [message #1800665] |
Fri, 04 January 2019 13:43  |
Eclipse User |
|
|
|
I have an RCPTT test where the error logged in the Error log can contain a number in the description that can change, for example, Error occurred (2). That number for a different run could be Error occurred (3).
I have found I need to check the Error log within the test case (error log verification runs after and does not catch it). Is there a way to generalize the error so it can be checked across test runs? So far I have found that the error takes a value that includes the number, for example, I have used (have not included \\syntax):
get-view "Error Log" | get-tree | verify-error {select "Error occurred (2)"}
This will not work in all cases because if the error is instead "Error occurred (3)" it will not be caught.
Is there a way to work around this?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03319 seconds