QualityForward provides a cloud service for test management. We also provide a web API, but running the web API directly is tedious. So we are developing a library for Python (unofficial).
goofmint / qualityforward-py: QualityForward Python library
With this version upgrade, all models of QualityForward API are supported. Please note that currently it is only for acquisition and does not support addition or update of data.
Initialize as follows.
from qualityforward.QualityForward import QualityForward
q = QualityForward("0aa...340") #API key
Projects and tenants (company information) can be obtained as follows.
#Project acquisition and tenant acquisition
print(q.get_current_project().tenant)
It is a flow to get the test result by drilling down from the test phase.
#Get test phase
for test_phase in q.get_test_phases():
#Get test suite assignments for each test phase
for test_suite_assignment in test_phase.test_suite_assignments:
#Get a test cycle
for test_cycle in test_suite_assignment.get_cycles():
#Test cycle output
print(test_cycle.get_results())
It is a flow to get the test suite and version.
#Get a test suite
for test_suite in q.get_test_suites():
#Get test suite version
print(test_suite.get_versions())
If you are developing a system using Python or making a small script that can be used in-house, the Python library should be useful. It can also be used to get test management results on a regular basis and to notify Slack.
Recommended Posts