hyb
2025-11-07 cadac0a99d87c53805a07f3b4ca7fd11e524fe4a
新增齐鲁pad笼位更新操作压测脚本
8 files added
6 files modified
95 ■■■■■ changed files
.idea/.gitignore 8 ●●●●● patch | view | raw | blame | history
.idea/archive.iml 33 ●●●●● patch | view | raw | blame | history
.idea/inspectionProfiles/Project_Default.xml 6 ●●●●● patch | view | raw | blame | history
.idea/inspectionProfiles/profiles_settings.xml 6 ●●●●● patch | view | raw | blame | history
.idea/misc.xml 4 ●●●● patch | view | raw | blame | history
.idea/modules.xml 8 ●●●●● patch | view | raw | blame | history
.idea/vcs.xml 7 ●●●●● patch | view | raw | blame | history
测试组/手册/SQLmap使用教程.docx patch | view | raw | blame | history
测试组/脚本/登录获取token/.idea/WuXi.iml 3 ●●●● patch | view | raw | blame | history
测试组/脚本/登录获取token/.idea/misc.xml 5 ●●●● patch | view | raw | blame | history
测试组/脚本/登录获取token/.idea/vcs.xml 6 ●●●●● patch | view | raw | blame | history
测试组/脚本/登录获取token/TestData/userinfo.xlsx patch | view | raw | blame | history
测试组/脚本/登录获取token/获取用户token.py 7 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本 @ 88a42c 2 ●●● patch | view | raw | blame | history
.idea/.gitignore
New file
@@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
.idea/archive.iml
New file
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
  <component name="FacetManager">
    <facet type="django" name="Django">
      <configuration>
        <option name="rootFolder" value="$MODULE_DIR$/测试组/Test_platform/Interface_automation/backend" />
        <option name="settingsModule" value="backend/settings.py" />
        <option name="manageScript" value="$MODULE_DIR$/测试组/Test_platform/Interface_automation/backend/manage.py" />
        <option name="environment" value="&lt;map/&gt;" />
        <option name="doNotUseTestRunner" value="false" />
        <option name="trackFilePattern" value="migrations" />
      </configuration>
    </facet>
  </component>
  <component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/测试组/Test_platform/Interface_automation/backend" isTestSource="false" />
      <excludeFolder url="file://$MODULE_DIR$/测试组/脚本/登录获取token/.venv" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
  <component name="PyDocumentationSettings">
    <option name="format" value="PLAIN" />
    <option name="myDocStringFormat" value="Plain" />
  </component>
  <component name="TemplatesService">
    <option name="TEMPLATE_CONFIGURATION" value="Django" />
  </component>
  <component name="TestRunnerService">
    <option name="PROJECT_TEST_RUNNER" value="py.test" />
  </component>
</module>
.idea/inspectionProfiles/Project_Default.xml
New file
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
  <profile version="1.0">
    <option name="myName" value="Project Default" />
    <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
  </profile>
</component>
.idea/inspectionProfiles/profiles_settings.xml
New file
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
  <settings>
    <option name="USE_PROJECT_PROFILE" value="false" />
    <version value="1.0" />
  </settings>
</component>
.idea/misc.xml
New file
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (登录获取token)" project-jdk-type="Python SDK" />
</project>
.idea/modules.xml
New file
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/.idea/archive.iml" filepath="$PROJECT_DIR$/.idea/archive.iml" />
    </modules>
  </component>
</project>
.idea/vcs.xml
New file
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="" vcs="Git" />
    <mapping directory="$PROJECT_DIR$/测试组/脚本/造数脚本" vcs="Git" />
  </component>
</project>
测试组/手册/SQLmap使用教程.docx
Binary files differ
测试组/脚本/登录获取token/.idea/WuXi.iml
@@ -2,9 +2,10 @@
<module type="PYTHON_MODULE" version="4">
  <component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$">
      <excludeFolder url="file://$MODULE_DIR$/.venv" />
      <excludeFolder url="file://$MODULE_DIR$/venv" />
    </content>
    <orderEntry type="jdk" jdkName="Python 3.11" jdkType="Python SDK" />
    <orderEntry type="jdk" jdkName="Python 3.12 (登录获取token)" jdkType="Python SDK" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>
测试组/脚本/登录获取token/.idea/misc.xml
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" />
  <component name="Black">
    <option name="sdkName" value="Python 3.12 (登录获取token)" />
  </component>
  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (登录获取token)" project-jdk-type="Python SDK" />
</project>
测试组/脚本/登录获取token/.idea/vcs.xml
New file
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
  </component>
</project>
测试组/脚本/登录获取token/TestData/userinfo.xlsx
Binary files differ
测试组/脚本/登录获取token/获取用户token.py
@@ -8,7 +8,7 @@
}
def get_Token():
    url = "http://192.168.7.127:8083/sys/login"
    url = "http://192.168.7.104:8081/sys/login"
    headers = {
        "content-type":"application/json; charset=UTF-8"
    }
@@ -22,12 +22,13 @@
        username = aes_encrypt(user["username"], "abcdefgh12345678", "12345678abcdefgh")
        password = aes_encrypt(user["password"], "abcdefgh12345678", "12345678abcdefgh")
        # 构造请求体
        params = {"code": "1234","username": username, "password": password }
        params = {"code": "","username": username, "password": password,}
        try:
            response = requests.post(url=url, headers=headers, json=params, verify=False)
            if response.status_code == 200:
                data = response.json()
                token = data["token"]
                token = data["refreshToken"]
                print(user["username"])
                if token:
                    # Token写入Excel文件
                    conftest.write_excel("TestData/userinfo.xlsx",index,"token",token)
测试组/脚本/造数脚本
@@ -1 +1 @@
Subproject commit 491989f164674f5eeba36a9a7747c1bab267b3f8
Subproject commit 88a42ca738e7b84aa7cb3a3e0b217397f93b84a7