Provar

TestCaseErrors

This function returns the list which contains all of the errors that came before running this function.

Format: TestCaseErrors()

Examples:

{TestCaseErrors()} – This will return errors logged in the test case.

Sample error #1

Value does not resolve to a primitive type: com.provar.core.model.base.java.InvalidExpressionValueImpl\r\nThe required connection name isn’t present. This should come from the containing With Screen API.\r\nThe required connection name isn’t present. This should come from the containing With Screen API.

Sample error #2

The required connection name isn’t present. This should come from the containing With Screen API.\r\nThe required connection name isn’t present. This should come from the containing With Screen API.

Note: If this function is called in a callable test case and the callable test case is called or used in the main test case then the result which it will show; it will be of main test case.

Practice


Want to learn more about using this function in Provar? You can use the following sample test case to get started. Simply right-click to download TestCaseErrors.testcase and then drag and drop the test case into the test folder within the Navigator panel of Provar.

Note: You will need to unzip/extract the compressed file before using it in Provar.

Review Provar on G2
Documentation library

Other available resources

Looking for something different?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top