From db2d72ab337906b1f61fd039643ae02d7bdf01bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jegors=20=C4=8Cemisovs?= Date: Tue, 27 Feb 2024 00:21:29 +0200 Subject: [PATCH] Add performance testing details and update test data Added section about performance testing in README.md and provided links to detailed reports. In addition, the test-data.csv used by jMeter has been updated with improved formatting for enhanced readability and clarity. --- README.md | 4 + jmeter/PerformanceTest.jmx | 260 ++++++++----------------------------- jmeter/test-data.csv | 41 +++--- 3 files changed, 81 insertions(+), 224 deletions(-) diff --git a/README.md b/README.md index 5a066ab..bc3fcae 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,7 @@ To run the Karate API tests, use the following command: ```bash mvn clean test -Dtest=TestRunner ``` + +### Performance Testing by Apache jMeter + +Load Test [Descriptive Summary/Conclusions](https://a.blazemeter.com/app/executive-summary/index.html?master_id=71758198&selectedTimeMeasure=milliseconds#/) and [Full Report](https://a.blazemeter.com/app/?public-token=N8EAygRaczgVrG5dVfzaiW08KETtECXvph3X6BDkXV6CoIi2pM#/accounts/1886840/workspaces/1958186/projects/2311430/masters/71758198/summary) diff --git a/jmeter/PerformanceTest.jmx b/jmeter/PerformanceTest.jmx index cd4fe1d..44f536e 100644 --- a/jmeter/PerformanceTest.jmx +++ b/jmeter/PerformanceTest.jmx @@ -11,12 +11,12 @@ , UTF-8 test-data.csv - false + true true true shareMode.all false - english_sentence,pig_latin_sentence + @@ -41,18 +41,60 @@ - - + + 1 + 1 + true continue - 150 - 15 - 10 - 15 - - - S - + + 1 + false + + + + The first request is necessary to wake up the server which may be in sleep mode since we have a free plan. + /pig-latin + true + POST + true + true + + + + false + { + "sentence": "warm-up request" +} + + = + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + + 200 + + + Assertion.response_code + false + 8 + + 6 /pig-latin @@ -65,7 +107,7 @@ false { - "sentence": "${english_sentence}" + "sentence": "${english}" } = @@ -76,7 +118,7 @@ $.sentence - ${pig_latin_sentence} + ${piglatin} true false false @@ -96,197 +138,7 @@ - - 100 - 500 - - - - - 200 - - - Assertion.response_code - false - 8 - - - - 40 - 10 - true - continue - - 20 - 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 - - - - - - - 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 - - - - - - - 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 - - - - 500 - false - - - - - false - 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 - - - - 1000 - false - - - - - false - false - - diff --git a/jmeter/test-data.csv b/jmeter/test-data.csv index 338c65c..9941119 100644 --- a/jmeter/test-data.csv +++ b/jmeter/test-data.csv @@ -1,20 +1,21 @@ -"apple","appleay" -"ear","earay" -"xray","xrayay" -"yttria","yttriaay" -"chair","airchay" -"stand","andstay" -"square","aresquay" -"equal","equalay" -"rhythm","ythmrhay" -"my","ymay" -"quick","ickquay" -"fox","oxfay" -"jumps","umpsjay" -"over","overay" -"lazy","azylay" -"dog","ogday" -"hello","ellohay" -"world","orldway" -"how are you","owhay areay ouyay" -"good morning","oodgay orningmay" +english,piglatin +apple,appleay +ear,earay +xray,xrayay +yttria,yttriaay +chair,airchay +stand,andstay +square,aresquay +equal,equalay +rhythm,ythmrhay +my,ymay +quick,ickquay +fox,oxfay +jumps,umpsjay +over,overay +lazy,azylay +dog,ogday +hello,ellohay +world,orldway +how are you,owhay areay ouyay +good morning,oodgay orningmay