Zephyr sync не может найти протоколы испытаний Allure, чтобы подтолкнуть Jira - PullRequest
0 голосов
/ 05 марта 2019

Я использую приведенную ниже конфигурацию плагина POM, чтобы вставить отчеты испытаний Allure в наш плагин Zephyr платы Jira.

 <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
         <version>1.3.1</version>
         <executions>
             <execution>
                 <id>default-cli</id>
                 <goals>
                     <goal>java</goal>
                 </goals>
                 <configuration>
                     <mainClass>lv.ctco.zephyr.Runner</mainClass>
                         <arguments>
                             <argument>--username=username</argument>
                             <argument>--password=password</argument>
                             <argument>--reportType=allure</argument>
                             <argument>--projectKey=ABC</argument>
                             <argument>--releaseVersion=ReleaseVersion</argument>
                             <argument>--jiraUrl=https://jira.company.com/rest/</argument>
                             <argument>--reportPath=${project.build.directory}/allure-results</argument>
                             <argument>--testCycle=Cycle</argument>
                        </arguments>
                </configuration>
            </execution>
        </executions>
    </plugin>

В каталоге target/allure-results/ есть результаты теста.

Когда я запускаю java:exec, выдается следующий вывод:

[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
##### Supported report types: [junit, cucumber, nunit, allure]
##### POST: https://jira.company.com/rest/auth/1/session
##### GET: https://jira.company.com/rest/api/2/project/ABC
##### Retrieved project ID - 56660
##### Retrieved version ID - 87089
##### GET: https://jira.company.com/rest/zapi/latest/cycle?projectId=56660&versionId=87089
##### Retrieved target Test Cycle ID - 24232

Итак, я знаю, что он может связаться с Jira и найти правильный идентификатор цикла тестирования.

Тогда это исключениеБрошенный (не тестовые случаи извлечены из отчета об испытаниях):

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
    at java.lang.Thread.run (Thread.java:748)
Caused by: lv.ctco.zephyr.ZephyrSyncException: No Test Cases extracted from the Test Report

Я также сгенерировал отчет об испытаниях, используя allure, но происходит то же исключение.

Кто-нибудь сталкивался с этой проблемойраньше?

...