Community
Participate
Working Groups
At the present moment it is not possible to run AUTs with monitoring agents, if the embedded agent is used to launch the application under test.
Created attachment 208986 [details] This patch will allow to run AUTs with monitoring agents when the embedded agent is used
Created attachment 209007 [details] Second version of the patch It did some refactoring work so that the Platform.getBundle(bundleId) method will be only called once in the getMontoringAgent() method. The formerly used loadMonitoringClass() and getBundleFile() method were delete. Everything what is necessary to generate the "-javaagent:myagent.jar" String will be done in the getMonitoringAgent() method. This implementation assumes that the given monitoring bundle has a directory shaped character like: Eclipse-BundleShape: dir If you want to avoid using a "Eclipse-BundleShape: dir" you can use getClasspathEntriesForBundleId() method and extract the jar files which are held in the plugin jar file. But i choose the way of using the Eclipse-BundleShape: dir.
Comment on attachment 209007 [details] Second version of the patch patch applied with http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=37280687de2c2ad588df979aab663d8a32e3a1a8 It took me a little longer than expected to review this patch, as I stumbled over https://bxapps.bredex.de/bugzilla/show_bug.cgi?id=221 during testing.
Fixed with applied patch.
Tested