question

VL avatar image
VL asked Philip.Joung commented

Can you running script with LS using python and not TCL?

All the code sample in the document Spirent_TestCenter_Automation_Prog_Guide.pdf in section Chapter 18 Spirent TestCenter LS are using TCL code.

I have not been successful yet connecting to LS through Python, is it possible?

Spirent TestCenter (STC)tcl scriptpythonhltapilab server
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

seilersen avatar image
seilersen answered

Yes, it is very much the same commands only in python (see below)

stc.perform("CSServerConnect", host="10.98.30.36") stc.perform("CSTestSessionConnect", host="10.98.30.36", TestSessionName="adc7101_tdm1", OwnerId="Steve", CreateNewTestSession="true")

Also you may want to download the doc set off the CSC http://support.spirentcom.com/

And see "Getting_Started_with_REST_API.pdf" (ReST-API) does not require a python license.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

satheesh avatar image
satheesh answered Philip.Joung commented

Looking for a stub code which uses python to run a landslide script. Any pointers would help

,

Hi,

Im looking for spreint landslide automatin to runn a script. any pointer towards the stub code will help

Br,

Satheesh

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Philip.Joung avatar image Philip.Joung ♦ commented ·

@satheesh, asking another question in a posting isn't a good place to do this and will often remain unanswered. I suggest you start a new question with "Ask a question" at the top.,

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.