• 线程组_Jmeter完成文件的列表获取


    1.

    添加线程组

     2.登录都是通用的

    3. 添加信息头文件

     4.正则表达式提取token

    5,添加HTTP请求

    6.添加请求头文件

    7.查看结果树

    8.获取结果树里指定的数据 转为json 查看

    {
        "status":"ok",
        "data":
        {
            "count":203,
            "files":
            [
                {
                    "fileId":44237,
                    "parentId":null,
                    "trashId":null,
                    "parentIds":"-",
                    "layer":0,
                    "filePath":"/",
                    "fileName":"$fileName}",
                    "fileSize":88,
                    "thumb":null,
                    "folder":false,
                    "fileVersion":1578887349620,
                    "fileAction":"upload",
                    "createrId":102,
                    "createrName":"亚萌",
                    "createTime":"2020-01-13 11:49:09",
                    "updateUserName":null,
                    "updateTime":"2020-01-13 11:49:09",
                    "fsFileName":"group1/M00/01/1F/rBKWoF4b6LWAOfOGAAAAWEJ6kOI449.csv"
                },
                {
                    "fileId":44242,
                    "parentId":null,
                    "trashId":null,
                    "parentIds":"-",
                    "layer":0,
                    "filePath":"/",
                    "fileName":"00.jpg",
                    "fileSize":57266,
                    "thumb":"group1/M00/01/22/rBKWoF4lil2AYQSVAABUNQjJDRE784.jpg",
                    "folder":false,
                    "fileVersion":1579518554370,
                    "fileAction":"edit",
                    "createrId":102,
                    "createrName":"亚萌",
                    "createTime":"2020-01-15 19:51:53",
                    "updateUserName":"亚萌",
                    "updateTime":"2020-01-20 19:09:14",
                    "fsFileName":"group1/M00/01/22/rBKWoF4lilqAPl49AADfsvwewfM768.jpg"
                },
              9.比例如何获取 fileID所有得数值呢?获取其中一个fileID的数值

    10.添加后置处理器-》json extractor 注意添加的http请求的节点

     -1 表示取所有的

  • 相关阅读:
    Windows10下Linux系统的安装和使用//TODO
    RSS
    详解Javascript中的原型与原型链
    《你不知道的Javascript》学习笔记 //TODO
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 F
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 E
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 D
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 B
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 C
    南昌大学航天杯第二届程序设计竞赛校赛网络同步赛 A
  • 原文地址:https://www.cnblogs.com/JacquelineQA/p/12402858.html
Copyright © 2020-2023  润新知