Forum Discussion

Jaswanth's avatar
Jaswanth
Occasional Contributor
7 years ago

Can log location in TestExecute be changed?

Similar to how log location can be changed manually in TestComplete(RightClick on project->Edit->Properties->General->Log location).Can a similar change be done from the front end for TestExecute?

6 Replies

    • Jaswanth's avatar
      Jaswanth
      Occasional Contributor

      In TestComplete, we have the option of changing the log location before we start execution. Is the same possible via TestExecute?  In TestExecute, I believe we can only export the results to a new location after execution completes.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Jaswanth wrote:

    Similar to how log location can be changed manually in TestComplete(RightClick on project->Edit->Properties->General->Log location).Can a similar change be done from the front end for TestExecute?


    Log location is a project property that is set in the MDS file for the project.  It is ready in at run time and cannot be altered in code.  If you want the log location of your test log to be someplace else, that is part of the initial project configuration.  It can be a relative path (in fact, by default, it is a relative path to the MDS file location).  

     

    TestExecute, by it's nature, is only a runner... it runs the projects.  It cannot edit project code... and while the log location isn't exactly "code", it's part of the project that can be edited... therefore, there is no front end.  Log.Path will give an output... but it's read only.