• 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 Leo S. · Aug 14, 2014 at 05:52 AM · continuous delivery

How to set "category" using maven goals - Junit integration

Hello,

I've checked  the Automation Library for 5.x packaged for Maven 2  and Maven Plugin for dt 6.0 and couldn't find the category.field/method in the DtSetTestAutomation class.  My question is - how can I set the category to load or performance. I tried to use Jenkins' HTPP Request plugin as a  pre-build step but it didn't work either.

Thanks,

Leo

 

 

 

 

 

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 Leo S. · Aug 15, 2014 at 08:07 AM

 

Thank you, Wolfgang.

Leo

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 Leo S. · Aug 14, 2014 at 08:17 PM

Wolfgang,

Thank you for your prompt response. We're using dt5.6 and dtAutomation\3.5\dtAutomation.jar\com\dynatrace\diagnostics\automation\maven\ does not have the DtStartTest goal.  As you said this RESTful call was introduced in dt 5.5, but the Automation library packaged for maven (dtAutomation41ForMaven-7.zip) has never been updated. What should be our course of action?  Should we start using the latest version of the Automation library (dynatrace.diagnostics.automation_5.6.0.5713-1.zip)?

Thanks,

Leo

 

 

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 Wolfgang G. · Aug 14, 2014 at 08:58 PM 0
Share

Hi Leo,

I would ask you to use the jar file I linked above (https://community.compuwareapm.com/community/download/attachments/24248929/dtAutomation.jar?version=1&modificationDate=1406551556680&api=v2). This contains the startTest goal. Sorry for the inconvenience, I will make sure to update the other files

Thanks

Wolfgang

avatar image

Answer by Wolfgang G. · Aug 14, 2014 at 07:18 PM

Hi Leo,

Thanks for bringing this to our attention! In the meantime, you could use the the startTest goal in the Maven Plugin that uses the REST interface we introduced in dynaTrace 5.5. The caveat here is that you have to make sure the dtTestrunID is set as a system property on the JVM running your tests so the dynaTrace server knows which PurePaths belong to a certain test run.

A plugin configuration would then look like this:

 

	
		dynaTrace
		dtAutomation
		5.6
	
...

	org.apache.maven.plugins
	maven-failsafe-plugin
	2.17
	
		once
		-agentpath:"C:\Program Files\dynaTrace\dynaTrace 6.0.0\agent\lib64\dtagent.dll"=name=${dynaTrace.agentGroup}_${dynaTrace.profileName},server=${dynaTrace.collector}
		
			
				com.dynatrace.diagnostics.ci.testrunID
				${dtTestrunID}
			
		
	
	
		
			
				integration-test
				verify
			
		
	


	dynaTrace
	dtAutomation
	5.6
	
		
			DT_StartTest_IntegrationTest
			
				1
				2
				3
				5
				${BUILD_ID}
				performance
				${dynaTrace.profileName}
				admin
				admin
				http://localhost:8020
				
			
			pre-integration-test
			
				startTest
			
		
	

 

However, directly calling the REST interface with the required information should also work. Could share more detail (error message, log output,...) about what the problem was?

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

2 People are following this question.

avatar image 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