HP ALM

This category is a parent category in order to collect all sub categories and according articles.

Using the REST API it is possible to link a defect to another entity.

In this article I want to show how to link an existing defect to a requirement using XML.

Identify required fields

According to the REST API documentation a link is described by the entity "defect-link".

First we need to identify required fields for the entity "defect-link". To do so we have to call the following URL e.g. using your browser.

https://{HOST}/qcbin/rest/domains/{DOMAIN}/projects/{PROJECT}/customization/entities/defect-link/fields?required=true

Below method can be used in order to calculate work (working / business) days in VBScript ignoring bank holidays.

Version History

Version  Date  Description 
0.1  2014-11-12 Initial commit.
0.2  2015-05-20  Replaced the old algorithm with a smarter solution, which is also regarding the fact that the start date can be younger than an end date. 

Source Code

If you have to apply filters in HP ALM programmatically the following function allows you to escape characters in filter strings, which cause runtime errors if not handled properly.

Source Code

Subcategories

This category is meant to hold all articles regarding HP ALM REST API.

This category will provide articles regarding usage of Visual Basic Script in the workflow module of HP ALM.