-
Notifications
You must be signed in to change notification settings - Fork 1
/
http-post-reporting.xml
55 lines (46 loc) · 2.95 KB
/
http-post-reporting.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>
<scenario xmlns="urn:perfcake:scenario:7.0">
<run type="time" value="10000"/>
<generator class="DefaultMessageGenerator"
threads="${thread.count:10}"/>
<sequences>
<sequence id="counter" class="PrimitiveNumberSequence"/>
</sequences>
<sender class="HttpSender">
<target>http://localhost:8080/api/workitems</target>
<property name="method" value="POST"/>
<property name="expectedResponseCodes" value="201"/>
</sender>
<reporting>
<reporter class="ResponseTimeStatsReporter">
<property name="minimumEnabled" value="false"/>
<property name="maximumEnabled" value="false"/>
<destination class="ChartDestination">
<period type="time" value="1000"/>
<property name="name" value="Response Time"/>
<property name="group" value="rt"/>
<property name="yAxis" value="Response Time [ms]"/>
<property name="attributes" value="Result,Average"/>
</destination>
<destination class="ConsoleDestination">
<period type="iteration" value="10"/>
</destination>
</reporter>
</reporting>
<messages>
<!-- <message content='{"type":"system.bug", "fields":{"system.title":"test this @{counter} workitem", "system.owner":"tmaeder", "system.state":"open", "system.creator":"ldimaggi"}}'> -->
<!--<message content='{"data":{"attributes":{"system.state":"open","system.title":"test this @{counter} workitem","system.description":"Hello Description"},"relationships":{"baseType":{"data":{"id":"system.bug","type":"workitemtypes"}}},"type":"workitems"}}'> -->
<message content='{ "data": { "attributes": { "system.owner": "tmaeder", "system.state": "open", "system.title": "test this @{counter} workitem", "version": "1" }, "relationships": { "baseType": { "data": { "id": "userstory", "type": "workitemtypes" } } }, "type": "workitems" } }'>
<header name="HttpSender" value="POST" />
<header name="Content-Type" value="application/json" />
<header name="Accept" value="application/json" />
<header name="Authorization" value="Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJmdWxsTmFtZSI6IlRlc3QgRGV2ZWxvcGVyIiwiaW1hZ2VVUkwiOiIiLCJ1dWlkIjoiMzgwMjQzMzctZDM0Ny00Nzk4LTlmNWEtMmQ2NzBlYjI0NWI3In0.CJZq4RuK2d7Di6L49d6_M39dgg0FGLFbQetH2uzm35O8jfMtvKeBuPNIQpBLo8ToxILOktvg3CZPNYhxbMthmWDF8t37yDdTdVIrNrifdUio2K-iceswEH1ULf7WuguRoQnM_KZLynngKNLQ0tqWJdC2EqVQ2yhLNK-7vfxGHg0NAYFSh-U3eqOIBGuXabQ6khtZ7qHi-MsIuxdF4dI0eMLtwJIfxRyvgz_M8NXjGBsG76bRK1nyw85ABVfwzU2OcrAOfT2YRrE70sXUdXgopdCkHNPT1q0IAWoRpYtZ0-PQRjDvyGAuOj-DEH5WiCfBTXKuL1wurcVheK2mr9v3UA" />
<validatorRef id="simplePrintValidator"/>
</message>
</messages>
<validation>
<validator id="simplePrintValidator" class="RegExpValidator">
<property name="pattern" value=".*test this .* workitem.*"/>
</validator>
</validation>
</scenario>