I spent the day following a number of apparently out-of-date tutorials and documentation, particularly Run Wired Tests with the Plugin Test Console trying to figure out a usable integration testing solution
However, like that doc says "While the
atlas-integration-test commands allow you to run tests from the command line, neither allowed for a fast development process." The Plugin Test Console seems to be what I'm after... but it doesn't seem to exist?
There is no Developer Toolbar in the lower left corner, in Chrome or IE, (other people have noticed this too) but I can get to a Developer Toolbox by navigating directly to http://localhost:2990/jira/plugins/servlet/developer-toolbox The Toolbox doesn't have anything test console related, but it does mention FastDev which I understand has long been deprecated in favour of QuickReload. So is this still the recommended approach?
ATLAS Version: 6.2.14
AMPS Version: 6.2.14
Jira version: 7.2.2
Atlassian SDK version: 6.2.11
The Plugin Test Console seems to be what I'm after... but it doesn't seem to exist?
It's because atlassian is now now using quickreload in favor of fastdev (since JIRA6 i guess)
Test Console was part of fastdev. When you started a plugin with fastdev there was a special developer toolbar on the bottom of the browser which allowed to access the test console and run wired integration tests using UI inside running instance without having to use console.
Since they have switched to quickreload, this is no longer supported. The developer toolbar doesn't exist anymore with quickreload.
As far i can see you have two options.
1. It is still possible to switch back to fastdev with jira7 and atlassian-sdk6 in the pom.xml of your plugin in configuration of maven-jira-plugin. Set enableQuickReload to false, and enableFastdev to true.
However, you should know atlassian recommends using quickreload and they are going to switch off the support for fastdev soon. So you would face the same problem when you upgrade to next version propably.
Also quickreload has some advanteges. In example you don't need to restart the instance when you change plugin descriptors or the pom. With fastdev you have to.
2. There is a (nasty) workaround i was able to find. But i didn't try myself yet.
I eventually stumbled on that same workaround and tried it out; it does actually work. It isn't pretty, but it works! Along with navigating directly to http://localhost:2990/jira/plugins/servlet/it-test-console I can now use the test console and QuickReload.
I've upgraded my main plugin to use the Spring Scanner 2 (described here), but the test package is still the old version. The biggest shortcoming of this setup is that I haven't been able to get the ExportAsDevService annotation to work, but ExportAsService does. So that just means I'm exporting/exposing more of my plugin than I want to but that's easy enough to live with.
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs