certification-tool icon indicating copy to clipboard operation
certification-tool copied to clipboard

[Feature] TH should name all logs properly according to TEDS alias to avoid manual renaming

Open tcarmelveilleux opened this issue 1 year ago • 5 comments

Feature description

  • All log files that can come out of TH (and Python tests) should be auto-named to have the TEDS alias so that renaming of test logs is not required.

Use Cases

  • Test events require TEDS aliases to be present in filenames
  • Doing these renames is very time consuming.

Test Cases

No response

Additional Information

No response

tcarmelveilleux avatar Aug 14 '24 18:08 tcarmelveilleux

As discussed, while some automation is possible: TEDS is a separate tool that will not be integrated (by design) into the TH tooling. As such, the best way is to think about means to simplify entry by providing e.g. a script that does this naming based on a one-time configuration by the user (to set the correct DUT alias, e.g.) and then uses that to provide the correct log file name: semi-automated.

sander-gitl avatar Aug 14 '24 18:08 sander-gitl

Whenever I submit a log:

  • TEDS knows the alias
  • TEDS knows the test case ID (I just had to select it)
  • TEDS knows the type of log (I had to select it).

Given that, I should be able to upload any filename, and on submitting the TEDS result, the name should be renamed internally by TEDS before the data is written where it goes. This would remove all need to rename any files.

tcarmelveilleux avatar Aug 15 '24 20:08 tcarmelveilleux

Just for the record, currently TH generates the execution log file name following this template: ”{test_run_execution.id}-{test_run_execution.title}.log" For example: UI_Test_Run_2024_08_21_18_53_57.log

rquidute avatar Aug 21 '24 19:08 rquidute

For now, consider the TEDS part fixed by means of providing the corrected filenames to ATLs (the main recipient for the files) in the form ([TCID]_[DUTALIAS]originalfilename.originalextension). E.g. "[TC-DD-2.1][qU2d24m]_UI_Test_Run_2024_08_21_18_53_57.log". This will retain the original filename btw, but members no longer need to do an additional action here.

sander-gitl avatar Aug 25 '24 20:08 sander-gitl

Hi @sander-gitl and @tcarmelveilleux I'm not sure if I quite understand the goal of this issue. At first, it seems to me that it sounds like a new feature for TEADs (According to this note: Given that, I should be able to upload any filename...) but also it seems to TH should change the way it generates the execution log file name by using this template: [TCID]_[DUTALIAS]originalfilename.originalextension.

Currently TH generates only 1 file output which contains all test cases in the test run execution and according to the given template, the Test case name (TCID) should be in the file name.

Could you please clarify to me?

rquidute avatar Aug 27 '24 14:08 rquidute