Hello,
I've checked the Automation Library for 5.x packaged for Maven 2 and Maven Plugin for dt 6.0 and couldn't find the category.field/method in the DtSetTestAutomation class. My question is - how can I set the category to load or performance. I tried to use Jenkins' HTPP Request plugin as a pre-build step but it didn't work either.
Thanks,
Leo
Answer by Leo S. ·
Wolfgang,
Thank you for your prompt response. We're using dt5.6 and dtAutomation\3.5\dtAutomation.jar\com\dynatrace\diagnostics\automation\maven\ does not have the DtStartTest goal. As you said this RESTful call was introduced in dt 5.5, but the Automation library packaged for maven (dtAutomation41ForMaven-7.zip) has never been updated. What should be our course of action? Should we start using the latest version of the Automation library (dynatrace.diagnostics.automation_5.6.0.5713-1.zip)?
Thanks,
Leo
Hi Leo,
I would ask you to use the jar file I linked above (https://community.compuwareapm.com/community/download/attachments/24248929/dtAutomation.jar?version=1&modificationDate=1406551556680&api=v2). This contains the startTest goal. Sorry for the inconvenience, I will make sure to update the other files
Thanks
Wolfgang
Answer by Wolfgang G. ·
Hi Leo,
Thanks for bringing this to our attention! In the meantime, you could use the the startTest goal in the Maven Plugin that uses the REST interface we introduced in dynaTrace 5.5. The caveat here is that you have to make sure the dtTestrunID is set as a system property on the JVM running your tests so the dynaTrace server knows which PurePaths belong to a certain test run.
A plugin configuration would then look like this:
dynaTrace dtAutomation 5.6 ... org.apache.maven.plugins maven-failsafe-plugin 2.17 once -agentpath:"C:\Program Files\dynaTrace\dynaTrace 6.0.0\agent\lib64\dtagent.dll"=name=${dynaTrace.agentGroup}_${dynaTrace.profileName},server=${dynaTrace.collector} com.dynatrace.diagnostics.ci.testrunID ${dtTestrunID} integration-test verify dynaTrace dtAutomation 5.6 DT_StartTest_IntegrationTest 1 2 3 5 ${BUILD_ID} performance ${dynaTrace.profileName} admin admin http://localhost:8020 pre-integration-test startTest
However, directly calling the REST interface with the required information should also work. Could share more detail (error message, log output,...) about what the problem was?
JANUARY 15, 3:00 PM GMT / 10:00 AM ET