aquality-automation / aquality-tracking

Apache License 2.0
5 stars 2 forks source link

[BUG] It is not possible to import several test run results one by one #35

Closed paveliam closed 4 years ago

paveliam commented 5 years ago

Describe the bug Import via API fails when there are several test runs to import. I'm trying to import Cucumber test results from multi-module project, which means I have different folders with results (json files) for each module. I execute 3 imports one by one. The first one is successfull, other two are failing.

To Reproduce Steps to reproduce the behavior:

  1. There are 3 folders with cucumber results (JSON files). The first one contains 10 files, 2nd - 27 files and 3rd - 72 files.
  2. Use script to execute improt one by one without the delay between imports.
  3. The first import is successfull, the other two are failing with error:

Import into One Test Run was started! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:15 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] File was parsed correctly! [Thu Nov 28 10:24:16 GMT 2019] Import was finished with Error! File Not Found: /usr/local/tomcat/temp/1/5.json (No such file or directory)

Expected behavior There are 3 successfull imports in Aquality tracking.