Forum Discussion

Venki3363's avatar
Venki3363
Visitor
3 years ago

In Serenity Report not showing all the scenarios outline test cases mentioned in feature file

Issue:In scenario outline i have 3 test cases but in serenity report its showing only last test executed case only not all the cases the issue coming to 3.2.4 for serenity 2 version working good 

I am using serenity 3.2.4 with above depencies and also using cucumber jvm parallel plugin 5.0 the cucumber jvm parallel plugin
it will generate a runner classs for each scenario like Paralle01IT, Paralle02IT and the fail safe plugin will run this generated parllell runner classes
wheere i run this command mvn clean verify -D Tags="@Venki" through Intellij terminal
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.serenitybdd.starter</groupId>
<artifactId>serenity-cucumber5-smoketests</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Sample Serenity BDD project using Cucumber</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<serenity.version>3.2.4</serenity.version>
<serenity.maven.version>3.2.4</serenity.maven.version>
<serenity.cucumber.version>3.2.4</serenity.cucumber.version>
<cucumber.version>5.5.0</cucumber.version>
<encoding>UTF-8</encoding>
<tags></tags>
<parallel.tests>1</parallel.tests>
<webdriver.base.url></webdriver.base.url>
</properties>

<!-- <repositories>-->
<!-- <repository>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- <id>central</id>-->
<!-- <name>bintray</name>-->
<!-- <url>https://jcenter.bintray.com</url>-->
<!-- </repository>-->
<!-- </repositories>-->
<!-- <pluginRepositories>-->
<!-- <pluginRepository>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- <id>central</id>-->
<!-- <name>bintray-plugins</name>-->
<!-- <url>https://jcenter.bintray.com</url>-->
<!-- </pluginRepository>-->
<!-- </pluginRepositories>-->

<dependencies>
<!-- <dependency>-->
<!-- <groupId>ch.qos.logback</groupId>-->
<!-- <artifactId>logback-classic</artifactId>-->
<!-- <version>1.0.13</version>-->
<!-- </dependency>-->
<!--
- To use Cucumber 4, exclude the old Cucumber 2 cucumber-core dependency from the serenity-core dependency
- and include the Cucumber 4 cucumber-java and cucumber-junit dependencies.
-->
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-junit</artifactId>
<version>${serenity.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-cucumber</artifactId>
<version>${serenity.cucumber.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<featuresDirectory>src/test/resources/features</featuresDirectory>
<cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
<outputDirectory>${project.build.directory}/generated-test-sources/</outputDirectory>
<plugins>
<plugin>
<name>junit</name>
<extension>xml</extension>
<outputDirectory>target/</outputDirectory>
</plugin>
</plugins>
<glue>
<package>stepdefinitions</package>
</glue>
<tags>
<tag>@Venki</tag>
</tags>
<strict>true</strict>
<parallelScheme>SCENARIO</parallelScheme>
<!-- <customVmTemplate>src/test/resources/runnertemplate/runner.vm</customVmTemplate>-->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<includes>
<include>**/*IT.class</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.maven.version}</version>
<configuration>
<tags>${tags}</tags>
</configuration>
<dependencies>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

 

No RepliesBe the first to reply