HP ALM reporting integration

Learn how to report the results of tests written in other testing frameworks (Selenium, Appium, and so on) in any development language to HP ALM/Quality Center.

Overview

The HP ALM Reporting Bridge utility can be used to import test execution results to ALM from executions that happen externally. This utility is an open source project written in C# that provides a command line wrapper for the HP ALM OTA API. It provides a robust interface for creating test sets, recording test execution data, uploading attachments, and updating testing entities.

Check out Perfecto's GitHub site for complete source code and documentation.

Tips for use

The reporting bridge can easily be incorporated into your existing Selenium/Appium execution framework. Here are a few tips on using the reporting bridge:

  • The project works by linking test configurations in ALM to unique test configurations (test + browser/OS/device) in your Selenium or Appium project.
  • The configuration ID of the test must be contained somewhere in your Appium/Selenium project. Typically, embedding in the unit test parameters or as annotations works the best.
  • Test sets can be copied from a template or created and filled with tests at run time. For situations where the same tests are to be executed each time, the copy method works the best. For situations where the tests to be executed are dynamic, building as you go is the best solution.
  • When updating the test execution result, an attachment can be added to the run. Using the Smart Reporting API, artifacts of an execution (PDFs, videos, logs, and so on) can be uploaded to ALM. Be careful when uploading significant amounts of binary files, since these tend to be quite large and can quickly cause your ALM server to run out of storage. A much better option is to upload the URL to the Single Test Report (STR) provided by the Smart Reporting API. This way, the storage requirements are very small on the ALM server, and you get the benefit of keeping the test artifacts within the Perfecto storage system.
  • Tags can be added to the Perfecto report to reflect the ALM project, Test Set ID, and other artifacts that could be useful in linking back to the ALM execution. Upon completion of the test suite execution, a URL can be uploaded to the containing test set that links to a pre-filtered report of all the tests executed.