Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9204523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:43:46+00:00 2026-06-17T23:43:46+00:00

I want to integrate HP qc with my rails application, on linux OS, anybody

  • 0

I want to integrate HP qc with my rails application, on linux OS, anybody worked on any api or ruby gem?

Thanks in advance.

Anurag Saxena.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:43:47+00:00Added an answer on June 17, 2026 at 11:43 pm

    checkout this post:

    Rails Activeresource Integration

    I have since rewrote the application controller as the following:

    class ApplicationController < ActionController::Base
      protect_from_forgery
      helper_method :Sessions
    
      $HPQC_HOST = "http://hpqc.example.com:8080"
      $HPQC_REST_URL = "#{$HPQC_HOST}/qcbin/rest/domains/<your_domain>/projects/<your_project>"
      $HPQC_LOGIN_URL = "#{$HPQC_HOST}/qcbin/authentication-point/authenticate"
      $HPQC_LOGOUT_URL = "#{$HPQC_HOST}/qcbin/authentication-point/logout"
    
    
      def allow_cross_domain_access
        response.headers["Access-Control-Allow-Origin"] = "*"
        response.headers["Access-Control-Allow-Methods"] = "*"
        response.headers["Access-Control-Allow-Headers"] = "x-requested-with"
      end
    
      def getAuthenticatedCurl
        @conn = Curl::Easy.new($HPQC_LOGIN_URL)
        @conn.verbose = true
        @conn.http_auth_types = :basic
        @conn.userpwd = '<your_username>:<your_password>'
        @conn.enable_cookies = true
        @conn.cookiejar = 'cookies.txt'
        @conn.perform #creates the first cookie instance, which allows subsequent calls to the HPQC API
        #return _conn
        puts "connected...."
      end
    end
    

    Simply put these methods is your RoR app’s ApplicationController and then call them from each of your Controllers to access HPQC. Then build an XML request and use the Curl::Easy Gem(i.e., @conn.post_body) to post the request to HPQC.

    I plan on building an HPQC Gem to configure and initialize HPQC requests but that’ll take me a little time!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to integrate https://www.usps.com/ and also fedex api on my rails application, but
I want to integrate facebook with my Ruby on Rails application. the facebook login
I am using the Ruby Gem Databasedotcom to integrate Salesforce in a Rails app
I was trying to integrate twitter authentication into my Ruby on Rails application (from
I have full featured existing Rails 3.2.2 running application. I want to integrate the
I want my web application, which is built with Ruby on Rails, to communicate
I want to integrate chargify to my rails app. I have user object and
I want to integrate facebook login into my web application developed using Spring MVC.
I am on rails 2.3.5 and have the latest Ruby installed and my application
i want integrate admob ads to my palm pre application.can you please suggest me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.