-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHiringSample.jmx
More file actions
841 lines (836 loc) · 62.5 KB
/
HiringSample.jmx
File metadata and controls
841 lines (836 loc) · 62.5 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Hiring Sample Testplan">
<stringProp name="TestPlan.comments">This testplan executes the hiring sample scenario as a multi-user performance load test</stringProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="Benutzer definierte Variablen">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
</TestPlan>
<hashTree>
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User defined variables <-- EDIT THIS ONLY">
<collectionProp name="Arguments.arguments">
<elementProp name="userPasswordCSVFile" elementType="Argument">
<stringProp name="Argument.name">userPasswordCSVFile</stringProp>
<stringProp name="Argument.value">C:\hiring_jmeter\csv\UserPassword.csv</stringProp>
<stringProp name="Argument.desc">Full path to CSV file that contains a list of comma separated user,password combinations</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="outputDir" elementType="Argument">
<stringProp name="Argument.name">outputDir</stringProp>
<stringProp name="Argument.value">C:\hiring_jmeter\output</stringProp>
<stringProp name="Argument.desc">Directory to store logs and results</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="targetServer" elementType="Argument">
<stringProp name="Argument.name">targetServer</stringProp>
<stringProp name="Argument.value">cpd-icp4badeploy.apps.ocp4-cl-i37.performance.de.ibm.com</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<stringProp name="Argument.desc">CPD route URL</stringProp>
</elementProp>
<elementProp name="targetPort" elementType="Argument">
<stringProp name="Argument.name">targetPort</stringProp>
<stringProp name="Argument.value">443</stringProp>
<stringProp name="Argument.desc">CPD route port</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="targetProtocol" elementType="Argument">
<stringProp name="Argument.name">targetProtocol</stringProp>
<stringProp name="Argument.value">https</stringProp>
<stringProp name="Argument.desc">CPD route protocol</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="bawInstance" elementType="Argument">
<stringProp name="Argument.name">bawInstance</stringProp>
<stringProp name="Argument.value">baw-instance1</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<stringProp name="Argument.desc">BAW instance name</stringProp>
</elementProp>
<elementProp name="paAcronym" elementType="Argument">
<stringProp name="Argument.name">paAcronym</stringProp>
<stringProp name="Argument.value">HSS</stringProp>
<stringProp name="Argument.desc">Acronym of the process application that contains the benchmark process</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="processName" elementType="Argument">
<stringProp name="Argument.name">processName</stringProp>
<stringProp name="Argument.value">Standard HR Open New Position</stringProp>
<stringProp name="Argument.desc">Name of the benchmark process model</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="rounds" elementType="Argument">
<stringProp name="Argument.name">rounds</stringProp>
<stringProp name="Argument.value">1</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<stringProp name="Argument.desc">Number of test iterations (new Logon per iteration)</stringProp>
</elementProp>
<elementProp name="numThreads" elementType="Argument">
<stringProp name="Argument.name">numThreads</stringProp>
<stringProp name="Argument.value">100</stringProp>
<stringProp name="Argument.desc">Number of parallel threads</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="scenarioLoopCount" elementType="Argument">
<stringProp name="Argument.name">scenarioLoopCount</stringProp>
<stringProp name="Argument.value">1000</stringProp>
<stringProp name="Argument.desc">Number of times a thread executes the scenario per round</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="thinkTime" elementType="Argument">
<stringProp name="Argument.name">thinkTime</stringProp>
<stringProp name="Argument.value">5</stringProp>
<stringProp name="Argument.desc">Seconds to wait before each user interaction, e.g. ${__Random(500,2000)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="rampUpMultiplier" elementType="Argument">
<stringProp name="Argument.name">rampUpMultiplier</stringProp>
<stringProp name="Argument.value">0.5</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<stringProp name="Argument.desc">Multiplied with numThreads gives us the ramp up period in seconds</stringProp>
</elementProp>
</collectionProp>
</Arguments>
<hashTree/>
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="Target Server">
<stringProp name="HTTPSampler.domain">${targetServer}</stringProp>
<stringProp name="HTTPSampler.port">${targetPort}</stringProp>
<stringProp name="HTTPSampler.protocol">${targetProtocol}</stringProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.implementation">Java</stringProp>
</ConfigTestElement>
<hashTree/>
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="User / Password CSV data">
<stringProp name="TestPlan.comments">CSV File containing a list of username,password combinations</stringProp>
<stringProp name="delimiter">,</stringProp>
<stringProp name="fileEncoding"></stringProp>
<stringProp name="filename">${userPasswordCSVFile}</stringProp>
<boolProp name="quotedData">false</boolProp>
<boolProp name="recycle">true</boolProp>
<stringProp name="shareMode">shareMode.all</stringProp>
<boolProp name="stopThread">false</boolProp>
<stringProp name="variableNames">targetUser,targetPassword</stringProp>
<boolProp name="ignoreFirstLine">false</boolProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread group">
<stringProp name="ThreadGroup.num_threads">${numThreads}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__groovy(Integer.valueOf((Integer.valueOf(${numThreads}) * BigDecimal.valueOf(${rampUpMultiplier})).intValue()) ,)}</stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
<stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Schleifen-Controller (Loop Controller)">
<stringProp name="LoopController.loops">${rounds}</stringProp>
<boolProp name="LoopController.continue_forever">false</boolProp>
</elementProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get IAM token" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/idprovider/v1/auth/identitytoken</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">grant_type=password&username=${targetUser}&password=${targetPassword}&scope=openid</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="Content-Type" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/x-www-form-urlencoded</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Extract IAM Token" enabled="true">
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
<stringProp name="RegexExtractor.refname">iamToken</stringProp>
<stringProp name="RegexExtractor.regex">"access_token":"(.+?)"</stringProp>
<stringProp name="RegexExtractor.template">$1$</stringProp>
<stringProp name="RegexExtractor.default">NOT FOUND</stringProp>
<stringProp name="RegexExtractor.match_number">1</stringProp>
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
</RegexExtractor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Exchange the IAM token for a Platform UI token" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/v1/preauth/validateAuth</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value"></stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">username</stringProp>
<stringProp name="Header.value">${targetUser}</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">iam-token</stringProp>
<stringProp name="Header.value">${iamToken}</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Bearer" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">accessToken</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">accessToken</stringProp>
<stringProp name="JSONPostProcessor.match_numbers"></stringProp>
<stringProp name="JSONPostProcessor.defaultValues">NOTFOUND</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get BPM CSRF Token" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/system/login</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{"refresh_groups": true, "requested_lifetime": 7200}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">accept</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Authorization</stringProp>
<stringProp name="Header.value">Bearer ${accessToken}</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract CSRF Token" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">bpmCSRFToken</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">csrf_token</stringProp>
<stringProp name="JSONPostProcessor.match_numbers"></stringProp>
<stringProp name="JSONPostProcessor.defaultValues">NOTFOUND</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Scenario loop (per thread)" enabled="true">
<boolProp name="LoopController.continue_forever">true</boolProp>
<stringProp name="LoopController.loops">${scenarioLoopCount}</stringProp>
</LoopController>
<hashTree>
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Prepare test data" enabled="true">
<stringProp name="scriptLanguage">groovy</stringProp>
<stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="cacheKey">true</stringProp>
<stringProp name="script">import groovy.json.JsonOutput
// Define possible values
def positionTypes = ["New", "Existing"]
def locations = ["Atlanta", "Boston", "Chicago", "Cincinati", "Dallas", "Denver", "Des Moines"]
def departments = ["Finance", "Marketing", "Product Development", "Human Resources", "Sales", "Customer Service", "Business Partner Service", "Business Strategies", "Software Engineering"]
def employmentTypes = ["Full-time", "Part-time", "Contract"]
def payTypes = ["Exempt", "Non-Exempt"]
def experienceLevels = ["No prior experience", "1-2 years experience", "3-4 years experience", "5-10 years experience", "10+ years experience"]
def skills = ["Programming", "Design Patterns", "Data Structures", "Algorithms", "Version Control", "Quality Assurance", "Graphic Design", "Analysis", "Project Management", "Customer Service"]
def educations = ["Bachelor of Science (BS)", "Bachelor of Arts (BA)", "Bachelor of Engineering (B.Eng)", "Bachelor of Architecture (B.Arch)", "Master of Business Administration (MBA)", "Master of Science in Mathematics (MMath)", "Master of Science in Information Technology (MSc.IT)"]
def approvals = ["Approved", "Rejected"]
def jobTitles = ["Administrative Assistant","Administrative Coordinator","Administrative Director","Administrative Services Manager","Administrative Services Officer","Administrative Specialist","Administrative Support Manager","Administrative Support Supervisor","Administrator","Assistant Director","Billing Clerk","Client Relations Manager","Contract Administrator","Credit Clerk","Data Entry","Executive Assistant","Executive Services Administrator","Facility Manager","General Office Clerk","Human Resources Administrator","Information Clerk","Legal Secretary","Mail Clerk","Mail Clerk Leader","Mail Equipment Operator","Medical Secretary","Office Assistant","Office Clerk","Office Manager","Office Support Manager","Office Support Supervisor","Program Manager","Receptionist","Records Management Analyst","Secretary","Senior Administrative Analyst","Senior Administrative Coordinator","Senior Administrative Services Officer","Senior Coordinator","Senior Executive Assistant","Senior Special Events Coordinator","Senior Support Assistant","Senior Support Specialist","Special Events Coordinator","Special Programs Coordinator","Staff Assistant","Support Assistant","Support Specialist","Typist","Virtual Assistant","Virtual Receptionist","Word Processor","Advanced Business Intelligence Analyst/Project Manager","Application Technical Specialist","Associate Director Social Business Intelligence and Big Data","Business Intelligence Analyst","Business Intelligence and Foundation Services Leader","Business Intelligence and Reporting Analyst","Business intelligence Business Analyst","Business Intelligence Developer","Business Intelligence Director","Business Intelligence Engineer","Business Intelligence Solutions Developer","Business Objects Architect","Cognos Business Development Architect","Cognos Business Intelligence Developer","Consumer Insight Manager","Cyber Intelligence Watch Officer","Data Analyst - Business Intelligence","Data Architect","Data Warehouse and Business Intelligence Developer","Director of Business Intelligence and Data Warehouse","Enterprise Account Executive - Predictive Intelligence","Enterprise Intelligence Reporting Architect","Ethics Office Business Intelligence Officer","Federal - Business Intelligence Lead","Healthcare Business Intelligence Manager","Informatica Extract Transform Load (ETL) Developer","Information Delivery, Data Analyst","Information Technology Business Intelligence Platform Product Manager","Institutional Research Business Intelligence Systems Analyst","Integration/Business Intelligence Technical Lead","Java Developer - Big Data/Business Intelligence","Lead Analytics Engineer","Lead Business Intelligence Developer","Manager, Business Intelligence","Manager, Business Metrics/Analytics","Microstrategy Dashboard Developer and Architect","Oracle Technical Lead","PeopleSoft Business Analyst","Project Manager","Project Support, Business Intelligence and Fraud Agents","Report and Visualization Developer, Business Intelligence","SAP Business Intelligence Consultant","Senior Analyst, Retail Analytics and Reporting","Senior Competitive Intelligence Manager","Senior Developer with Pentaho Business Intelligence Suite","Senior Engineer Information Technology - Business intelligence Reporting","Senior Manager, Product Intelligence and Cost Analytics","Senior Market Intelligence Analyst","Senior Technical Consultant - Business Intelligence","Service Market Intelligence Manager","Social Media and Analytics Associate","Software Engineer - Data Warehouse/Business Intelligence","Solution Architect, Business Intelligence","Solutions Designer, Business Intelligence","SQL Business Intelligence and data Warehouse Manager","Strategic Business Manager","Subject Matter Expert - Business Intelligence Tools","Supply Chain Business Intelligence - Senior Consultant","Tableau Data Analytics Platform Lead"]
def firstNames = ["Violette", "Lacie", "Janna", "Robena", "Amos", "Anna", "Frida", "Mira", "Shaunda", "Deandre", "Leslee", "Cedric", "Eddy", "Tillie", "Leonel", "Landon", "Kala", "Mirian", "Barbera", "Marian", "Tiffanie", "Lindy", "Bernita", "Waylon", "Daisy", "Emil", "Bryan", "Claris", "Dori", "Lynsey", "Connie", "Maryann", "Brittanie", "Dudley", "Stephnie", "Fredricka", "Jean", "Van", "Noma", "Kandis", "Carina", "Cynthia", "Johana", "Carmelo", "Kenna", "Jolynn", "Rodrick", "Anita", "Beverly", "Scarlett", "Laquanda", "Celestina", "Ingeborg", "Darrin", "Corrine", "Fred", "Yetta", "Caroyln", "In", "Emmie", "Adelaide", "Annemarie", "Jennell", "Oretha", "Novella", "Wally", "Andrea", "Alexia", "Lemuel", "Heather", "Maurita", "Shila", "Georgetta", "Kum", "Nelly", "Ima", "Meagan", "Maryrose", "Adeline", "Fiona", "Jamila", "Penelope", "Denver", "Rhea", "Beatris", "Lesa", "Xochitl", "Virgil", "Gemma", "Shad", "Reynalda", "Jaleesa", "Parthenia", "Lida", "Valery", "Maximo", "Joleen", "Elsa", "Teressa", "Merry"]
def lastNames = ["Pellett", "Greensfelder", "Wyman", "Brasington", "Inscore", "Burkes", "Mckey", "Playford", "Pawlowski", "Schinke", "Oachs", "Gubser", "Kearny", "Haataja", "Brwon", "Carley", "Rayl", "Gothe", "Romaine", "Lichorat", "Murzyn", "Siwicki", "Kaniecki", "Koiner", "Farnum", "Glatzel", "Blomgren", "Zezima", "Wilund", "Vanostberg", "Velastegui", "Caper", "Baquet", "Grosshans", "Leasher", "Laughridge", "Disotell", "Dunlavy", "Brest", "Sideris", "Schanck", "Stackpole", "Pereiro", "Drowne", "Durrell", "Smolenski", "Heino", "Nery", "Yuan", "Pfeil", "Fabiano", "Meter", "Stoffel", "Trimnell", "Poolheco", "Waskiewicz", "Lundy", "Ganigan", "Harvard", "Torgeson", "Banvelos", "Hingston", "Drahos", "Wonnacott", "Barcelona", "Sulser", "Michelli", "Hufton", "Philbrook", "Petzel", "Glimpse", "Laso", "Wiater", "Oplinger", "Levien", "Coggin", "Morphis", "Birts", "Moncrieff", "Dejulio", "Campoli", "Gravert", "Caminos", "Brits", "Dumpert", "Demartini", "Buckbee", "Stouch", "Andrle", "Grambo", "Borrayo", "Deuschel", "Lairy", "Wala", "Kaid", "Furlow", "Dillinger", "Hassenger", "Doelger", "Pradier"]
// Set random values
def random = new Random()
vars.put("approval", approvals[random.nextInt(approvals.size())])
vars.put("candidateFirstName", firstNames[random.nextInt(firstNames.size())])
vars.put("candidateLastName", lastNames[random.nextInt(lastNames.size())])
vars.put("candidateSupervisorLastName", lastNames[random.nextInt(lastNames.size())])
vars.put("department", departments[random.nextInt(departments.size())])
vars.put("employmentType", employmentTypes[random.nextInt(employmentTypes.size())])
vars.put("experienceLevel", experienceLevels[random.nextInt(payTypes.size())])
vars.put("gmApproval", random.nextBoolean().toString())
vars.put("hiringManager", firstNames[random.nextInt(firstNames.size())] + " " + lastNames[random.nextInt(lastNames.size())])
vars.put("jobTitle", jobTitles[random.nextInt(jobTitles.size())])
vars.put("location", locations[random.nextInt(locations.size())])
vars.put("payLevel", (1 + random.nextInt(10)).toString())
vars.put("payType", payTypes[random.nextInt(payTypes.size())])
vars.put("personFirstName", firstNames[random.nextInt(firstNames.size())])
vars.put("personLastName", lastNames[random.nextInt(lastNames.size())])
vars.put("personSupervisorLastName", lastNames[random.nextInt(lastNames.size())])
vars.put("positionType", positionTypes[random.nextInt(positionTypes.size())])
// Pick random list of educations (at least 1)
def count = 1 + random.nextInt(educations.size())
def pickedLevels = educations.toList()
pickedLevels.shuffle(random)
pickedLevels = pickedLevels.take(count)
vars.put("educations", pickedLevels.join(","))
// Pick random list of skills (at least 1)
count = 1 + random.nextInt(skills.size())
pickedLevels = skills.toList()
pickedLevels.shuffle(random)
pickedLevels = pickedLevels.take(count)
vars.put("skills", pickedLevels.join(","))
def candidates = [
[name:"Bob Smith", qualifications:[education:["Bachelor of Arts (BA)"], skills:["Customer Service"], experience:"3-4 years experience"]],
[name:"Monica Tribiani", qualifications:[education:["Bachelor of Arts (BA)", "Master of Business Administration (MBA)"], skills:["Project Management", "Customer Service"], experience:"10+ years experience"]],
[name:"Emma Doe", qualifications:[education:["Bachelor of Engineering (B.Eng)", "Master of Science in Information Technology (MSc.IT)"], skills:["Quality Assurance", "Programming"], experience:"1-2 years experience"]],
[name:"Chandler Green", qualifications:[education:["Bachelor of Science (BS)", "Master of Science in Mathematics (MMath)"], skills:["Analysis"], experience:"5-10 years experience"]],
[name:"Moe Bryant", qualifications:[education:["Bachelor of Architecture (B.Arch)", "Master of Business Administration (MBA)"], skills:["Programming"], experience:"No prior experience"]],
[name:"Joey Phalange", qualifications:[education:["Bachelor of Arts (BA)"], skills:["Customer Service"], experience:"3-4 years experience"]],
[name:"Courtney Adams", qualifications:[education:["Bachelor of Arts (BA)", "Master of Business Administration (MBA)"], skills:["Quality Assurance"], experience:"3-4 years experience"]],
[name:"Jim Torvalds", qualifications:[education:["Bachelor of Engineering (B.Eng)", "Master of Science in Mathematics (MMath)"], skills:["Programming","Data Structures","Algorithms","Analysis"], experience:"5-10 years experience"]],
[name:"Billy Mars", qualifications:[education:["Bachelor of Architecture (B.Arch)"], skills:["Programming"], experience:"1-2 years experience"]],
[name:"Regina Bing", qualifications:[education:["Bachelor of Science (BS)", "Master of Science in Mathematics (MMath)"], skills:["Analysis","Programming","Algorithms"], experience:"10+ years experience"]]
]
vars.put("candidates", JsonOutput.toJson(candidates))</stringProp>
</JSR223Sampler>
<hashTree/>
<JSR223Timer guiclass="TestBeanGUI" testclass="JSR223Timer" testname="Think time" enabled="true">
<stringProp name="cacheKey">true</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="parameters"></stringProp>
<stringProp name="script">if (ctx.getCurrentSampler().getName() == "Prepare test data") {
return 0
} else {
return ${thinkTime} * 1000
}
</stringProp>
<stringProp name="scriptLanguage">groovy</stringProp>
</JSR223Timer>
<hashTree/>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Basic headers" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Authorization</stringProp>
<stringProp name="Header.value">Bearer ${accessToken}</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">BPMCSRFToken</stringProp>
<stringProp name="Header.value">${bpmCSRFToken}</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Start new hiring Process">
<stringProp name="TestPlan.comments">This request is used for the creation of new process instances</stringProp>
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/processes</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments">
<elementProp name="model" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">true</boolProp>
<stringProp name="Argument.value">${processName}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">model</stringProp>
</elementProp>
<elementProp name="container" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">true</boolProp>
<stringProp name="Argument.value">${paAcronym}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">container</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49587">201</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the process was started successfully</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract process instance id" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">processInstanceId</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$.id</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
<stringProp name="TestPlan.comments">Extract process instance id from REST response</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get claimed Task "Submit position request"" enabled="true">
<stringProp name="TestPlan.comments">Gets the only claimed Task for this process instance</stringProp>
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments">
<elementProp name="process_id" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">true</boolProp>
<stringProp name="Argument.value">${processInstanceId}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">process_id</stringProp>
</elementProp>
<elementProp name="states" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">true</boolProp>
<stringProp name="Argument.value">claimed</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">states</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task was successfully retrieved</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract id of claimed Task" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">currentTaskId</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$.user_task_instances[0].id </stringProp>
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
<stringProp name="TestPlan.comments">Extract id of only claimed Task from REST response</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Complete Task "Submit position request"" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks/${currentTaskId}/complete</stringProp>
<boolProp name="HTTPSampler.auto_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.BROWSER_COMPATIBLE_MULTIPART">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{
"output": [
{
"name": "requisition",
"data": {
"reqNum": "1141",
"requester": "${hiringManager}",
"empType": "${employmentType}",
"approvalNeeded": false,
"date": "2025-12-11T11:45:41.000",
"department": "${department}",
"location": "${location}",
"empNum": 1,
"gmApproval": "${gmApproval}",
"gmComments": "no comment",
"instanceId": ""
}
},
{
"name": "currentPosition",
"data": {
"positionType": "${positionType}",
"replacement": {
"lastName": "${personLastName}",
"firstName": "${personFirstName}",
"supervisor": "${personSupervisorLastName}",
"startDate": "2020-04-30T11:05:41.000",
"payLevel": "${payLevel}",
"payType": "${payType}",
"notes": "no notes necessary"
},
"jobTitle": "${jobTitle}",
"iId": "",
"qualifications": {
"education": ["${educations}"],
"skills": ["${skills}"],
"experience": "${experienceLevel}"
}
}
}
]
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">accept</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task was completed successfully</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get ready Tasks" enabled="true">
<stringProp name="TestPlan.comments">Gets all claimable Tasks of this process (should only be one)</stringProp>
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/rest/bpm/wle/v1/process/${processInstanceId}/taskSummary/active</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task list was successfully retrieved</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract id of ready Task" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">currentTaskId</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.tasks[0].tkiid</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
<stringProp name="TestPlan.comments">Extract only claimable task id from REST response</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If new position" enabled="true">
<stringProp name="IfController.condition">${__jexl3(vars.get("positionType") == "New")}</stringProp>
<boolProp name="IfController.evaluateAll">false</boolProp>
<boolProp name="IfController.useExpression">true</boolProp>
</IfController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Claim Task "Review new position request"" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks/${currentTaskId}/claim</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the claim succeeded</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Complete Task "Review new position request"" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks/${currentTaskId}/complete</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{
"output": [
{
"name": "requisition",
"data": {
"reqNum": "1141",
"requester": "${hiringManager}",
"empType": "${employmentType}",
"approvalNeeded": false,
"date":"2025-12-11T11:47:21.000",
"department": "${department}",
"location": "${location}",
"empNum": 1,
"gmApproval": "${gmApproval}",
"gmComments": "No comment",
"instanceId": ""
}
}
]
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">accept</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task was completed successfully</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If approved" enabled="true">
<stringProp name="IfController.condition">${__jexl3(vars.get("gmApproval") == "true")}</stringProp>
<boolProp name="IfController.evaluateAll">false</boolProp>
<boolProp name="IfController.useExpression">true</boolProp>
</IfController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get ready Tasks" enabled="true">
<stringProp name="TestPlan.comments">Gets all claimable Tasks of this process (should only be one)</stringProp>
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/rest/bpm/wle/v1/process/${processInstanceId}/taskSummary/active</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task list was successfully retrieved</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract id of ready Task" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">currentTaskId</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.tasks[0].tkiid</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
<stringProp name="TestPlan.comments">Extract only claimable task id from REST response</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
</hashTree>
</hashTree>
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If approved or no approval needed" enabled="true">
<stringProp name="IfController.condition">${__jexl3(vars.get("gmApproval") == "true" || vars.get("positionType") == "Existing")}</stringProp>
<boolProp name="IfController.evaluateAll">false</boolProp>
<boolProp name="IfController.useExpression">true</boolProp>
</IfController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Claim Task "Find position candidates"" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks/${currentTaskId}/claim</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the claim succeeded</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Complete Task "Find position candidates"" enabled="true">
<intProp name="HTTPSampler.concurrentPool">6</intProp>
<stringProp name="HTTPSampler.path">/${bawInstance}/bpm/user-tasks/${currentTaskId}/complete</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{
"output": [
{
"name": "candidates",
"data": ${candidates}
}
]
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP HeaderManager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">accept</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert successful" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="TestPlan.comments">Checks wether or not the task was completed successfully</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">1</intProp>
<stringProp name="Assertion.custom_message"></stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
</hashTree>
</hashTree>
</hashTree>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="Results Tree">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<threadCounts>true</threadCounts>
</value>
</objProp>
<stringProp name="filename">${outputDir}\run_${__time(YMDHMS)}.out</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="StatGraphVisualizer" testclass="ResultCollector" testname="Aggregate Graph">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<threadCounts>true</threadCounts>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
</hashTree>
</jmeterTestPlan>