Forum Discussion

davidreich's avatar
davidreich
New Contributor
10 days ago

How to set ErrorLog location with SessionCreator.exe?

Have TestComplete 15.69.139.x64 running on a Windows Server 2019.

When we are launching TestComplete through SessionCreator.exe under GitLab CICD pipeline, we are receiving:

Failed to open the error log file.C:\Users\user\AppData\Local\Temp\{0E3E8904-52CA-4372-B859-E2B4CE50199E}.log

 

We have attempted to override default C:\Users folder usage by setting TestComplete options to use C:\TCTemp for TEMP, TMP and APPDATA

 

Have Windows User Profile Variables to utilize the same override options.

 

As part of the Pipeline YML, this is the command we are executing:

SessionCreator.exe RunTest /UserName:domain\${GITLAB_USER_LOGIN} /UseActiveSession /ProjectPath:"C:\TestCompleteBuild\automation\Automate.pjs" /ExportLog:"$CI_PROJECT_DIR\ExportLog\TestCompleteTestReport.html"

We are still receiving pipeline job errors.

Failed to open the error log file.C:\Users\user\AppData\Local\Temp\{AE9EF2A7-3AB8-48D1-9101-6908B2598BB0}.log

We've found that TestComplete.exe has an option for [/ErrorLog:File_namebut do not see anywhere how we can override the error log location or filename for SessionCreator.exe.

How do we force SessionCreator.exe to use something outside of C:\Users\user\ folder for it's Error Log handling?

1 Reply

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    I would not modify the environment variables as other application might be using it.

    You can use parameters /ExportLog and /ExportSummary for SessionCreator.exe. It will look something like this,

    GITLAB_USER_LOGIN: "domain\TestUser1"
    CI_PROJECT_DIR: "MyProject"
    
    SessionCreator.exe RunTest /UserName:${GITLAB_USER_LOGIN} /UseActiveSession /ProjectPath: "C:\TestCompleteBuild\automation\Automate.pjs" /ExportLog: "${CI_PROJECT_DIR}\ExportLog\TestCompleteTestReport.html"

    Note, you might have to use double backslashes (\\) to escape backslashes in Windows-style paths.