question

NMOLINERO avatar image
NMOLINERO asked NMOLINERO answered

python quickcall on iTest

I'd like to call a python quickcall library from a test case and use some variables (TCL variables) from that test case in python. However, when I put the variables as arguments in the python procedure, they are not recognized in the python library. Is there any way to do this?

iTest Enterprisepythonpython scriptitest test case
10 |950

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

NMOLINERO avatar image
NMOLINERO answered

Thanks a lot @Clark Whitty, this is very useful!

10 |950

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

cwhitty avatar image
cwhitty answered
,

There are 2 ways to accomplish this.

  • Method 1 - Use field substitution ($ syntax) to get the argument's value
  • Method 2 - Use scriptSet to define a variable in the Python session

pythonproc.zip


10 |950

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

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.