It's all about the answers!

Ask a question

[closed] Cannot understand how to use ELM-Python-Client


David Sedar (2838) | asked Jan 10, 6:36 a.m.
closed Jan 11, 7:24 a.m. by Ralph Schoon (63.7k33648)

 I am trying to follow the github article: https://github.com/IBM/ELM-Python-Client/blob/master/elmclient/examples/OSLCQUERY.md

to use OSLCQuery on our SaaS Test Manager.

My query (run from a command prompt) :
oslcquery -J "https://telent-dng.clm.ibmcloud.com/" -A qm -p "TPCMS inc RemoteSecure" -P "xxx*" -U "xxx" -s dcterms:title -O qmresults.csv

returns the unhelpful response:
File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\daves\anaconda3\Scripts\oslcquery.exe__main__.py", line 7, in <module>
  File "C:\Users\daves\anaconda3\Lib\site-packages\elmclient\examples\oslcquery.py", line 814, in main
    do_oslc_query(sys.argv[1:])
  File "C:\Users\daves\anaconda3\Lib\site-packages\elmclient\examples\oslcquery.py", line 359, in do_oslc_query
    c = p.find_local_component(args.component)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\daves\anaconda3\Lib\site-packages\elmclient_qm.py", line 291, in find_local_component
    self.load_components_and_configurations()
  File "C:\Users\daves\anaconda3\Lib\site-packages\elmclient_qm.py", line 72, in load_components_and_configurations
    assert compuri is not None, "compuri is None"
           ^^^^^^^^^^^^^^^^^^^
AssertionError: compuri is None
Version 0.23.0
Warning - project 'TPCMS inc RemoteSecure' is opt-in but you didn't specify a component or a global configuration - using default component 'TPCMS inc RemoteSecure' - if this component name doesn't exist you'll get an error message

so far as I can tell our SaaS v7.0.2 Project is opt-in, but even adding '-C 8371'  produces no .csv file,
what am I doing wrong?
David Sedar


Comments
Ian Barnard commented Jan 10, 9:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 You should create a github issue on https://github.com/IBM/ELM-Python-Client rather than asking here


David Sedar commented Jan 11, 7:22 a.m.

 Thanks Ian - have done

The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon Jan 11, 7:24 a.m.