Forum Discussion

matt_kuhn's avatar
matt_kuhn
Occasional Contributor
10 years ago

Need to add a header to Web tests for use with dynatrace

We currently use dynaTrace for performance testing. I want to be able to use our testcomplete tests with dynatrace but I cant seem to find a way to edit the header for each particular test. All of our tests are keyword tests but if I need to do this with scripting i can. I just dont know where to start. 

 

Below is a dynatrace sample header. I would like to be able to state NA=(testcomplete test 1) so i would have to make this unique for each test. 

 

 

 

X-dynaTrace Header Possible Key-Value Pairs

The table lists possible key-value pairs. They can be provided in any order, separated with a semicolon.

Key

Description

Usage

NA

Test Name. Metrics for requests with the same name will be aggregated (You can execute as many tests as you'd like (within the same testRun), but remember to give them different names if they are not testing the same thing)

Required

TR

TestRunId, from a registered test run (see REST API POST testruns).

Required

RC

Expected Response Code. If the test results in any other response code, the test is marked as failed.

Optional. The default is 200.

X-dynaTrace Header Sample

X-dynaTrace: NA=SampleTestName;TR=7a0520fc-eda9-4f78-a8fa-4cb7d04ac8b8;RC=200
No RepliesBe the first to reply