• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Free Trial
        • AppMon & UEM Open Q&A
        • AppMon & UEM Plugins
      • Data Center RUM
        • DC RUM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
        • Synthetic Classic EAP Feedback
      • BSM Open Q&A
      • Dynatrace Open Q&A en Español
  • 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 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
  • Most voted
  • Newest
  • Oldest
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 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
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 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
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 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 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

Welcome to the
Dynatrace Community Forums

Check out the Forum User Guide and Forum Guidelines to learn how to get started.

Community Member of the Month
April 2018

Announcing Dynatrace's Community Member of the Month for April 2018, Babar Q.! Click here to read more!

Live webinar: Web Performance Optimization and Web Frontend Engineering with Dynatrace

Learn key aspects on how Dynatrace helps you in your day to day web performance activities. Take a deep dive look into Real User Monitoring and the Synthetic capabilities of Dynatrace.
Thursday, April 26, 2018
Register today!

Live webinar: Web Performance Optimization and Web Frontend Engineering with Dynatrace

Learn key aspects on how Dynatrace helps you in your day to day web performance activities. Take a deep dive look into Real User Monitoring and the Synthetic capabilities of Dynatrace.
Thursday, April 26, 2018
Register today!

DC RUM 2018 Beta is here!

Improve your operational efficiency and collaborate more effectively while addressing tightening security requirements. Have an early taste of what we have cooked up for 2018!
Learn more!

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Welcome to the Test Automation and Continuous Integration Forum Topic 0 Answers

dT & Load Runner. Less tests with dt Agent installed 1 Answer

Who broke the build - Committer Info 2 Answers

Agent deployment with Chef 10 Answers

WebSphere CPU consumption by application 2 Answers

Forum Tags

upgrade nginx java diagnostics dotnet docker 6.5 ios appmonsaas browser agent database sensor 7.1 performance warehouse chart hybris 6.3+ services production web performance monitoring transactionflow test automation incidents measures business transaction plugins migration php javascript android processes server dashlet monitoring purelytics nodejs 6.2 splunk system profile rest api uem appmon framework appmon 7 license mobile monitoring collector installation adk messagebroker web services apache guardian appmon plugin iis dashboard rest webserver reports 7.0 kibana mainframe client 6.1 configuration forum user guide continuous delivery sensors security documentation agent web dashboard alerting load window dynatrace apm 6.3 administration oneagent
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Free Trial
      • AppMon & UEM Open Q&A
      • AppMon & UEM Plugins
    • Data Center RUM
      • DC RUM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A
      • Synthetic Classic EAP Feedback
    • BSM Open Q&A
    • Dynatrace Open Q&A en Español