Cucumber r html eport не генерируется в допустимом формате в selenium cucumber - PullRequest
1 голос
/ 17 июня 2020

Я пытаюсь создать свои отчеты в формате html в maven cucumber html report . Я могу создать отчет по огурцу json и красивому огурцу html, но проблема в том, что созданный отчет не имеет формат html и не содержит данных. Может ли кто-нибудь помочь мне решить эту проблему.

Maven pom dependency and plugin

<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>4.1.5</version>
</dependency>

<!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting -->
<dependency>
    <groupId>net.masterthought</groupId>
    <artifactId>cucumber-reporting</artifactId>
    <version>5.3.0</version>
</dependency>

 <plugin>
                    <groupId>net.masterthought</groupId>
                    <artifactId>maven-cucumber-reporting</artifactId>
                    <version>5.1.1</version>
                    <executions>
                        <execution>
                            <id>execution</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                            <configuration>
                                <projectName>CucumberReport</projectName>
                                <outputDirectory>${project.build.directory}/site/cucumber-reports</outputDirectory>
                                <!-- <cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput> -->
                                    <cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
                                <!-- <parallelTesting>false</parallelTesting> -->
                                <buildNumber>1</buildNumber>
                                <checkBuildResult>false</checkBuildResult>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

TestRunner Class

@CucumberOptions(features="testFeature",glue= {"stepDefinitions"}
,plugin={"html:target/site/cucumber-pretty","json:target/cucumber.json"},monochrome=true)
public class TestRunnerTestNG extends AbstractTestNGCucumberTests{

формат файла сгенерированного отчета

сформированный формат отчета

1 Ответ

0 голосов
/ 17 июня 2020

я нашел здесь свой ответ https://www.youtube.com/watch?v=PtEp5r6ilKE

и обновите плагин pom, как здесь, не зависимость https://github.com/damianszczepanik/maven-cucumber-reporting

надеюсь, что это поможет другим.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...