From c80a4b73a163d032d18c3ef49cece160a8ef564d 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: Thu, 31 Jul 2025 07:34:01 +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 | 2140 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2140 insertions(+) create mode 100644 mathmodenjoyer.jmx diff --git a/mathmodenjoyer.jmx b/mathmodenjoyer.jmx new file mode 100644 index 0000000..e9e3f6d --- /dev/null +++ b/mathmodenjoyer.jmx @@ -0,0 +1,2140 @@ + + + + + + + + PROTOCOL + http + = + + + HOSTNAME + sandbox + = + + + PORT + 23232 + = + + + + + + + + + + true + false + + + + + + login_admin + admin + = + + + password_admin + admindev + = + + + + + + + + 1 + 1 + true + continue + + 1 + false + + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Админа + + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Пользователя + + + + + + Test Plan + Test Plan + TF_UC02_Создание_Пользователя + + + + + + Test Plan + Test Plan + TF_UC03_Создание_Тикета + + + + + + + + + + false + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + / + true + GET + true + false + + + + + + + + + Referer + http://sandbox:23232/tickets/ + + + 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} + /login/ + true + GET + true + false + + + + true + next + / + = + true + + + + + + + + + Referer + http://sandbox:23232/ + + + 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$ + CRSF ERROR + false + 1 + + + + + Detected the start of a redirect chain + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /login/ + true + POST + true + false + + + + false + username + ${login_admin} + = + true + + + false + password + ${password_admin} + = + true + + + true + next + / + = + true + + + false + csrfmiddlewaretoken + ${CSRF} + = + true + + + + + + + + + Referer + http://sandbox:23232/login/?next=/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + Origin + http://sandbox:23232 + + + 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 + + + + + + + 401 + + + 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 + query_encoded + /datatables_ticket_list/([^"]+) + $1$ + query_encoded ERROR + false + 1 + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + /datatables_ticket_list/${query_encoded} + true + GET + true + false + + + + false + draw + 1 + = + true + + + true + columns[0][data] + id + = + true + + + true + columns[0][name] + + = + true + + + true + columns[0][searchable] + true + = + true + + + true + columns[0][orderable] + false + = + true + + + true + columns[0][search][value] + + = + true + + + true + columns[0][search][regex] + false + = + true + + + true + columns[1][data] + ticket + = + true + + + true + columns[1][name] + + = + true + + + true + columns[1][searchable] + true + = + true + + + true + columns[1][orderable] + true + = + true + + + true + columns[1][search][value] + + = + true + + + true + columns[1][search][regex] + false + = + true + + + true + columns[2][data] + priority + = + true + + + true + columns[2][name] + + = + true + + + true + columns[2][searchable] + true + = + true + + + true + columns[2][orderable] + true + = + true + + + true + columns[2][search][value] + + = + true + + + true + columns[2][search][regex] + false + = + true + + + true + columns[3][data] + queue + = + true + + + true + columns[3][name] + + = + true + + + true + columns[3][searchable] + true + = + true + + + true + columns[3][orderable] + true + = + true + + + true + columns[3][search][value] + + = + true + + + true + columns[3][search][regex] + false + = + true + + + true + columns[4][data] + status + = + true + + + true + columns[4][name] + + = + true + + + true + columns[4][searchable] + true + = + true + + + true + columns[4][orderable] + true + = + true + + + true + columns[4][search][value] + + = + true + + + true + columns[4][search][regex] + false + = + true + + + true + columns[5][data] + created + = + true + + + true + columns[5][name] + + = + true + + + true + columns[5][searchable] + true + = + true + + + true + columns[5][orderable] + true + = + true + + + true + columns[5][search][value] + + = + true + + + true + columns[5][search][regex] + false + = + true + + + true + columns[6][data] + due_date + = + true + + + true + columns[6][name] + + = + true + + + true + columns[6][searchable] + true + = + true + + + true + columns[6][orderable] + true + = + true + + + true + columns[6][search][value] + + = + true + + + true + columns[6][search][regex] + false + = + true + + + true + columns[7][data] + assigned_to + = + true + + + true + columns[7][name] + + = + true + + + true + columns[7][searchable] + true + = + true + + + true + columns[7][orderable] + true + = + true + + + true + columns[7][search][value] + + = + true + + + true + columns[7][search][regex] + false + = + true + + + true + columns[8][data] + submitter + = + true + + + true + columns[8][name] + + = + true + + + true + columns[8][searchable] + true + = + true + + + true + columns[8][orderable] + true + = + true + + + true + columns[8][search][value] + + = + true + + + true + columns[8][search][regex] + false + = + true + + + true + columns[9][data] + time_spent + = + true + + + true + columns[9][name] + + = + true + + + true + columns[9][searchable] + true + = + true + + + true + columns[9][orderable] + true + = + true + + + true + columns[9][search][value] + + = + true + + + true + columns[9][search][regex] + false + = + true + + + true + columns[10][data] + kbitem + = + true + + + true + columns[10][name] + + = + true + + + true + columns[10][searchable] + true + = + true + + + true + columns[10][orderable] + true + = + true + + + true + columns[10][search][value] + + = + true + + + true + columns[10][search][regex] + false + = + true + + + true + order[0][column] + 0 + = + true + + + true + order[0][dir] + asc + = + true + + + false + start + 0 + = + true + + + false + length + 25 + = + true + + + true + search[value] + + = + true + + + true + search[regex] + false + = + true + + + false + _ + ${__time(,)} + = + true + + + + + + + + + Referer + http://sandbox:23232/tickets/ + + + Accept-Language + ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7 + + + X-Requested-With + XMLHttpRequest + + + 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 + application/json, text/javascript, */*; q=0.01 + + + + + + + + + 1000.0 + 5000.0 + + + + + + + false + + + + + + 1 + 0 + 0 + false + + source_selector + + + + ${__jexl3(${source_selector} == 0)} + false + true + + + + , + UTF-8 + C:/Users/king_/Desktop/users.csv + false + false + true + shareMode.all + false + login_user,password_user + + + + + ${__jexl3(${source_selector} == 1)} + false + true + + + + sandbox + 8086 + http + /query + true + GET + true + false + + + + false + test + = + true + db + + + false + SELECT%20*%20FROM%20grafana + = + true + q + + + + + + + false + login_user + "values":\[\[.*?,"(.*?)"," + $1$ + CRSF ERROR + false + 1 + + + + false + password_user + "values":\[\[.*?",".*?","(.*?)"\]\] + $1$ + CRSF ERROR + false + 1 + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + / + true + GET + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/ + + + 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 + + + + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + /login/ + true + GET + true + false + + + + true + next + / + = + true + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/ + + + 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$ + CRSF ERROR + false + 1 + + + + + Detected the start of a redirect chain + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /login/ + true + POST + true + + + + text/csv + C:\Users\king_\Desktop\users.csv + + + + + false + + + + false + username + ${login_user} + = + true + + + false + password + ${password_user} + = + true + + + true + next + / + = + true + + + false + csrfmiddlewaretoken + ${CSRF} + = + true + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/login/?next=/ + + + 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 + + + + + + + 401 + + + 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 + / + true + GET + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/login/?next=/ + + + 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 + + + + + + + + + 1000.0 + 5000.0 + + + + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Админа + + + + + false + + + + + + ${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 + + + + + + + + + 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 + + = + 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 + 2025-07-29 + = + true + + + true + date_joined_1 + 11:34:20 + = + true + + + false + initial-date_joined_0 + 2025-07-29 + = + true + + + true + initial-date_joined_1 + 11:34:20 + = + 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 = "C:/Users/king_/Desktop/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}" + = + + + + + + + + + + 1000.0 + 5000.0 + + + + + + + + Test Plan + Test Plan + TF_UC01_Авторизация_Пользователя + + + + + false + + + + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /tickets/submit/ + true + GET + true + true + true + false + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/tickets/submit/ + + + 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 + + + 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 + + + + + + false + CSRF + name="csrfmiddlewaretoken" value="(.*)" + $1$ + CSRF ERROR + false + 1 + + + + + Detected the start of a redirect chain + ${HOSTNAME} + ${PORT} + ${PROTOCOL} + utf-8 + /tickets/submit/ + true + POST + true + true + true + false + + + + false + csrfmiddlewaretoken + ${CSRF} + = + true + + + false + queue + 1 + = + true + + + false + title + ${__RandomString(10, abcdefghijklmnop,)} + = + true + + + false + body + ${__RandomString(10, abcdefghijklmnop,)} + = + true + + + false + priority + ${__Random(1, 5,)} + = + true + + + false + due_date + ${__time(yyyy-MM-dd HH:mm:ss)} + = + true + + + false + attachment + + = + application/octet-stream + true + + + false + submitter_email + ${__RandomString(10, abcdefghijklmnop,)}@gmail.com + = + true + + + false + assigned_to + + = + true + + + + + + + + + Referer + ${PROTOCOL}://${HOSTNAME}:${PORT}/tickets/submit/ + + + 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 + + + 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 + + + + + + + + 1000.0 + 5000.0 + + + + + + + 8881 + + + true + 1 + false + + false + true + true + true + false + 0 + + + + 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 + + + + + + + +