From 80a1008b8db043ba6eb78a1f099df6dbcceda126 Mon Sep 17 00:00:00 2001 From: Anthony Gauthier Date: Thu, 29 Feb 2024 21:55:05 -0500 Subject: [PATCH] fix: modified sample-testplan, fixed startup issue with uninitialized map --- examples/example-testplan.jmx | 249 ------------------ examples/sample-testplan.jmx | 90 +++++++ .../jmeter/config/livechanges/SamplerMap.java | 1 + 3 files changed, 91 insertions(+), 249 deletions(-) delete mode 100644 examples/example-testplan.jmx create mode 100644 examples/sample-testplan.jmx diff --git a/examples/example-testplan.jmx b/examples/example-testplan.jmx deleted file mode 100644 index 737ba9a..0000000 --- a/examples/example-testplan.jmx +++ /dev/null @@ -1,249 +0,0 @@ - - - - - Created by NaveenKumar Namachivayam - QAInsights.com - false - true - false - - - - - - - - continue - - false - 1 - - 1 - 1 - false - - - true - Created by NaveenKumar Namachivayam - QAInsights.com - - - - - - - localhost - 7566 - - - /api/threads - GET - true - false - true - false - - - - - - - extract_ThreadGroupName - $[0].name - 1 - Error - - - - - - - - localhost - 7566 - - - /api/threads/${extract_ThreadGroupName} - GET - true - false - true - false - - - - - - - true - - - - false - { - "threadNum": -1, - "delay": 0 -} - = - - - - localhost - 7566 - - - /api/threads/${extract_ThreadGroupName} - POST - true - false - true - false - - - - - - - - - - localhost - 7566 - - - /api/properties - GET - true - false - true - false - - - - - - - true - - - - false - { - "myProp": "bar" -} - = - - - - localhost - 7566 - - - /api/properties - POST - true - false - true - false - - - - - - - - - - localhost - 7566 - - - /api/test/status - GET - true - false - true - false - - - - - - - - - - localhost - 7566 - - - /api/test/end - GET - true - false - true - false - - - - - - - - - - localhost - 7566 - - - /api/test/summary - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/examples/sample-testplan.jmx b/examples/sample-testplan.jmx new file mode 100644 index 0000000..ec5b387 --- /dev/null +++ b/examples/sample-testplan.jmx @@ -0,0 +1,90 @@ + + + + + true + + + + + + + Created by NaveenKumar Namachivayam - QAInsights.com + 10 + 30 + true + continue + + -1 + false + + + + + false + true + false + + + + 0 + 5000 + + + + + false + true + false + + + + 0 + 5000 + + + + + false + true + false + + + + 0 + 15000 + + + + + false + true + false + + + + 0 + 30000 + + + + + false + true + false + + + + 0 + 4000 + + + + + 7566 + + + + + + diff --git a/src/main/java/io/github/delirius325/jmeter/config/livechanges/SamplerMap.java b/src/main/java/io/github/delirius325/jmeter/config/livechanges/SamplerMap.java index 3844d8f..129881e 100644 --- a/src/main/java/io/github/delirius325/jmeter/config/livechanges/SamplerMap.java +++ b/src/main/java/io/github/delirius325/jmeter/config/livechanges/SamplerMap.java @@ -10,6 +10,7 @@ public class SamplerMap { public SamplerMap(){ this.map = new HashMap<>(); + this.rawMap = new HashMap<>(); } public void add(SampleResult sr) {