zoukankan      html  css  js  c++  java
  • wireshark配合jmeter测试webservice接口

    1.首先,获取本地和接口的ip,以便设置过滤

    2.wireshark设置过滤

    ip.dst==192.168.0.101 and ip.src==61.147.124.120 and http 

    3.执行py文件并捕获请求

     捕捉到的soap请求

    复制soap请求

    <soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <getMobileCodeInfoResponse xmlns="http://WebXml.com.cn/">
    <getMobileCodeInfoResult>13888888888</getMobileCodeInfoResult>
    </getMobileCodeInfoResponse>
    </soap:Body>
    </soap:Envelope>

    另外,也可通过firbug查看ip

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:operation soapAction="http://WebXml.com.cn/getMobileCodeInfo" style="document"/>
    <soap:Body>
    <getMobileCodeInfoResponse xmlns="http://WebXml.com.cn/">
    <getMobileCodeInfoResult>13888888888</getMobileCodeInfoResult>
    </getMobileCodeInfoResponse>
    </soap:Body>
    </soap:Envelope>

     

    4.jmeter中添加http信息头、soap请求、断言、查看结果树

  • 相关阅读:
    混合背包
    庆功会(多重背包)
    商店选址问题(dij)(未完成)
    城市问题(dij)
    最短路径问题(dijkstra)
    城市问题(Floyd)
    商店选址问题(Floyd)
    差值中位数(二分答案+判定中位数)
    CF448C Painting Fence(分治)
    字符串+数论(扩展欧拉定理)
  • 原文地址:https://www.cnblogs.com/uncleyong/p/6893482.html
Copyright © 2011-2022 走看看