Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Plugin "Jira_REST" returned an error: Invalid HTTP code (503). Please verify the address of your JIRA installation in the configuration settings and that TestRail can reach your JIRA server


#1

Plugin “Jira_REST” returned an error: Invalid HTTP code (503). Please verify the address of your JIRA installation in the configuration settings and that TestRail can reach your JIRA server.


#2

Hi Riya,

Thanks for your posting. A 503 usually indicates a server-side issue on JIRA’s side (permanent or temporary). If this is a permanent issue, I would recommend reviewing the JIRA server logs.

Cheers,
Tobias


#3

Thanks tgurock
My issue is resolved.
One more thing I need some help in exploring Testrail API feature . And where can I refer for this. I have referred documentation section. And I am not getting it.


#4

Hi Riya,

That’s great to hear! Regarding the API: you can find a good introduction as part of our documentation:

http://docs.gurock.com/testrail-api2/start

The API is mostly used to submit test results from automated tests but it can be used for a lot of additional things such as migrating test cases or extracting data to generate reports outside and independently of TestRail.

Cheers,
Tobias


#5

Hi,
where will i call api in my selenium code?


#6

If this is my selenium code

package mypackage;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class myclass {

public static void main(String[] args) {
    // declaration and instantiation of objects/variables
    WebDriver driver = new FirefoxDriver();
    String baseUrl = "http://newtours.demoaut.com";
    String expectedTitle = "Welcome: Mercury Tours";
    String actualTitle = "";

    // launch Firefox and direct it to the Base URL
    driver.get(baseUrl);

    // get the actual value of the title
    actualTitle = driver.getTitle();

    /*
     * compare the actual title of the page witht the expected one and print
     * the result as "Passed" or "Failed"
     */
    if (actualTitle.contentEquals(expectedTitle)){
        System.out.println("Test Passed!");
    } else {
        System.out.println("Test Failed");
    }
   
    //close Firefox
    driver.close();
   
    // exit the program explicitly
    System.exit(0);
}

}


#7

Hi Riya,

You can find a good overview of how other teams integrate their test automation here on our blog:

https://blog.gurock.com/testrail-test-automation-test-management/

Most teams don’t integrate directly with their test automation code but use the generated result files to submit test results as a second step after running the automated tests. You would usually use the add_results or add_results_for_cases API methods to submit test results and I would recommend using one of the official API bindings:

http://docs.gurock.com/testrail-api2/start
http://docs.gurock.com/testrail-api2/reference-results

I hope this helps!

Cheers,
Tobias


#8

Thanks Dennis Gurock


#9

Hello riya, To know were exactly to call api in selenium code go through this links you can find it! http://elementalselenium.com/tips/24-rest-apis | JIRA PDF

I hope this will helps you.