• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by John C. · Dec 04, 2013 at 03:08 PM · continuous delivery

Gradle Plugin for Test Automation

Hi all-

I've just published a plugin for anyone using Gradle, and wants to do the same things that the Ant and Maven dynaTrace integration are doing.  Currently supported is setting metadata, start / stop recording and setting the JVM arguments for the Test task to start the dynaTrace Agent.  

Also included is a 'helper' if you are using Spock Framework for testing.  See my other thread, but dynaTrace currently doesn't support Spock unless you are annotating with @Test.  This plugin helps you find the tests that are NOT annotated.

See the plugin / documentation here: https://github.com/Aon-eSolutions/gradle-dynaTrace

--John

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Keith W. · Jun 06, 2014 at 10:13 AM

Thanks for that - I've managed to build the plugin and I'm currently configuring the gradle task.

Just curious as to why this plugin requires an agent installed on the build machine?  Presumably the build machine is the Jenkins slave the job is running on and this agent won't be getting called from dynaTrace?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image John C. · Jun 06, 2014 at 11:06 PM 0
Share

Hi Keith-

It requires the agent because that's what's actually instrumenting your code.  Since the JUnits are running wherever you kicked Gradle off, it requires it in the same place, so it can instrument your JUnit code.  I believe this is the same requirement as the ANT task.

--John

avatar image

Answer by Keith W. · Jun 04, 2014 at 02:01 PM

I could do with some guidence on getting this plugin working...

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image John C. · Jun 04, 2014 at 11:24 PM 0
Share

Hi Keith-

I'm not sure exactly where you're running into issues, but the README.md should offer some basic guidance (assuming you know the basics of gradle).  The main part is to add the plugin JAR to your buildscript dependencies.  I'm sorry, but I don't have a public place to host this, so you'll have to clone the Repository and build it yourself.  In our company, we have an internal Artifactory instance where we host things like this.

If you still have questions, there is a 'pluginTest.gradle' which is a working example.  I didn't want to provide our server names and such, so you'll see project properties in there, which you can provide with -P.  For example: gradle -PdynaTraceServer=http://mydynatrace.com/.

Hope this helps get you started!

--John

avatar image

Answer by Andreas G. · Dec 04, 2013 at 03:12 PM

Thanks John - thats great!!

We will make sure to also get this on a "consolidated" download page in our download section

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

DynaTrace 6.3 and Jenkins 1.625.3 connectivity issue

Manage Remote Batch Processes through Eclipse Plugin

PHP and Test Automation

Automation Client in an Intrumented app - how to get the app measures as test checkpoints?

Hudson plugin for Dynatrace 4.0

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A