This project is to integration HP ALM and other test automation frameworks. Still there are many projects that uses HP ALM tool to store their test cases and results in HP Application Life Cycle Management
Since there are different open source test frameworks, the team always struggle to bring the test cases and test results back to HP ALM. It happened in our team, so I initally created python script for each test framework type and the maintenance went crazy. Finally developed this script to support most of the frequently used test frameworks in web development.
-
Jenkins / Local Machine
-
Python version < 3
-
Python Packages
- requests
This script is built primarily to run from Jenkins but it doesn't limit anyone from running it from his/her local machine.
- Create test cases in HP ALM by parsing your source code a. Create folders in HP ALM b. Create test cases in HP ALM
- Upload the test results in HP ALM by parsing your test results a. Create test set folders in HP ALM b. Create test sets in HP ALM c. Update test status d. Upload the result file
- PROTRACTOR
- AVA
- CUCUMBER
- FRISBY
- GRAILS
- KARMA
Opensource gives us the flexibility to pick from variety of reporting library for any test framework. So this script is limited to the reporting library / output it supports.
TEST FRAMEWORK | REPORTING LIBRARY |
---|---|
PROTRACTOR | jasmine-json-test-reporter |
AVA | tap-xunit xml |
CUCUMBER | cucumberjs json |
FRISBY | mocha |
GRAILS | default xml |
KARMA | default xml |
The input comes from the ./hpqc.config.txt file.