HP ALM REST API integration.
-
Encapsulate all the details of making REST API call using net/http lib
-
Provide xml <–> class mapping using HappyMapper lib
Here is a simple example that login and logout ALM server.
ALM::RestConnector.instance.init(Hash.new, ALM::Constants::HOST, ALM::Constants::PORT, ALM::Constants::DOMAIN, ALM::Constants::PROJECT) authenticationPoint = ALM.isAuthenticated() loginResponse = ALM.login(authenticationPoint, ALM::Constants::USERNAME, ALM::Constants::PASSWORD) # do something here ALM.logout()
See test directory in the gem for more details.
github.com/xiaomengzheng/alm-rest-api/tree/master/test/
-
gem install alm-rest-api