Hi, I am running into a problem when testing automation using python on STC. In my script, I load an existing test (which runs fine from my windows client), and attach the ports. The complete script is shown below:
from StcPython import StcPython stc = StcPython() print("SpirentTestCenter system version:\t", stc.get("system1", "version")) stc.config( 'automationoptions', loglevel='info', logto='mylog.txt') stc.perform("LoadFromDatabase", DatabaseConnectionString = "test.tcc") stc.perform('AttachPorts', autoConnect='TRUE') stc.apply()
At the call to apply(), I get the following error and the script aborts:
Traceback (most recent call last):
File "test.py", line 8, in <module>
stc.apply()
File "C:\Users\sbryden\TCA\StcPython.py", line 58, in apply
return self.stcInt.salApply()
RuntimeError: in apply: There were 2 validation error(s); aborting apply.
License check for Port //9/5 failed.
License check for Port //9/1 failed.
Is there a special license needed for automation? I see the same issue from linux and windows.
Thanks, Simon.