Forum Discussion

SK2020's avatar
SK2020
Occasional Contributor
4 years ago
Solved

SessionCreator / ExportLog

Hi,    I'm using TeamCity for CI and after the execution, I'm getting log files to see the results. I'm using SessionCreator.exe commands from this documentation https://support.smartbear.com/testc...
  • hkim5's avatar
    4 years ago

    1. /ExportLog argument should be able to take in cmd line variables (idk exactly what DOS stands for, but I've used env. variables from diff. agents and thats worked i.e things like {WORKSPACE} or etc. when using some sort of an agent based capability from other CI tools)

    2. if you are time stamping your logs, this would be irrelevant. as a matter of fact, if there is a preexisting file with the same name- your command will error out (kind of a quirk of the session creator utility)

    3. per the second comment of (2), I would suggest including a first set of commands to clean up the designated report folder using something like 

    CD "your_report_dir"
    DEL /F/Q/S *

    such that you dont get the exportlog error of preexisting report file