From eb22366c0c7580c79bcec0795ec4988fd7e8282e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A8=D0=B8=D0=BC=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Fri, 1 Aug 2025 13:56:41 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mathmodenjoyer.jmx | 788 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 752 insertions(+), 36 deletions(-) diff --git a/mathmodenjoyer.jmx b/mathmodenjoyer.jmx index 3e527fc..b7775d5 100644 --- a/mathmodenjoyer.jmx +++ b/mathmodenjoyer.jmx @@ -62,7 +62,7 @@ - + 1 1 true @@ -73,7 +73,7 @@ - + Test Plan Test Plan @@ -81,7 +81,7 @@ - + Test Plan Test Plan @@ -89,7 +89,7 @@ - + Test Plan Test Plan @@ -97,7 +97,7 @@ - + Test Plan Test Plan @@ -106,11 +106,24 @@ - - + + + + 1 + 0 + 0 + + + + 1000 + 4000.0 + + + + - + false @@ -931,15 +944,18 @@ - - 1000.0 - 5000.0 - + + + Test Plan + Test Plan + ___SCENARIO___ + + - + false @@ -1315,19 +1331,713 @@ - - 1000.0 - 5000.0 - + + + Test Plan + Test Plan + ___SCENARIO___ + + - + false - + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Админа + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + /system_settings + true + GET + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + /admin/auth/user/ + true + GET + true + false + + + + + + + groovy + + + true + def username = "user_" + org.apache.commons.lang3.RandomStringUtils.random(10, 'abcdefghijklmnopqrstuvwxyz') +vars.put("login_user", username) + +def password = org.apache.commons.lang3.RandomStringUtils.random(10, 'abcdefghijklmnopqrstuvwxyz') +vars.put("password_user", password) + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + + + + false + CSRF + name="csrfmiddlewaretoken" value="(.*)" + $1$ + CSRF ERROR + false + 1 + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /admin/auth/user/add/ + true + GET + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/add/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Origin + ${PROTOCOL}://${HOSTNAME}:${PORT} + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Cache-Control + max-age=0 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + + + + + 403 + + + Assertion.response_code + false + 12 + + + + 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 + + + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /admin/auth/user/add/ + true + POST + true + false + + + + false + csrfmiddlewaretoken + ${CSRF} + = + true + + + false + username + ${login_user} + = + true + + + false + password1 + ${password_user} + = + true + + + false + password2 + ${password_user} + = + true + + + true + _continue + Save and continue editing + = + true + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/add/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Origin + ${PROTOCOL}://${HOSTNAME}:${PORT} + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Cache-Control + max-age=0 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + + + + + 403 + + + Assertion.response_code + false + 12 + + + + 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 + + + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /admin/auth/user/ + true + GET + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/7/change/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Cache-Control + max-age=0 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + + + + false + user_num + <a href="/admin/auth/user/(\d+)/change/">${login_user}</a> + $1$ + user_num ERROR + false + 1 + + + + + Detected the start of a redirect chain + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /admin/auth/user/${user_num}/change/ + true + POST + true + false + + + + false + csrfmiddlewaretoken + ${CSRF} + = + true + + + false + username + ${login_user} + = + true + + + false + first_name + + = + true + + + false + last_name + + = + true + + + false + email + ${__RandomString(10,abcdefghijklmnop)}@gmail.com + = + true + + + false + is_active + on + = + true + + + false + is_staff + on + = + true + + + false + last_login_0 + + = + true + + + false + last_login_1 + + = + true + + + false + date_joined_0 + ${__time(yyyy-MM-dd)} + = + true + + + true + date_joined_1 + ${__time(HH:mm:ss)} + = + true + + + false + initial-date_joined_0 + ${__time(yyyy-MM-dd)} + = + true + + + true + initial-date_joined_1 + ${__time(HH:mm:ss)} + = + true + + + false + _save + Save + = + true + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/${login_${login_admin}}/auth/user/7/change/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Origin + ${PROTOCOL}://${HOSTNAME}:${PORT} + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Cache-Control + max-age=0 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 + + + + + + + 403 + + + Assertion.response_code + false + 12 + + + + 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 + + + + + + + + ${JMeterThread.last_sample_ok} + false + true + + + + true + + + if (prev.getResponseCode() != '403') { + def csvPath = "users.csv" + def login = vars.get("login_user") + def password = vars.get("password_user") + def csvLine = "${login},${password}\n" + + try { + def file = new File(csvPath) + file << csvLine + } catch (Exception e) { + log.error("Ошибка записи в файл: " + e.getMessage()) + throw e + } +} + groovy + + + + ${HOSTNAME} + 8086 + /write?db=test + true + POST + true + true + + + + false + users login="${login_user}",password="${password_user}" + = + + + + + + + + + + + Test Plan + Test Plan + ___SCENARIO___ + + + + + + + + false + + + @@ -1806,13 +2516,13 @@ vars.put("password_user", password) - + ${JMeterThread.last_sample_ok} false true - + true @@ -1833,7 +2543,7 @@ vars.put("password_user", password) groovy - + ${HOSTNAME} 8086 /write?db=test @@ -1855,21 +2565,24 @@ vars.put("password_user", password) - - 1000.0 - 5000.0 - + + + Test Plan + Test Plan + ___SCENARIO___ + + - + false - + - + Test Plan Test Plan @@ -1877,7 +2590,7 @@ vars.put("password_user", password) - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -1942,7 +2655,7 @@ vars.put("password_user", password) - + Detected the start of a redirect chain ${HOSTNAME} ${PORT} @@ -2065,15 +2778,18 @@ vars.put("password_user", password) - - 1000.0 - 5000.0 - + + + Test Plan + Test Plan + ___SCENARIO___ + + - + 8881