test-fullautomation / robotframework-testsuitesmanagement

Apache License 2.0
4 stars 2 forks source link

Configuration level detail wanted #307

Open HolQue opened 4 days ago

HolQue commented 4 days ago
          Little goodie wanted:

Sometimes, when I am not so deep inside the TestsuitesManagement stuff any more, it is difficult for me to get the meaning of messages like:

"Running with configuration level 3" (What is the meaning of 3?)

This is similar to those magic numbers in code, that are also not wanted.

With the help of something like

levels_info = {1 : "configuration file in command line",
               2 : "variant name in command line",
               3 : "configuration file in local config folder",
               4 : "default configuration (fallback solution)"}

is is possible to provide feedback about the configuration level in this format:

"Running with configuration level 3 (configuration file in local config folder)"

That is in my opinion more helpful - and is already realized in:

https://github.com/test-fullautomation/RobotFramework_AIO/issues/235#issuecomment-2345780426

If you make levels_info a part of your TestsuitesManagement configuration (e.g. TM.CTestsuitesCfg.oConfig) then you can use this information also at other positions where you write the level number to log files.

Originally posted by @HolQue in https://github.com/test-fullautomation/robotframework-testsuitesmanagement/issues/271#issuecomment-2346692472