Automating HP Quality Center with Python or Java

前端 未结 6 854
既然无缘
既然无缘 2021-02-03 13:59

We have a project that uses HP Quality Center and one of the regular issues we face is people not updating comments on the defect.

So I was thinkingif we could come up w

6条回答
  •  忘了有多久
    2021-02-03 14:34

    There is a REST API to HPQC (ALM11 and newer) if you want to access it from Linux without running a Windows COM component.

    Here is an example that pulls in a "requirement" record (# 1202) after authenticating.

    import requests
    session = requests.session()
    user='hpqc'
    password='xxxxx'
    r = session.get("http://hpqc-server:8080/qcbin/authentication-point/authenticate",auth=(user,password))
    
    r = session.get("http://hpqc-server:8080/qcbin/rest/domains/Foo/projects/Bar/requirements/1202")
    print(r.text)
    

    The parsing of r.text from XML is left as an exercise.

提交回复
热议问题