Giter VIP home page Giter VIP logo

dynatrace-appmon-tfs-integration-plugin's Introduction

Dynatrace AppMon TFS/VSTS Test Automation Plugin

Integration of Dynatrace within your TFS/VSTS build.

Dynatrace can instrument the Unit and Integration tests and does the Test Automation APM magic: Test Automation Explained

The results flow back to your TFS/VSTS build. You can even configure this extension to fail your build when Dynatrace detects regression issues.

Note: The instrumentation itself is not covered by this extension.

Get Started

It is an important prerequisite that the unit/performance tests which you execute via the TFS or VSTS build are instrumented by Dynatrace first.

For dotNET

see .NET Agent Configuration

This means installing and configuring the Dynatrace Agent on the different build target machines. Tests are often executed by the following processes, but you need to figure out what applies for your environment.

  • vstest.console.exe
  • vstest.executionengine.x86.exe
  • QTAgent.exe
  • QTAgent32.exe,
  • QTAgent_35.exe
  • QTAgent32_35.exe,
  • QTAgent_40.exe
  • QTAgent32_40.exe
  • testhost.exe
  • testhost_x86.exe

Important Note: When you use Fakes in your integration tests, MS also uses a profiler which kicks out the Dynatrace profiler. So, that won't work.

For Java

see Java Agent Configuration

This means installing the Dynatrace Agent on the different build target machines. But configuration needs to be done when the JVM starts which will execute your tests. For a project which uses Maven, it can be done like this:

  <profiles>
    <profile>
      <id>with-dynatrace</id>
      <properties>
        <dt_agent_path>/opt/dynatrace-6.5/agent/lib64/libdtagent.so</dt_agent_path>
        <dt_agent_name>Backend_JUNIT_TESTS</dt_agent_name>
        <dt_server>localhost:9998</dt_server>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <argLine>-agentpath:"${dt_agent_path}"=name=${dt_agent_name},server=${dt_server}</argLine>
            </configuration>
          </plugin>

The build step in TFS/VSTS might look like this:

Maven Build Task Configuration

Configure Build

After installing the extension, you will notice two new Build tasks within the Test section.

Add Tasks Dialog

Add the Dynatrace Register Testrun task first in the Build Definition. Before you actually perform the unit or performance tests. This step will register the testrun within Dynatrace via a REST call and will add metadata from the build.

Register Dynatrace Testrun Task

You need to configure the endpoint via a Generic Service Endpoint which you can select in the drop-down afterwards. You will need to point to the REST service API of you Dynatrace installation which is located by default on port 8021 and has the uri /api/v1.

Dynatrace Service Endpoint

Add the Dynatrace Collect Testrun Results task to the Build Definition after the tests were executed. You don't need to configure much as it will detect all it needs from the Dynatrace Register Testrun task. It does depend on this first task, so it will fail if you don't configure the first one.

The only thing which you might change is the behavior when Dynatrace detects Degraded or Volatile tests.

Collect Dynatrace Testrun Results Task

Visualisation in TFS/VSTS

After you run the build with this extension configured, you will notice an extra Dynatrace Summary section on the Build Overview. As well as a Dynatrace Test Automation tab which provides you all the details.

Dynatrace Summary

Release notes

1.0.0

  • First public version

2.4.4

2.4.11

  • Released to Visual Studio Marketplace

Created by RealDolmen. All info on https://github.com/Dynatrace/Dynatrace-TFS-Integration-Plugin Also available via the MarketPlace: https://marketplace.visualstudio.com/items?itemName=realdolmen.dynatrace-test-automation

dynatrace-appmon-tfs-integration-plugin's People

Contributors

danieldrahnak avatar dynatrace-paul-anderson avatar heydenb avatar ingohackl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynatrace-appmon-tfs-integration-plugin's Issues

Extension removed (?) from Visual Studio Marketplace

This extension appears to have been available on the Visual Studio Marketplace for TFS/VSTS, but no longer appears to be available. Could it be returned? Installing through the marketplace is the supported method at many organizations for installing / updating third-party extensions.

Link to releases

Extend documentation to provide a link to available releases for those users that are not too familiar with using github. See e.g.Jenkins plugin

DT_SERVICE_ENDPOINT_ID not set

Hi,
I've been trying to use this plugin for AppMon v7.0 and TFS v17.2

I get the problem that the environment variable is not set in Registertestrun.

This is where it stops.

if (-not $env:DT_SERVICE_ENDPOINT_ID){
Write-Host "##vso[task.logissue type=error;]This task can only be used in combination with the -Dynatrace Register Testrun- task which should be executed first!"
exit 1
}

I am using the release for AppMon v7.0

Improve version meta-data

In stead of BUILDID maybe retrieve it from a customizable environment variable. So it can be read from the specific project files via another plugin

Improve UI of details tab

Split results by status: passed, volatile, degraded, ...
Try to use more space
If possible direct link to Dynatrace client

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.