From e73d53240fb68f5990c800f29e483c36c994f642 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: Sat, 2 Aug 2025 11:22:04 +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 | 1086 ++++++++++++++++++++++---------------------- 1 file changed, 544 insertions(+), 542 deletions(-) diff --git a/mathmodenjoyer.jmx b/mathmodenjoyer.jmx index 2772813..1ce6143 100644 --- a/mathmodenjoyer.jmx +++ b/mathmodenjoyer.jmx @@ -31,6 +31,8 @@ + false + false @@ -41,7 +43,7 @@ false - + login_admin @@ -81,7 +83,7 @@ - + Test Plan Test Plan @@ -89,7 +91,7 @@ - + Test Plan Test Plan @@ -97,7 +99,7 @@ - + Test Plan Test Plan @@ -105,7 +107,7 @@ - + Test Plan Test Plan @@ -113,7 +115,7 @@ - + Test Plan Test Plan @@ -124,22 +126,22 @@ - + - + 1 0 0 - + 1000 4000.0 - + false @@ -242,7 +244,7 @@ - + false CSRF name="csrfmiddlewaretoken" value="(.*)" @@ -962,7 +964,7 @@ - + Test Plan Test Plan @@ -971,7 +973,7 @@ - + false @@ -1014,7 +1016,7 @@ false - SELECT%20*%20FROM%20users_data%20where%20login='user' + SELECT%20*%20FROM%20users%20where%20login='user' = true q @@ -1023,7 +1025,7 @@ - + false login_user "values":\[\[.*?,"(.*?)"," @@ -1033,7 +1035,7 @@ 1 - + false password_user "values":\[\[.*?",".*?","(.*?)"\]\] @@ -1045,7 +1047,7 @@ - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -1093,7 +1095,7 @@ - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -1155,7 +1157,7 @@ - + Detected the start of a redirect chain ${HOSTNAME} ${PORT} @@ -1349,7 +1351,7 @@ - + Test Plan Test Plan @@ -1358,13 +1360,13 @@ - + false - + @@ -1432,7 +1434,7 @@ - + Referer @@ -1472,7 +1474,7 @@ - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -1576,7 +1578,7 @@ - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -1626,411 +1628,6 @@ - - - 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/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 - - - - - - - false - user_num - /admin/auth/user/(\d+)/ - $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 - - - - ${HOSTNAME_INFLUX} - ${PORT_INFLUX} - ${PROTOCOL} - /write?db=test - true - POST - true - true - - - - false - users_data,login="${login_user}" password="${password_user}" - = - - - - - - - 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 - - - - - - - - - Test Plan - Test Plan - TF_UC00_Задержка - - - - - - - - false - - - - - - - Test Plan - Test Plan - TF_UC01_Авторизация_Админа - - - - - ${HOSTNAME} - ${PORT} - ${PROTOCOL} - /admin/auth/user/add/ - true - GET - true - false - - - - groovy @@ -2040,109 +1637,6 @@ vars.put("password_user", password) 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 - 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 - - - - - - - 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) @@ -2235,7 +1729,7 @@ vars.put("password_user", password) - + false user_num /admin/auth/user/(\d+)/ @@ -2469,14 +1963,14 @@ vars.put("password_user", password) false - users_data,login="${login_user}" password="${password_user}" + "users",login="${login_user}" password="${password_user}" = - + true @@ -2501,7 +1995,7 @@ vars.put("password_user", password) - + Test Plan Test Plan @@ -2510,7 +2004,515 @@ vars.put("password_user", password) - + + + + false + + + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Админа + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + /admin/auth/user/add/ + 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 + 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 + + + + + + + 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/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 + + + + + + + false + user_num + /admin/auth/user/(\d+)/ + $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 + + + + ${HOSTNAME_INFLUX} + ${PORT_INFLUX} + ${PROTOCOL} + /write?db=test + true + POST + true + true + + + + false + "users",login="${login_user}" password="${password_user}" + = + + + + + + + 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 + + + + + + + + + Test Plan + Test Plan + TF_UC00_Задержка + + + + + false @@ -2526,7 +2528,7 @@ vars.put("password_user", password) - + ${HOSTNAME} ${PORT} ${PROTOCOL} @@ -2591,7 +2593,7 @@ vars.put("password_user", password) - + Detected the start of a redirect chain ${HOSTNAME} ${PORT} @@ -2715,7 +2717,7 @@ vars.put("password_user", password) - + Test Plan Test Plan @@ -2749,7 +2751,7 @@ vars.put("password_user", password) - + false saveConfig