From a6a1e1cfab70809cce52db341208e6069e0c5cdc Mon Sep 17 00:00:00 2001 From: p65397124 Date: Tue, 1 Mar 2022 14:20:04 +0800 Subject: [PATCH] ADD file via upload --- xinjinyuan.jmx | 1471 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1471 insertions(+) create mode 100644 xinjinyuan.jmx diff --git a/xinjinyuan.jmx b/xinjinyuan.jmx new file mode 100644 index 0000000..406c695 --- /dev/null +++ b/xinjinyuan.jmx @@ -0,0 +1,1471 @@ + + + + + + false + true + true + + + + + + + + + + num + 6 + = + (num目前最大支持14) + + + path + C:/1_xinjinyuan_chy/papers.csv + = + + + taskName + Happy开源创新${__RandomString(8,qwertyuiopasdfghjklzxcvbnm123456789,)} + = + + + paperDesc + ${__RandomString(10,qwertyuiopasdfghjklzxcvbnm123456789,)} + = + + + reviewStartOn + ${__timeShift(yyyy-MM-dd HH:mm:ss,,P1d,,)} + = + + + reviewEndOn + ${__timeShift(yyyy-MM-dd HH:mm:ss,,P2d,,)} + = + + + now + ${__time(yyyy-MM-dd HH:mm:ss,time)} + = + + + competionName + xx竞赛${__RandomString(8,qwertyuiopasdfghjklzxcvbnm123456789,)} + = + + + + + + + + Content-Type + application/json;charset=UTF-8 + + + + + + + false + false + + + + + admin_username + admin_password + real_name + phone + enterpriseName + + + + 18774970063 + 12345678 + 0063admin + 18774970063 + 人工智能中心 + + + false + + + + continue + + false + 1 + + 1 + 1 + false + + + true + + + + false + + + import java.io.*; + +try { + BufferedWriter out = new BufferedWriter(new FileWriter("${path}")); + out.write("paperId"); + out.write(System.getProperty("line.separator")); + out.close(); + System.out.println("文件创建成功!"); +} catch (IOException e) { +} + + + + true + + + + false + {"login": "${admin_username}", "password": "${admin_password}", "autologin": 1} + = + + + + 117.50.100.12 + 49999 + http + utf-8 + /api/accounts/login.json + POST + true + false + true + false + + + + + + + + username + + + Assertion.response_data + false + 2 + + + + + true + + + + false + { +"contactName":"${real_name}", +"contactPhone":"${phone}", +"name":"${taskName}", +"description":"<p>新一代开源创新、产学研融合面向软件创新的调度系统。</p>", +"expertReview":true, +"bounty":11, +"taskModeId":2, +"collectionMode":1, +"publishMode":"1", +"collectingDays":1, +"choosingDays":3, +"makePublicDays":3, +"signingDays":3, +"payingDays":3, +"status":1, +"enterpriseName":"${enterpriseName}", +"categoryId":"7" +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/tasks/add + POST + true + false + true + false + + + + + + + + success + + + Assertion.response_data + false + 16 + + + + false + taskId + data":{"id":(.*?), + $1$ + + 0 + + + + false + + + ${__setProperty(taskId,${taskId},)} + + + + + + continue + + false + 1 + + ${num} + 1 + false + + + true + + + + + username + password + + + + 18774970067 + 12345678 + + + 18774970068 + 12345678 + + + 18774970010 + 12345678 + + + 18774970062 + 12345678 + + + 18774970065 + 12345678 + + + 18774970066 + 12345678 + + + 13300089084 + 12345678 + + + 13300089014 + 12345678 + + + 13300089081 + 12345678 + + + 13300089009 + 12345678 + + + 13357338141 + 12345678 + + + 13357338154 + 12345678 + + + 13300012031 + 12345678 + + + 13357338186 + 12345678 + + + true + + + + true + + + + false + {"login": "${username}", "password": "${password}", "autologin": 1} + = + + + + 117.50.100.12 + 49999 + http + utf-8 + /api/accounts/login.json + POST + true + false + true + false + + + + + + + + username + + + Assertion.response_data + false + 2 + + + + + "${taskId}"!="null" + false + + + + 500 + + + + true + + + + false + {"taskId":"${__property(taskId)}"} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/paper/${__property(taskId)}/agreement + POST + true + false + true + false + + + + + + + + success + + + Assertion.response_data + false + 16 + + + + + true + + + + false + {"content":"${username} auto test upload paper ${paperDesc}", +"files":"973,974", +"taskId":"${__property(taskId)}" +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/paper/ + POST + true + false + true + false + + + + + + + + success + + + Assertion.response_data + false + 16 + + + + false + paperId + data":{"id":(.*?), + $1$ + + 0 + + + + false + + + //FileWriter fstream = new FileWriter("C:/papers.txt", true); +FileWriter fstream = new FileWriter("${path}", true); +BufferedWriter out = new BufferedWriter(fstream); +out.write("${paperId}"); +out.write(System.getProperty("line.separator")); +out.close(); +fstream.close(); +log.info("paperId:" + ${paperId}) + + + + + + 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 + + + + + + + + + continue + + false + 1 + + 1 + 1 + false + + + true + + + + true + + + + false + {"login": "${admin_username}", "password": "${admin_password}", "autologin": 1} + = + + + + 117.50.100.12 + 49999 + http + utf-8 + /api/accounts/login.json + POST + true + false + true + false + + + + + + + + username + + + Assertion.response_data + false + 2 + + + + user_id + $.user_id + + 1396 + + + + + true + + + + false + { + "containerId": "${__property(taskId)}", + "containerName": "${taskName}", + "containerType": 1, + "criteriaOne": "每个评分项固定设置为100分", + "reviewStartOn": "${reviewStartOn}", + "reviewEndOn": "${reviewEndOn}", + "rule": "注:管理员可设置1-5个评分项及对应评分标准,每个评分项固定设置为100分", + "criteriaTwo": "每个评分项固定设置为100分", + "criteriaThree": "每个评分项固定设置为100分", + "criteriaFour": "每个评分项固定设置为100分", + "criteriaFive": "每个评分项固定设置为100分", + "status": 3 +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/taskRuleCriteria/editRuleAndCriteria + POST + true + false + true + false + + + + + + + $.message + 成功 + true + false + false + false + + + + + 200 + + + Assertion.response_code + false + 2 + + + + + true + + + + false + { + "assignorId": ${user_id}, + "containerId": "${__property(taskId)}", + "containerName": "${taskName}", + "containerType": 1, + "expertIds": "191,192,193,194", + "status": 3 +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/taskExpert/assignExperts + POST + true + false + true + false + + + + + + + $.message + 专家指派成功 + true + false + false + false + + + + + 200 + + + Assertion.response_code + false + 2 + + + + + true + + + + false + { + "assignorId": ${user_id}, + "containerId": "${__property(taskId)}", + "containerName": "${taskName}", + "containerType": 1, + "expertIds": "103,120,72,9,93,117,96,102,135,13,132,91,5,15,99,24,133,31,80,82", + "status": 3 +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/taskRuleCriteria/publishExpertsAndRules?containerId=${__property(taskId)}&containerType=1&status=-1 + PUT + true + false + true + false + + + + + + + $.message + 专家指派成功 + true + false + false + false + + + + + 200 + + + Assertion.response_code + false + 2 + + + + + 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 + + + + + + + + continue + + false + ${num} + + 1 + 1 + false + + + true + + + + ${path} + UTF-8 + paperId, + true + , + true + true + true + shareMode.all + + + + true + + + + false + {"login": "${admin_username}", "password": "${admin_password}", "autologin": 1} + = + + + + 117.50.100.12 + 49999 + http + utf-8 + /api/accounts/login.json + POST + true + false + true + false + + + + + + + + username + + + Assertion.response_data + false + 2 + + + + + 800 + + + + true + + + + false + { +"pass":"1" +} + = + + + + 117.50.100.12 + 8066 + http + utf-8 + /api/paper/admin/complainPaper/${paperId} + POST + true + false + true + false + + + + + + + + success + + + Assertion.response_data + false + 16 + + + + false + taskId + data":{"id":(.*?), + $1$ + + 0 + + + + + + continue + + false + 1 + + 1 + 1 + false + + + true + + + + true + + + + false + {"login": "${admin_username}", "password": "${admin_password}", "autologin": 1} + = + + + + 117.50.100.12 + 49999 + http + utf-8 + /api/accounts/login.json + POST + true + false + true + false + + + + + + + + username + + + Assertion.response_data + false + 2 + + + + + + + + false + 开源中心 + = + true + competition[org_name] + + + false + 开源竞赛大比拼 + = + true + competition[title] + + + false + 开源生态 + = + true + competition[subtitle] + + + false + 2022-01-21 20:00 + = + true + competition[start_time] + + + false + 2022-01-22 21:00 + = + true + competition[end_time] + + + false + 2021-12-29 18:00 + = + true + competition[enroll_begin_time] + + + false + 2022-01-20 21:00 + = + true + competition[enroll_end_time] + + + false + 2022-01-29 21:00 + = + true + competition[review_time] + + + false + 2022-02-04 19:00 + = + true + competition[result_time] + + + false + test + = + true + competition[content] + + + + 117.50.100.12 + 8080 + http + utf-8 + /admin/competitions + POST + true + false + true + false + + + + + + + + + Content-Type + application/x-www-form-urlencoded;charset=UTF-8 + + + Host + 117.50.100.12:8080 + + + Connection + keep-alive + + + + + + + 302 + + + Assertion.response_code + false + 16 + + + + + + + + false + 开源中心 + = + true + org_name + + + false + test + = + true + title + + + false + 开源创新大赛 + = + true + subtitle + + + false + 2022-01-19 10:00 + = + true + start_time + + + false + 2022-01-20 10:00 + = + true + end_time + + + false + 2022-01-21 10:00 + = + true + enroll_begin_time + + + false + 2022-01-22 10:00 + = + true + enroll_end_time + + + false + 2022-01-23 10:00 + = + true + review_time + + + false + 2022-01-24 10:00 + = + true + result_time + + + false + test + = + true + content + + + + 117.50.100.12 + 8080 + http + UTF-8 + /admin/competitions + POST + true + false + true + false + + + + + + + + 302 + + + Assertion.response_code + false + 16 + + + + + + Content-Type + application/x-www-form-urlencoded;charset=UTF-8 + + + Host + 117.50.100.12:8080 + + + Connection + keep-alive + + + + + + + + + + true + 开源中心 + = + true + competition[org_name] + + + true + ${competionName} + = + true + competition[title] + + + true + 开源创新大赛 + = + true + competition[subtitle] + + + true + ${__time(yyyy-MM-dd,time)} 10:00 + = + true + competition[start_time] + + + true + ${__timeShift(yyyy-MM-dd,,P2d,,)} 10:00 + = + true + competition[end_time] + + + true + ${__timeShift(yyyy-MM-dd,,P3d,,)} 10:00 + = + true + competition[enroll_begin_time] + + + true + ${__timeShift(yyyy-MM-dd,,P4d,,)} 10:00 + = + true + competition[enroll_end_time] + + + true + ${__timeShift(yyyy-MM-dd,,P5d,,)} 10:00 + = + true + competition[review_time] + + + true + ${__timeShift(yyyy-MM-dd,,P6d,,)} 10:00 + = + true + competition[result_time] + + + true + test + = + true + competition[content] + + + + 117.50.100.12 + 8080 + http + UTF-8 + /admin/competitions + POST + false + true + true + false + + + + + + + + 302 + + + Assertion.response_code + false + 16 + + + + + + + + 117.50.100.12 + 8080 + http + utf-8 + /admin/competitions/54/online_switch + DELETE + true + false + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 16 + + + + + + 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 + + + + + + + continue + + false + 1 + + 1 + 1 + false + + + true + + + + cd /root/autotest_chy && ls + 5000 + 173.15.15.83 + + Xjy_20220113_xjy + 22 + true + + true + false + root + + + + true + Select 1 + 5000 + + park + jdbc.mysql://109.1.4.61:3306/park-cloud + com.mysql.jdbc.Driver + + true + root123 + 0 + false + 10000 + DEFAULT + 60000 + root + + + + park + select * from sys_user limit 10; + park + + + Select Statement + Store as String + + + info + + + + 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 + + + + + + + +