• 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 Shafiz H. · Apr 18, 2016 at 10:54 AM · dashboard configuration plugins test automation

Test Automation with Jenkins Plugin

Hi All,

We are trying to do a demo on test automation/ CI through dynaTrace.

What we've done:

  • Configured Jenkins
  • Be able to see Unit Test results in dynaTrace "test automation" dashlet.
  • Installed Jenkins plugin

Our major issues now is around how to integrate Jenkins with dynaTrace test results.

Downloaded and installed plugin.

Created dashboaded with test overview dasklet and able to see the dynatrace tests results .Our major issues now is around how to integrate Jenkins with dynaTrace test results.

c:\jenkins\workspace\DynatracePerformanceTesting>exit 0 
Sleeping for the configured delay of 10sec
Verify connection to dynaTrace Server REST interface ...
Connection successful, getting testruninfo for this build (2016-04-18_11-42-01)
Fetching XML Report from server
For debugging: XML report from dynaTrace Server: <?xml version="1.0" encoding="utf-8"?>
<dashboardreport name="Oracle and Sqlserver Metrics" version="6.3.0.1305" reportdate="2016-04-18T11:42:13.996+01:00" description="">
  <source name="Performance_UnitTest_Monitoring" filtersummary="last 7 days"></source>
  <data></data>
</dashboardreport>
No testrun found for build id 2016-04-18_11-42-01
No test run recorded by the configured dynaTrace server - skipping data collection
Finished: SUCCESS

On running from jenkins getting above error even on configuring the correct dashboard in configuration.Can you please guide me how to configure it?

jenkin.png

Regard

Sravan Kumar

jenkin.png (50.0 KiB)
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 Sonja C. · Apr 19, 2016 at 06:19 AM

Hi Sravan,

sorry for all your troubles with the Jenkins Plug-in! As Joe already indicated, there is a known issue in DT 6.3 reporting preventing Jenkins to retrieve the data.

Good news is that R&D is already working on fixing that issue and that we plan to push an updated version of the Jenkins plugin (using the official Test Automation API) very soon. In fact, the public beta is planed for end of this week.

Please follow this thread for more information: https://answers.dynatrace.com/idea/142151/jenkins-...

Sonja

Comment
Florian O.

People who like this

1 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 Sonja C. ♦ · Apr 21, 2016 at 02:21 PM 0
Share

Public beta is now available - see https://answers.dynatrace.com/idea/142151/jenkins-plug-in-update-feedback-wanted.html for more information!

avatar image

Answer by Joe H. · Apr 18, 2016 at 04:07 PM

If you are running dT v6.3, there is a known issue with pulling test results back thru the plugin. All the purepath data is still inside Dynatrace, just the summary data wont show up in the Jenkins console.

A fix for this problem is being developed, I suggest you subscribe to the Jenkins plugin page for updates.

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 Shafiz H. · Apr 19, 2016 at 03:28 AM 0
Share

Yes we are using DT 6.3 version

avatar image

Answer by Andreas G. · Apr 18, 2016 at 01:07 PM

Hi

In your Jenkins Job - do you actually execute Unit Tests that have the Dynatrace Agent Injected? In order for the Plugin to pull Dynatrace Test Results you have to have execute Unit, or WebAPI Tests that are picked up by Dynatrace. You may want to check out my latest youtube tutorials where I cover the basics of Test Automation with Dynatrace: https://www.youtube.com/watch?v=TXPSDpy7unw∈dex=...

Andi

Comment

People who like this

0 Show 2 · 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 Shafiz H. · Apr 19, 2016 at 03:28 AM 0
Share

thx for the reply.

From jenkins we trigger power shell script to create testrunid based on the build(version,major,minor etc parameters) information.

Using that testrunid we run the Performance unit test's

We have created a dashboard with test automation dashlet.To view the dashboard i tried using the dynatrace plugin in the jenkin i was able to connect to RESTAPI but i dont see any results show in jenkins.

Can You share me sample code to send build information using Dynatrace agent plugin.

iam not good at maven and ant. i tried but it fails.Please let me know easy way of doing it.

Please provide me the link where i get the latest plugin.

avatar image Shafiz H. · Apr 19, 2016 at 06:10 AM 0
Share

After creating test result dashlet not able see the results but when i enable Print XML(for dubugging) i can see the result fetched from dynatrace for that dash board in console out put.but no results shown in graphs.

Can you please help on this?

jenkinsdynatracseconfig.png

console.png

dynatrace-test-automation-dashlet.png

and even at the end of console out out i see below message:

 
                  
  1. No testrun found for build id 2016-04-19_04-41-04
  2. No test run recorded by the configured dynaTrace server - skipping data collection
  3. Finished: SUCCESS

Regards

Sravan Kumar

jenkinsdynatracseconfig.png (71.4 kB) console.png (134.1 kB) dynatrace-test-automation-dashlet.png (57.6 kB)

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

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to add custom column for a dashlet like:adding Buffer gets and Physical reads

Need help ! Test automation with jenkins plugin

How to view the Unit Test ran with different versions in Load test Overview.

Test Automation displaying minimum value as 0.0 for purpath

Purepath missing for exsiting tests after upgrade from 6.2 to 6.3

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