• Jmeter30:正则表达式提取器,例题


    复杂的情况如下:

    比如我同时想获取 这里面的2个值

    {"code":"0","message":"success","data":[{"id":0,"userName":"性能测试学员0","password":null,"age":71,"gender":0,"phoneNum":"13788881187","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":1,"userName":"性能测试学员1","password":null,"age":13,"gender":0,"phoneNum":"13788881868","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":2,"userName":"性能测试学员2","password":null,"age":89,"gender":0,"phoneNum":"13788881370","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":3,"userName":"性能测试学员3","password":null,"age":52,"gender":0,"phoneNum":"13788881512","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":4,"userName":"性能测试学员4","password":null,"age":48,"gender":0,"phoneNum":"13788881773","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":5,"userName":"性能测试学员5","password":null,"age":22,"gender":0,"phoneNum":"13788881348","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":6,"userName":"性能测试学员6","password":null,"age":10,"gender":0,"phoneNum":"13788881309","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":7,"userName":"性能测试学员7","password":null,"age":53,"gender":0,"phoneNum":"13788881244","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":8,"userName":"性能测试学员8","password":null,"age":90,"gender":0,"phoneNum":"13788881236","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"},{"id":9,"userName":"性能测试学员9","password":null,"age":63,"gender":0,"phoneNum":"13788881455","email":"beihe@testfan.com","address":"北京市昌平区科星西路106号院(国风美唐花园综合楼)3号楼1111","createTime":"2021-05-09T12:30:28.680+0000","updateTime":"2021-05-09T12:30:28.680+0000"}]}

     

  • 相关阅读:
    Python中的try...except...finally
    JavaScript 实现双向队列并用此来测试一个单词是否为回文
    js 触发 change 事件
    MySQL8 重置改root密码及开放远程访问
    根据数组下标在MongoDB中修改数组元素
    pymongo CursorNotFound错误
    mongodb根据子项中的指标查找最小或最大值
    正则文本过滤时的一些注意事项
    github page更新后不生效
    Xpath同时选取不同属性的元素
  • 原文地址:https://www.cnblogs.com/zhenyu1/p/10876318.html
Copyright © 2020-2023  润新知