ctco / zephyr-sync

Tool to synchronize test results to Zephyr (test management add-on for JIRA)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test has unexecuted status because of "WARN: Test XXXX not found in Test Cycle."

chamElE0 opened this issue · comments

build 17-Oct-2017 09:09:36 ##### INFO: Linking Test Cases to Test Cycle:[ENBD-1374, ENBD-1375, ENBD-1376, ........, ENBD-1577, ENBD-1578]

After that I got
build 17-Oct-2017 09:10:35 ##### INFO: Setting status PASSED for Test: ENBD-1577
build 17-Oct-2017 09:10:35 ##### WARN: Test ENBD-1577 not found in Test Cycle 1017_ENBD_ip:port/W4DEV32_feature-feature_17.7.tat-62
build 17-Oct-2017 09:10:35 ##### INFO: Setting status PASSED for Test: ENBD-1578
build 17-Oct-2017 09:10:35 ##### WARN: Test ENBD-1578 not found in Test Cycle 1017_ENBD_ip:port/W4DEV32_feature-feature_17.7.tat-62

And test still was marked as 'Unexecuted' in jira.

But in the log I see "INFO: Test Cycle is not in sync. Giving Zephyr another chance." another attempts of sync in such cases, but not at this time.

Why resync didn't happen always?

As far as I understood all test cases were assigned to test cycle correctly, but some statuses were not updated. Please correct me if I misunderstood that.

Resync is called only during test linkage to cycle, in situation when amount of linked test cases in JIRA differs from amount of test cases passed to JIRA for linkage.

You can check the code here:
https://github.com/ctco/zephyr-sync/blob/b83e03534cb91cc5c7cf191719d5ae4e3bb2bc0d/zephyr-sync-core/src/main/java/lv/ctco/zephyr/service/ZephyrService.java

Could you please provide full log? Probably it could give a clue to your issue.

As far as I understood all test cases were assigned to test cycle correctly, but some statuses were not updated. Please correct me if I misunderstood that.

Yes that's correct.

I'll try a new version and back with results.