This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
FAQ and Troubleshooting
Dmitry Baev edited this page Jun 23, 2014
·
38 revisions
In report some titles and names has some troubles with escaping.
Solution: Probably you use bad JAXB implementation. Check that com.sun.xml.bind:jaxb-impl
version 2.2.1 or above is used everywhere in your project.
That means that report data failed to load. Possible solutions:
- If you're opening file from local drive ensure that you have a web server installed (file:// URLs are not supported)
- If you get 404 error from remote server then check logs in order to verify that report was build successfully
- If you still experience problems please email us Debug section contents and we'll help you to resolve the problem
- If your test framework is JUnit - check that you're using version 4. Allure is incompatible with version 3 of JUnit and that's why no data is gathered from tests.
When running Maven build with Allure Maven Plugin you can see the following error:
[INFO] Error getting reports from the plugin 'ru.yandex.qatools.allure:allure-maven-plugin:1.3.7':
Unable to load the mojo 'ru.yandex.qatools.allure:allure-maven-plugin:1.3.7:report' in the plugin 'ru.yandex.qatools.allure:allure-maven-plugin'. A required class is missing: Lorg/apache/maven/plugin/BuildPluginManager; org.apache.maven.plugin.BuildPluginManager
Solution: you need to use Maven version 3.
This error can happen when trying to use any Allure code including examples:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project allure-testng-example: Execution default-test of goal org.apache.maven.plugins:maven surefire-plugin:2.16:test failed: There was an error in the forked process
[ERROR] java.lang.UnsupportedClassVersionError: ru/yandex/qatools/allure/testng/AllureTestListener : Unsupported major.minor version 51.0
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
Solution: you need to use Java 1.7+.
This error happens when you're using Apache Commons IO library in your project and your version is below 2.4.
java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
at ru.yandex.qatools.allure.utils.AllureResultsUtils.writeAttachment(AllureResultsUtils.java:95)
at ru.yandex.qatools.allure.utils.AllureResultsUtils.writeAttachment(AllureResultsUtils.java:86)
at ru.yandex.qatools.allure.events.MakeAttachEvent.process(MakeAttachEvent.java:25)
at ru.yandex.qatools.allure.events.MakeAttachEvent.process(MakeAttachEvent.java:13)
at ru.yandex.qatools.allure.Allure.fire(Allure.java:54)
at ru.yandex.qatools.allure.aspects.AllureAttachAspects.attach(AllureAttachAspects.java:35)
Solution: check that Apache Commons IO 2.4+ is used everywhere in your project.
- aShot - WebDriver Screenshot utility. Take screenshots, crop, prettify, compare.
- HTML Elements - A Java framework that provides easy-to-use interaction with page elements in webpage tests.
- Properties - A Java library for populating beans with system environment properties in a simple and convenient way.
- Perspective - API and shell to orchestrate multiple clouds.