Integrate HP Quality Center into a Continuous Integration Workflow
Introduction
QCRI imports test results from multiple testing tools to HP Quality Center by GUI, API, or Batch Command.
Supported Test Result Formats
- HP QTP/UFT Run Report
- 12.52
- 12.53
- Robot Framework
- 3.0.1
- Selenium IDE - Test Results Plugin
- 2.0.1
Requirements
- HP ALM Connectivity
Installation
-
Download executable made with PyInstaller
or
-
pip install qcri
Configuration
Configuration can be done through a qcri.cfg file placed in the ~ directory. The default config options are:
[main]
history=true
[parsers]
robotframework=true
uftrunreport=true
seleniumtestresults=true
[uftrunreport]
test_column=test
description_column=description
subject_column=subject
suite_column=suite
replace_warning_with_passed=true
Some parsers may require additional configuration to function correctly.
-
UFT Run Report
Columns for Test Subject, Suite, Name, and Decription must be set in the configuration file to match the DataTable.
Usage
GUI
qcri
Command Prompt
qcri --url http://localhost:8080/qcbin --domain QA --project WEBTEST --username tester --pasword secret --source c:/TestResults/output.xml --destination GroupA/SubGroup --attach_report True
API
>>> import qcri
>>> loc = 'c:/TestResults/output.xml'
>>> parsers = qcri.get_parsers(loc)
>>> results = qcri.parse_results(parsers[0], loc)
>>> conn = qcri.connect('http://localhost:8080/qcbin', 'QA', 'WEBTEST', tester, secret)
>>> qcri.import_results(conn, 'GroupA/SubGroup', results, attach_report=False)
License
This software is distributed under a BSD license.