Code Monkey home page Code Monkey logo

Comments (3)

eroshenkoam avatar eroshenkoam commented on June 30, 2024

Seems like you have different versions of allure cli locally and in maven plugin.
You can easily configure allure report version in maven plugin like this:

<plugin>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-maven</artifactId>
    <version>2.8</version>
    <configuration>
        <reportVersion>2.3.1</reportVersion>
    </configuration>
</plugin>

from allure-maven.

jaheikki avatar jaheikki commented on June 30, 2024

Ok, setting this reportVersion to latest version seems to solve the problem. You can close this issue, thanks!

from allure-maven.

mesonjesi avatar mesonjesi commented on June 30, 2024

Hi I have the same problem

4.0.0 selenium-cucumber-java selenium-cucumber-java 1.0.1-SNAPSHOT
<dependencies>
	<!-- These are the cucumber dependencies -->
	<dependency>
		<groupId>info.cukes</groupId>
		<artifactId>cucumber-java</artifactId>
		<version>1.2.5</version>
	</dependency>

	<!-- These are the cucumber-junit dependencies -->
	<dependency>
		<groupId>info.cukes</groupId>
		<artifactId>cucumber-junit</artifactId>
		<version>1.2.5</version>
	</dependency>

	<!-- These are the junit dependencies -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.12</version>
	</dependency>

	<!-- These are the selenium-webdriver dependencies -->
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-java</artifactId>
		<version>3.12.0</version>
	</dependency>

	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-server</artifactId>
		<version>3.12.0</version>
	</dependency>

	<!-- These are the Appium dependencies -->
	<dependency>
	    <groupId>io.appium</groupId>
	    <artifactId>java-client</artifactId>
	    <version>5.0.4</version>
	</dependency>

	<!-- These are the Allure Reporting dependencies -->
	<dependency>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-cucumber-jvm-adaptor</artifactId>
        <version>1.6.4</version>
    </dependency>

    <!--Logger -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
</dependencies>

<!-- These are the aspectj.version properties for allure -->
<properties>
	<aspectj.version>1.8.11</aspectj.version>
	<slf4j.version>1.7.21</slf4j.version>
</properties>

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.2</version>
			<configuration>
				<encoding>UTF-8</encoding>
				<source>1.8</source>
				<target>1.8</target>
				<compilerArgument>-Werror</compilerArgument>
				<systemPropertyVariables>
					<property>
						<name>browser</name>
						<value>${browser}</value>
					</property>
					<property>
						<name>cloud_config</name>
						<value>${cloud_config}</value>
					</property>
				</systemPropertyVariables>
			</configuration>
		</plugin>

		<!-- These are the Allure Reporting plugins -->
		<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.21.0</version>
            <configuration>
                <testFailureIgnore>false</testFailureIgnore>
               <argLine>
                    -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
                    -Dcucumber.options="--plugin ru.yandex.qatools.allure.cucumberjvm.AllureReporter"
                </argLine>
            </configuration>
            <dependencies>
				<dependency>
					<groupId>org.aspectj</groupId>
					<artifactId>aspectjweaver</artifactId>
					<version>${aspectj.version}</version>
				</dependency>
            </dependencies>
        </plugin>
		<plugin>
			<groupId>io.qameta.allure</groupId>
			<artifactId>allure-maven</artifactId>
			<version>2.8</version>
			<configuration>
				<reportVersion>2.3.1</reportVersion>
			</configuration>
		</plugin>
	</plugins>
</build>

[INFO] Allure installation directory C:\selenium-cucumber-java/.allure
[INFO] Try to finding out allure 2.3.1
[INFO] Generate Allure report (serve) with version 2.3.1
[INFO] Generate Allure report to C:\selenium-cucumber-java\target\site/allure-maven-plugin
[INFO] Found results directory C:\selenium-cucumber-java\target\allure-results
[INFO] Can't find information about categories.
[INFO] Generate report to C:\selenium-cucumber-java\target\site\allure-maven-plugin
Generating report to temp directory...
send analytics
Report successfully generated to C:\Users\U186185\AppData\Local\Temp\2884065329970993727\allure-report
Starting web server...
2019-05-10 16:56:50.156:INFO::main: Logging initialized @4480ms
Server started at http://192.168.51.175:60232/. Press <Ctrl+C> to exit

from allure-maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.