魅力报告-环境未显示Environment.properties/environment.xml

问题描述 投票:0回答:1

[尝试在“魅力”报告中设置环境表,尝试创建environment.properties和environment.xml,但未生成环境字段。我在environment.json文件中看到它为空。任何想法?谢谢。

<plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-allure-environment</id>
                        <phase>validate </phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/allure-results</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/resources</directory>
                                    <includes>
                                        <include>environment.properties</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
allure
1个回答
0
投票

为什么在测试过程中不根据代码创建environment.properties

© www.soinside.com 2019 - 2024. All rights reserved.