03-02-2022 07:13 AM - edited 03-02-2022 07:16 AM
I’m trying to utilize the request package from python to query test results/ test step values from the Swagger page.
I am not able to get a good request out. Does anyone have any suggestions or examples of someone utilizing the Python request package to get results?
Here's a screenshot from JupyterLab:
Thanks in advanced!
03-02-2022 08:23 AM
Here are a few links to some Python examples that may help.
03-02-2022 01:04 PM
Hi Joshua,
I think I have looked at the links you've proved below before.
Are these examples applicable to Jupyter Environment outside of the SystemLink server? I'm trying to utilize Domino Data Lab Virtual Machines and locally hosed Jupiter instance to query data by utilizing the HTTP APIs.
Thanks,
Wicky
03-02-2022 03:17 PM
I think most of these examples leverage our SystemLink Python SDK that normally installs with the SystemLink Server Jupyter Notebook support. On your SL server there is an NI package that gets install and should be cached under "C:\ProgramData\National Instruments\NI Package Manager\packages\ni-systemlink-python-3.8-systemlink-sdk_21.5.0.49361-0+f209_windows_x64.nipkg"
If you open this package using 7-zip you can probably extract the .whl files and manually install them into your other environment.
We have started moving some of these items to a pip package, but currently only the tag API is available.
https://pypi.org/project/nisystemlink-clients/
03-03-2022 08:09 AM
Thanks, I'll look into that. How would I get the connection and authenticate to the SystemLink server after installing the library locally/ in the Domino VM? I am looking at this example here and trying to query test step results:
03-03-2022 08:55 AM
https://<your-server>/niapis/python/modules/systemlink.clients.nitestmonitor.configuration.html
You need to specify the host, username, and password manually in your notebook.