Class JavaScriptErrorsRuleFactory
java.lang.Object
com.atlassian.jira.pageobjects.js.JavaScriptErrorsRuleFactory
JSErr! is about tracking and reporting JavaScript errors which occurred during e2e test.
Since v10 failing the build on JS error is turned on by default. There's the support for 'do.not.fail.on.javascript.errors' system property which can be used to turn off failing the build when JavaScript error was captured.
Since v10.2 switched from legacy solution to JSErr! which provides better reporting, such as the full stack trace and related JS files. On top of that, errors-ignoring can be narrowed down to specific pages. Should an application using jira-func-tests define its own list of failures to exclude they should all be listed in javascript-ignored-errors.txt file (see javascript-ignored-errors-example.txt) 'javascript.errors.ignored.errors.filename' system property can be used to use other file (available in classpath!) if needed
Since v10 failing the build on JS error is turned on by default. There's the support for 'do.not.fail.on.javascript.errors' system property which can be used to turn off failing the build when JavaScript error was captured.
Since v10.2 switched from legacy solution to JSErr! which provides better reporting, such as the full stack trace and related JS files. On top of that, errors-ignoring can be narrowed down to specific pages. Should an application using jira-func-tests define its own list of failures to exclude they should all be listed in javascript-ignored-errors.txt file (see javascript-ignored-errors-example.txt) 'javascript.errors.ignored.errors.filename' system property can be used to use other file (available in classpath!) if needed
- Since:
- v7.2
-
Field Summary
Fields -
Method Summary
-
Field Details
-
DO_NOT_FAIL_ON_JAVASCRIPT_ERRORS_SYSTEM_PROPERTY
- See Also:
-
JAVASCRIPT_ERRORS_IGNORED_ERRORS_FILENAME_SYSTEM_PROPERTY
- See Also:
-
JAVASCRIPT_IGNORED_ERRORS_DEFAULT_FILENAME
- See Also:
-
-
Method Details
-
create
public static JavaScriptErrorsRule create(Supplier<? extends org.openqa.selenium.WebDriver> webDriverSupplier, String productBaseUrl)
-