Hi All,
We are trying to do a demo on test automation/ CI through dynaTrace.
What we've done:
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?
Regard
Sravan Kumar
Answer by Sonja C. ·
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
Public beta is now available - see https://answers.dynatrace.com/idea/142151/jenkins-plug-in-update-feedback-wanted.html for more information!
Answer by Joe H. ·
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.
Answer by Andreas G. ·
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
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.
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?
dynatrace-test-automation-dashlet.png
and even at the end of console out out i see below message:
Regards
Sravan Kumar
jenkinsdynatracseconfig.png (71.4 kB) console.png (134.1 kB) dynatrace-test-automation-dashlet.png (57.6 kB)
JANUARY 15, 3:00 PM GMT / 10:00 AM ET
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