Forum Discussion

Jaswanth's avatar
Jaswanth
Occasional Contributor
7 years ago

Registry/File Change when unchecking Store Logs in TC?

Store all Logs option/setting(Tool->Options->Engines->Logs) is unchecked in Test Complete, can this be achieved programatically or by a change in the registry setting?

8 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Unfortunately no... on both.

    First, you have to understand the basic architecture of TestComplete.  Prior to starting a test run, some options can be changed.  Think of it as the web.config for a web page or the manifest of an application or some other compiler options when you are compiling the code of an application.  You set all that stuff up BEFORE you compile and then run your application because those things are then built-in to the application as it is compiled that impacts the application execution itself.  Some options can be changed at run time because they don't control the application itself but are methods built into run time.

     

    The test log is one of the former.  Upon starting the test, TestComplete needs to know whether or not it will truncate the current set of logs to match the "Number of logs to be stored" field.  The "Store all logs" flag controls part of that... therefore, the option is not accessible during runtime... the same could be considered of any registry edits... but it's not a registry change that controls this but part of the configuration of the application.  

     

    Which brings us back to something I asked in your other thread: What is your use case for not writing out log files?  Explanation of this would help us determine if there is some other way we can achieve your desired effect.

    • Jaswanth's avatar
      Jaswanth
      Occasional Contributor

      But shouldn't the value for "Store all logs" be stored somewhere in the system/device? If yes, can you please provide the location. [Say, I wish to keep 5 logs. Where is this numeric value “5” stored?]

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        It is... but again, changing it at run time will not affect the current run.  It's something that's ready in at the start of the test run and used through the test run... so, updating the settings or registry key during the run won't impact the current run.

         

        As it is, the file is stored in your user settings AppData\Local\SmartBear\TestComplete\12.0 folder in a file called TCSettings.xml... and it's honestly not something that I'd personally feel comfortable messing with.