It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to perform integration testing for JIRA plugin. Getting "No Form Present" error


Im trying out integration testing for JIRA plugin development mentioned at .

I have written below test class, 



import com.atlassian.jira.functest.framework.FuncTestCase;
import com.atlassian.jira.functest.framework.locator.WebPageLocator;
import org.junit.Before;
import org.junit.Test;

public class MyComponentWiredTest extends FuncTestCase {
public void setUpTest()
log("called setUpTest()");
System.out.println("called setUpTest()");

public void testMyName() {
log("called testMyName()");
System.out.println("called testMyName()");
navigation.login("admin", "admin");
administration.usersAndGroups().addUser("fred", "password", "Fred Flintstone", "");
text.assertTextSequence(new WebPageLocator(tester),
"Username:", "fred", "Full Name:", "Fred Flintstone", "Email:", "");

navigation.login("fred", "password");




Tried below commands in sequence :


mvn install



After execution, getting below error logs : 


[INFO] -------------------------------------------------------
[INFO] Running
. ===FTC Started : MyComponentWiredTest.testMyName #1 of 0
. Checking that JIRA is setup and ready to be tested...
. JIRA is not setup. Installing a new V2 license and completing setup steps
. Using a 'JIRA Enterprise: Commercial Server' license which allows -1 maximum users
. ===FTC Finished FAIL : MyComponentWiredTest.testMyName #1 of 0 (0.0%) : Errors 1 (0.0%) : Run time 0.69 seconds : Suite time 0.69 seconds : HTTP Count 0 : HTTP Time 0ms : HTTP Ave 0.00
ms/request : HTTP 100th -1ms : HTTP 90th -1ms : HTTP 50th -1ms : Max Mem 1883242496 : Total Mem 128974848 : Free Mem 100515440
. [junit.framework.AssertionFailedError: No form present]
. ______________________________
. Test Failures So Far :
. ===FTC FAIL :
. ______________________________
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.77 s <<< FAILURE! - in
[ERROR] testMyName( Time elapsed: 0.747 s <<< FAILURE!
junit.framework.AssertionFailedError: No form present

[INFO] Results:
[ERROR] Failures:
[ERROR] MyComponentWiredTest>FuncTestCase.runBare:276->FuncTestCase.setUp:140 No form present
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] refapp: Shutting down
[INFO] using codehaus cargo v1.6.10
[INFO] [talledLocalContainer] Tomcat 8.x is stopping...
[INFO] [talledLocalContainer] Sep 16, 2019 6:03:36 PM org.apache.catalina.core.StandardServer await
[INFO] [talledLocalContainer] INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
[INFO] [talledLocalContainer] Sep 16, 2019 6:03:36 PM org.apache.coyote.AbstractProtocol pause
[INFO] [talledLocalContainer] INFO: Pausing ProtocolHandler ["http-nio-5990"]
[INFO] [talledLocalContainer] Sep 16, 2019 6:03:37 PM org.apache.coyote.AbstractProtocol pause
[INFO] [talledLocalContainer] INFO: Pausing ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] Sep 16, 2019 6:03:37 PM org.apache.catalina.core.StandardService stopInternal
[INFO] [talledLocalContainer] INFO: Stopping service [Catalina]
[INFO] [talledLocalContainer] Sep 16, 2019 6:03:37 PM org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[INFO] [talledLocalContainer] WARN - 18:03:37,168 - strumentation.expose.jmx.schedule.JmxInstrumentSchedulerImpl - [localhost-startStop-2] - atlassian-instrumentation-jmx expose schedul
er stopped.


I have not done any integration test before, so Im  not sure what Im doing wrong here.


1 answer

Post this in developer community. You will probably get better response. 

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you