Forum Discussion

mortenb123's avatar
mortenb123
Contributor
9 days ago

TestExecute hijacks my python path

I run testExecute via a python wrapper, it populates a powershell command line promp which is executed to run the configured testsuite. but when it exits it has hijacked the python path:

where.exe python
c:\program files (x86)\smartbear\testexecute 15\x64\Bin\Extensions\Python\Python311\python.exe
C:\dist\venvs\bam-extras-mobj\Scripts\python.exe
C:\dist\Python312\python.exe
C:\Users\ip_admin.BPLAB\AppData\Local\Microsoft\WindowsApps\python.exe

 

Same if I start Test Complete and exits my base python has changed.

This changed with 13.7X

You should not change parent config from a child process.

 

4 Replies

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

    Could it be Python 3.11 making changes to the Path? Are you running your "Python Wrapper" from the same process or is it creating a new process?

    • mortenb123's avatar
      mortenb123
      Contributor

      The python wrapper uses subprocess to run a powershell sript with the testcomplete testexecute parameters. the rest of the wrapper ops, (gather reports, cleanup and deploy to presentation) are not affected only when it exits. I never saw it prior to 15.71 (15.6X I was running)

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

        I use PowerShell scripts to run my entire automation, not sure if that would be an easier option for you?