• 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 Erik O. · Jun 18, 2014 at 09:54 PM · continuous delivery

No testrun found for build id

Hello,

I almost have all the pieces together for test automation.

I could use some help finishing up.

This part looks right:

[DtSetTestInformation] Setting Test Information for ACBS-PHX: Version 1.0.0.2014-06-18_02-21-52 Milestone 1 on agent group UI-WS-NG      [echo] Set Test Information with status : true

Then my JMeter runs with a server agent listening and I collect pure paths.

Waiting for 10 more seconds to get test run info ID from dynaTrace... 5 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 No test run recorded by the configured dynaTrace server - skipping data collection Finished: SUCCESS 

My best guess is that the starting "1.0.0.2014-06-18_02-21-52" doesn't match up with the ending "2014-06-18_02-21-52"

but I couldn't find that data in the pure path anywhere.

Full log is below.

 

Thanks,'

--Erik

Started by user [8mha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==[0manonymous Building in workspace C:\Program Files (x86)\Jenkins\jobs\DynaTraceTestAutomation\workspace [jmeter] $ cmd.exe /C '"ant.bat -file build2.xml -DetoBuildId=2014-06-18_02-21-52 SetTestInformationForTestAutomation && exit %%ERRORLEVEL%%"' Buildfile: C:\Progra~2\Jenkins\jobs\DynaTraceTestAutomation\workspace\target\jmeter\build2.xml

[8mha:AAAAYB+LCAAAAAAAAP9b85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xryQksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mSetTestInformationForTestAutomation: [DtSetTestInformation] Setting Test Information for ACBS-PHX: Version 1.0.0.2014-06-18_02-21-52 Milestone 1 on agent group UI-WS-NG      [echo] Set Test Information with status : true

[8mha:AAAAYB+LCAAAAAAAAP9b85aBtbiIQSGjNKU4P0+vJLE4u1gvPjGvRM8xr8S/tCQ5PzfVL78ktUuDM0uMry+HiYGhoohBCqo8OT+vOD8nVc8ZQoMUMkAAI0hhAQAUXUdTXgAAAA==[0mBUILD SUCCESSFUL Total time: 0 seconds [workspace] $ C:\Progra~2\maven\apache-maven-3.1.1\bin\mvn.bat verify [INFO] Scanning for projects... [INFO]                                                                         [INFO] ------------------------------------------------------------------------ [INFO] Building DynaTraceTestAutomation 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [8mha:AAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==[0m[INFO] --- tomcat7-maven-plugin:2.0:exec-war-only (tomcat-run) @ JMeterTest --- [INFO] [8mha:AAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==[0m[INFO] --- jmeter-maven-plugin:1.9.0:jmeter (jmeter-tests) @ JMeterTest --- [INFO]  [INFO] ------------------------------------------------------- [INFO]  P E R F O R M A N C E    T E S T S [INFO] ------------------------------------------------------- [INFO]  [INFO]  [info]  [debug] JMeter is called with the following command line arguments: -n -t C:\Program Files (x86)\Jenkins\jobs\DynaTraceTestAutomation\workspace\src\test\jmeter\WebLinkHTTPRequestDefaults.jmx -l C:\Program Files (x86)\Jenkins\jobs\DynaTraceTestAutomation\workspace\target\jmeter\results\WebLinkHTTPRequestDefaults.jtl -d C:\Program Files (x86)\Jenkins\jobs\DynaTraceTestAutomation\workspace\target\jmeter -j C:\Program Files (x86)\Jenkins\jobs\DynaTraceTestAutomation\workspace\target\jmeter\logs\WebLinkHTTPRequestDefaults.jmx.log [info] Executing test: WebLinkHTTPRequestDefaults.jmx [info] Completed Test: WebLinkHTTPRequestDefaults.jmx [INFO]  [INFO] Test Results: [INFO]  [INFO] Tests Run: 1, Failures: 0 [INFO]  [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:37.049s [INFO] Finished at: Wed Jun 18 02:24:34 PDT 2014 [INFO] Final Memory: 18M/162M [INFO] ------------------------------------------------------------------------ Sleeping for the configured delay of 10sec Verify connection to dynaTrace Server REST interface ... Connection successful, getting testruninfo for this build (2014-06-18_02-21-52) Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 0 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 1 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 2 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 3 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 4 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 Waiting for 10 more seconds to get test run info ID from dynaTrace... 5 try out of 6 Fetching XML Report from server No testrun found for build id 2014-06-18_02-21-52 No test run recorded by the configured dynaTrace server - skipping data collection Finished: SUCCESS


 

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.

7 Replies

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

Answer by Rick B. · Jun 18, 2014 at 11:40 PM

Hi Erik,

I had the same problem a little while ago, this is the part of the Test Automation Plugin for Jenkins page I missed:

In the build that is executed, the DtSetTestInformation call to the dynaTrace Server has set the BUILD_ID provided by Jenkins as the build number.

So essentially I needed to make this change to my Ant task:

<DtSetTestInformation

          ...

          versionBuild="${BUILD_ID}"

         ...

        </DtSetTestInformation>

Hope that helps,

Rick B

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.

avatar image

Answer by Erik O. · Jun 19, 2014 at 12:14 AM

 

Thanks for the quick reply, but I think I have that part in place.

SetTestInformationForTestAutomation: [DtSetTestInformation] Setting Test Information for ACBS-PHX: Version 1.0.0.2014-06-18_06-08-03 Milestone 1 on agent group UI-WS-NG      [echo] Set Test Information with status : true

In the above output, my BUILD_ID is there, and it is prefixed with "1.0.0."

Is that ok?  Could someone check to see if their BUILD_ID has this same prefix?

 

Thanks,

--Erik


 

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 Rick B. · Jun 19, 2014 at 12:31 AM 0
Share

That should be fine, can you verify you're getting data for your tests in the Test Automation dashlet after your test runs?

avatar image

Answer by Wolfgang G. · Jun 19, 2014 at 02:03 AM

Hi Erik,

The 1.0.0 is the versionMajor/versionMinor/versionRevision field to the DtSetTestInformation call (would be somewhere in the pom.xml). It shouldn't affect the BUILD_ID though - please verify, as Rick said, if you're able to see the build ID on data points in the test automation dashlet

Thanks

Wolfgang

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.

avatar image

Answer by Erik O. · Jun 19, 2014 at 05:46 AM

No, I cannot see data in the test automation dashlet, but there is plenty of recent data in "Tagged web requests" and pure paths, etc...

I don't see any licensing errors, but I'm using Test Center Edition, Agent Version: 5.6.0.5802.

Jenkins is kicking off JMeter test with DT tags, and the dt data is collected by a java agent on the websphere server.

--Erik

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 Rick B. · Jun 19, 2014 at 06:06 AM 0
Share

Hi Erik,

That's why it's not working - the Jenkins plugin works off of the Test Automation dashlet data.  You will need to follow the instructions in this tutorial, adding a dummy Unit test to initiate Test Automation and also adding the parameter category="load" to the dtsettestinformation task in Ant.  After that the only other thing you might be missing is a saved dashboard with the Test Automation dashlet on it, referenced by the Jenkins plugin configuration.

Rick B

avatar image Rick B. Rick B. · Jun 19, 2014 at 06:07 AM 0
Share

Forgot to link the tutorial: Dummy unit test for Test Automation dashlet

avatar image

Answer by Andreas G. · Jun 20, 2014 at 12:02 AM

FYI - I just met Erik here at PERFORM DAY Atlanta and will sit down with him to discuss his open Test Automation Questions. Will update the forum with our findings

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.

avatar image

Answer by Andreas G. · Jun 20, 2014 at 06:46 AM

We just had a conversation. The challenge here is that Erik uses JMeter tests where we wants individual Web Requests executed by JMeter analyzed similar to what we do with Unit Tests. Right now the Test Automation Dashlet only supports Unit Tests as well as Browser-driven tests where the Test Automation Dashlet automatically analysis metrics such as DB Count, Exception Count, ...

We have an RFE we are working on to also do this for individual "Web Unit Test PurePaths" executed by JMeter. This is not available in the moment though

We have however discussed a strategy to get these metrics out of dynaTrace for every test Erik runs in their automation environment. Here is a little writeup of the steps to get performance data such as #SQL, #Exceptions, out of dynaTrace for every executed JMeter test.

 

The global idea is to

a) Create a Dashboard that contains the dashlets you are interested in, e.g: Tagged Web Requests, Database, Exceptions

b) Save that Dashboard on the dT Server, e.g: “JMeterResults”

c)  After you run your load test you execute the REST Call to query that dashboard for a specific test you just executed. On the REST URL you can specify the Dashboard (e.g: JMeterResult) as well as the Filter for a particular Test Name (e.g: YourLoginTest)

  1. http://yourserver:8020/rest/management/dashboard/JMeterResults?filter=tw:NA?YourLoginTest

 

Here are more links to the community

  • Querying Dashboards: https://community.compuwareapm.com/community/display/DOCDT56/Server-+and+Clientside+XML+Reporting#Server-andClientsideXMLReporting-TheRequestInterface
  • Filter Options for REST Interface: https://community.compuwareapm.com/community/display/DOCDT56/REST+Filters

 

Hope this helps 

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 Rick B. · Jun 20, 2014 at 06:56 AM 0
Share

Is there something that wouldn't work about getting the JMeter test into the "load" category of the TA dashlet, then pulling the data into Jenkins?

avatar image

Answer by Andreas G. · Jun 20, 2014 at 07:14 AM

Getting "Load Tests" it into the Test Automation Dashlet is really just a shortcut to open the Load Testing Dashboard when double clicking on it. Right now we do not calculate metrics for Load Tests therefore the only advantage you get is that you have your load test listed there.

As mentioned - we want to improve our capabilities to also calculate measures for HTTP based testing

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 Rick B. · Jun 20, 2014 at 07:17 AM 0
Share

Ah, thanks - I didn't realize.  Good to know

roman.spitzbart@dynatrace.com

Thanks,

Rick B

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

2 People are following this question.

avatar image avatar image

Related Questions

Instrumenting Groovy Rails (Tomcat) from Eclipse

Jenkins -- Jmeter -- Automation with Maven scripts

Borland SilkPerformer Integration

How do we add timers to Selenium - Web Driver?

Sending email on completion of test run

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