baev / allure-cli-depricated

Allure Command Line Tool
Other
20 stars 7 forks source link

Issue url not loaded when generating report. #25

Closed cryptton2004 closed 9 years ago

cryptton2004 commented 9 years ago

Hello,

I am using allure for my php automation project, with the allure-php-adapter-api-1.1.1 and allure-phpunit-1.2.1 to generate the xml for the report. For a test case, I have the following annotations attached:

    /**
    * @Features({"Feature 1 test"})
    * @Title("Test suite for Feature 1")
    * @Description(value = "Check that theFeature 1t is displayed.", type = DescriptionType::HTML)
    * @Severity(level = SeverityLevel::MINOR)
    * @Stories({"FEATURE-12345", "FEATURE-5432"})
    * @Issues({"FEATURE-1", "FEATURE-2"})
    */

I use allure-cli to generate the actual report files (windows 7). In the "allure.bat" file, I've modified the last line to:

%JAVA_EXE% -Dallure.issues.tracker.pattern=https://myIssueTracker/%%s -jar %ALLURE_CLI_JAR% %CMD_LINE_ARGS%

The full command is:

.\allure.bat generate path\to\file -v 1.4.3 --debug

log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [java.net.URLClassLoader@19dd00d] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@1e99db4].
log4j:ERROR Could not instantiate appender named "console".
Successfully generated report to [path\to\index].

However, the generated report doesn't contain my issue url in the attached issues (just the default url).

Any ideas if I'm doing anything wrong or is it an actual bug?

Regards, Cristian

vania-pooh commented 9 years ago

@cryptton2004 seems to be a correct command, please ignore log4j errors - this is a logger misconfiguration. Does this reproduce with the latest Allure version 1.4.4?

cryptton2004 commented 9 years ago

I don't know exactly how this happened, but now it seems to work with the exact same configuration as mentioned above. I'm using v 1.4.3 because 1.4.4 returns '''java.lang.NullPointerException''' when trying to generate the report (and the files don't get to be created).

vania-pooh commented 9 years ago

@cryptton2004 if you're getting NPE with 1.4.4 please create a separate issue.