I am trying to set up integration tests with v. 8.1.11. PageObjects works fine, but Backdoor doesn't. Every backdoor operation throws a 404. Here is the test:
```
package it.hk.com.epictechnology.plugins.rest;
import com.atlassian.jira.pageobjects.JiraTestedProduct;
import com.atlassian.jira.pageobjects.pages.admin.ViewProjectsPage;
import com.atlassian.pageobjects.TestedProductFactory;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class RerankRequestControllerFuncTest {
public JiraTestedProduct jira = TestedProductFactory.create(JiraTestedProduct.class);
@Before
public void setup () {
jira.backdoor().subtask().enable();
}
@techoneway
public void projectCountIsValid() {
ViewProjectsPage viewProjects = jira.gotoLoginPage().loginAsSysAdmin(ViewProjectsPage.class);
assertEquals(1, viewProjects.getProjects().size());
}
}
```
This is the error:
```
<testcase name="projectCountIsValid" classname="it.hk.com.epictechnology.plugins.rest.RerankRequestControllerFuncTest" time="2.358">
<error message="Client response status: 404" type="com.sun.jersey.api.client.UniformInterfaceException">com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404
at it.hk.com.epictechnology.plugins.rest.RerankRequestControllerFuncTest.setup(RerankRequestControllerFuncTest.java:24)
</error>
<system-out><![CDATA[ . Backdoor POST in 1086ms /subtask
]]></system-out>
</testcase>
```
Which version of Jira Testkit are you using? Can you post your pom file as well!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.