From ee3a0b2e2a42c65cb6d76e2e91ac0bb2d20afe8e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 22 Oct 2021 19:24:45 +0000 Subject: [PATCH] --- load/Stress devops.jmx | 231 ++++++++++++++++------------------------- 1 file changed, 89 insertions(+), 142 deletions(-) diff --git a/load/Stress devops.jmx b/load/Stress devops.jmx index 3156d5f..4fbdfde 100644 --- a/load/Stress devops.jmx +++ b/load/Stress devops.jmx @@ -40,6 +40,55 @@ + + + + Sec-Fetch-Mode + cors + + + Referer + ${scheme}://test.helloayanova.com/login + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.9,fr-CA;q=0.7,de;q=0.6,en-AU;q=0.4,ar-EG;q=0.3,fr-FR;q=0.1 + + + Origin + ${scheme}://test.helloayanova.com + + + DNT + 1 + + + Accept + application/json + + + Content-Type + application/json + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0 + + + Sec-Fetch-Dest + empty + + + + continue @@ -55,13 +104,13 @@ Create test users for load run - + true false - {"login":"loadtest1","password":"loadtest1"} + {"login":"superuser","password":"l3tm3in"} = @@ -130,39 +179,52 @@ - - - 401 - - - Assertion.response_code - true - 8 - variable - - - - - TESTUSEREXISTSBEARERTOKEN + + JToken data.token JToken - keep in case go this way with if condition - - ${JMeterThread.last_sample_ok}==false - false - + + + + Accept + application/json + + + Authorization + Bearer ${JToken} + + + Content-Type + application/json + + + + + + true + 100 + - + + 1 + + 1 + createuserloopcount + + false + + + true false - {"login":"superuser","password":"l3tm3in"} + {"id":0,"concurrency":0,"active":true,"name":"loadtest${createuserloopcount}","roles":49514,"userType":1,"employeeNumber":null,"notes":null,"customerId":null,"headOfficeId":null,"vendorId":null,"wiki":null,"customFields":"{}","tags":[],"lastLogin":null,"password":"loadtest${createuserloopcount}","login":"loadtest${createuserloopcount}"} = @@ -171,7 +233,7 @@ 443 UTF-8 - /api/v8.0/auth + /api/v8.0/user/ POST true false @@ -181,122 +243,7 @@ - - - - - Sec-Fetch-Mode - cors - - - Referer - ${scheme}://test.helloayanova.com/login - - - Sec-Fetch-Site - same-origin - - - Accept-Language - en-US,en;q=0.9,fr-CA;q=0.7,de;q=0.6,en-AU;q=0.4,ar-EG;q=0.3,fr-FR;q=0.1 - - - Origin - ${scheme}://test.helloayanova.com - - - DNT - 1 - - - Accept - application/json - - - Content-Type - application/json - - - Accept-Encoding - gzip, deflate, br - - - User-Agent - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0 - - - Sec-Fetch-Dest - empty - - - - - - JToken - data.token - - JToken - - - - - - - Accept - application/json - - - Authorization - Bearer ${JToken} - - - Content-Type - application/json - - - - - true - 10 - - - - 1 - - 1 - createuserloopcount - - false - - - - true - - - - false - {"id":0,"concurrency":0,"active":true,"name":"loadtest${createuserloopcount}","roles":49514,"userType":1,"employeeNumber":null,"notes":null,"customerId":null,"headOfficeId":null,"vendorId":null,"wiki":null,"customFields":"{}","tags":[],"lastLogin":null,"password":"loadtest${createuserloopcount}","login":"loadtest${createuserloopcount}"} - = - - - - - 443 - - UTF-8 - /api/v8.0/user/ - POST - true - false - true - false - - - - - - @@ -305,8 +252,8 @@ false 1 - 10 - 1 + 100 + 10 1370726934000 1370726934000 false @@ -315,7 +262,7 @@ true - + true