Solution
TestStand does not rely solely on the system PATH to locate Python.
Instead, it uses:
- The Python Adapter configuration inside TestStand
- The Windows Registry (PEP 514–compliant Python registration)
If either of these is missing or incorrect, TestStand will fail to detect Python even though it is installed and usable from the command line. To solve this issue, you can refer to the steps below:
Option A: Configure Python Directly in TestStand (Recommended)
- Open TestStand
- Navigate to: Configure » Adapters… » Python » Configure
- Set the following:
- Version:
3.13 (or your installed Python version) - Executable Path:
C:\RobotFramework\python3\python.exe
- Click OK
- Close and restart TestStand
In most cases, TestStand should now locate and launch Python correctly.
Option B: Fix the Windows Registry (PEP 514 Compliant)
Note: This requires Administrator privileges. Modify the registry carefully.
If the issue persists after configuring the adapter manually, ensure that Python is registered correctly in the Windows Registry.
Steps:
- Press Windows + R
- Type
regedit and press Enter - Click Yes if User Account Control (UAC) appears
- Go to Python Registry Key and go to this path:
- Make sure you are exactly at InstallPath
- Set Value data to: C:\RobotFramework\python3\
- Lastly, close TestStand and reopen it. TestStand should now find and launch Python correctly.