Automation Testing
Use the setExitStatus.py
Python script, attached to this page, to test and simulate the use of the automation triggers within Clarity LIMS.
The setExitStatus.py
script is designed to illustrate concepts for API training purposes. Do not use in a production environment.
The setExitStatus.py
script relies on the presence of the glsapiutilv2.py
script. Typically, both scripts are located in the same directory.
The setExitStatus.py
script uses the following command-line parameters:
An example of a parameter string that invokes this script from Clarity LIMS is provided in the following. Note the use of the stepURI token in the -l parameter.
python /opt/gls/clarity/customextensions/setExitStatus.py -l {stepURI:v2:http} \
-u {username} -p {password} -s "OK" -m "successful"
Attachments
glsapiutilv2.py:
setExitStatus.py.txt:
The latest glsapiutil (and glsapiutil3) Python libraries can be found on the GitHub page.
Last updated