Support

 View Only
  • 1.  Programatically Update Test Cases Result in Jama from Jenkins

    Posted 06-13-2018 01:54
    Hi,

    We have a test automation in place which gets triggered from the Jenkins on one server.
    We get the consolidated report of the TC's result in the jenkins.

    Our CTQ is how do we link these test results back to Jama's Test run?
    Is there any way, by which we can update the TC's result in jama?

    Thanks & Regards,
    Shahajahan

    ------------------------------
    Shahajahan Sheikh
    Hon
    Hyderabad IN
    9989787311
    ------------------------------


  • 2.  RE: Programatically Update Test Cases Result in Jama from Jenkins

    Posted 06-15-2018 15:37
    Hi there Shahajahan,

    Thanks for reaching out here with this Test Center's results in Jama.  Are you currently using any of Jama's API calls to navigate this information between Jenkins and Jama?  I ask because I'm thinking that you may be able to use the PUT request with the "/testruns/{id}" endpoint to make updates as needed, but am wondering if you're already doing this or not.

    If you'd like to learn more about this, I'd recommend reviewing our API documentation via this link, and seeing if any of those other endpoints will work for your needs here.  

    And of course, let me know if you have any more clarifications or questions.



    ------------------------------
    Nick S
    Jama Software
    ------------------------------



  • 3.  RE: Programatically Update Test Cases Result in Jama from Jenkins

    Posted 06-15-2018 15:48
    Hello Shahajahan, 

    The best way of accomplishing the task at hand would be to obtain OpsHub Integration Manager (OIM), our official integration partner. To learn more about OpsHub, please consult this article. If you would like to find out more details about this offering from Jama please contact your Account Manager. 

    The second option is to leverage our API. Please learn more here.


    ------------------------------
    Getro Naissance
    Jama Software
    ------------------------------



  • 4.  RE: Programatically Update Test Cases Result in Jama from Jenkins

    Posted 25 days ago
    Edited by Martins S 25 days ago
    Hey Shahajahan,
     
    Absolutely, linking Jenkins test results to Jama can be a game-changer for streamlined testing. What you're looking for is essentially a bridge between your Jenkins automation and Jama. One way to do this is by utilizing Jama's REST API.
     
    So, if you're into that unq stuff and wanna level up your integration quality, check out what Andersen's got goin' on. They're all about crafting some sick tools and integrations that straight-up boost the efficiency of development processes. You might will check that? You could check if they offer a Jenkins-Jama integration solution that aligns with your requirements.
     
    In your Jenkins job, consider adding a post-build step to make a REST API call to update the corresponding test case results in Jama. You'll need to authenticate your API requests and ensure you're sending the right data format.
     
    For me, it's been a game-changer. In a similar setup, I scripted this integration using Python requests library, making authenticated calls to Jama's API endpoints. It's reliable once set up, but remember to handle potential errors gracefully.
     
    Give it a shot and let me know if you need more specifics. Happy coding.



    ------------------------------
    Martins S
    GA
    ------------------------------