51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1830|回复: 3
打印 上一主题 下一主题

[原创] loadrunner参数化问题!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-9-27 09:58:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用winsocket协议录制脚本。录制的c/s架构软件登陆过程,请问如何参数化。data.ws内容如下:
;WSRData 2 1

send  buf0 200
        "POST /Service.svc HTTP/1.1\r\n"
        "Content-Type: application/soap+xml; charset=utf-8\r\n"
        "Host: bj-t-004:81\r\n"
        "Content-Length: 1125\r\n"
        "Expect: 100-continue\r\n"
        "Accept-Encoding: gzip, deflate\r\n"
        "Connection: Keep-Alive\r\n"
        "\r\n"

recv  buf1 25
        "HTTP/1.1 100 Continue\r\n"
        "\r\n"

send  buf2 1125
        "<s:Envelope xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a=\""
        "http://www.w3.org/2005/08/addressing\"><s:Header><a:Action s:mustUnderstan"
        "d=\"1\">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action><a"
        ":MessageID>urn:uuid:67ebd2d6-42e9-4add-b370-59b6796caa8d</a:MessageID><a:R"
        "eplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Addres"
        "s></a:ReplyTo><a:To s:mustUnderstand=\"1\">http://bj-t-004:81/Service.svc<"
        "/a:To></s:Header><s:Body><t:RequestSecurityToken Context=\"uuid-7b1d0910-7"
        "5fe-4794-898a-8dd429742f6c-1\" xmlns:t=\"http://schemas.xmlsoap.org/ws/200"
        "5/02/trust\"><t:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</t:"
        "TokenType><t:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue"
        "</t:RequestType><t:KeySize>256</t:KeySize><t:BinaryExchange ValueType=\" h"
        "ttp://schemas.xmlsoap.org/ws/2005/02/trust/tlsnego\" EncodingType=\"http:/"
        "/docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1."
        "0#Base64Binary\">FgMBAEEBAAA9AwFOgCtfZ+fShU8vayFm0rQZTltB8Wy5QD/abazjEnbed"
        "gAAFgAEAAUACgAJAGQAYgADAAYAEwASAGMBAA==</t:BinaryExchange></t:RequestSecur"
        "ityToken></s:Body></s:Envelope>"
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-9-27 10:00:06 | 只看该作者
recv  buf3 1795
        "HTTP/1.1 200 OK\r\n"
        "Date: Mon, 26 Sep 2011 07:35:55 GMT\r\n"
        "Server: Microsoft-IIS/6.0\r\n"
        "X-AspNet-Version: 4.0.30319\r\n"
        "Content-Length: 1586\r\n"
        "Cache-Control: private\r\n"
        "Content-Type: application/soap+xml; charset=utf-8\r\n"
        "\r\n"
        "<s:Envelope xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a=\""
        "http://www.w3.org/2005/08/addressing\"><s:Header><a:Action s:mustUnderstan"
        "d=\"1\">http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue</a:Action><"
        "a:RelatesTo>urn:uuid:67ebd2d6-42e9-4add-b370-59b6796caa8d</a:RelatesTo></s"
        ":Header><s:Body><t:RequestSecurityTokenResponse Context=\"uuid-7b1d0910-75"
        "fe-4794-898a-8dd429742f6c-1\" xmlns:t=\"http://schemas.xmlsoap.org/ws/2005"
        "/02/trust\" xmlns:u=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-"
        "wss-wssecurity-utility-1.0.xsd\"><t:BinaryExchange ValueType=\" http://sch"
        "emas.xmlsoap.org/ws/2005/02/trust/tlsnego\" EncodingType=\"http://docs.oas"
        "is-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64B"
        "inary\">FgMBAkQCAABGAwFOgCtbblDvjJ5xEJztNisRXQYS449ySX7SixXOqTBttiBkEAAABb"
        "G0/PrmBIiduMXGw+676ZBs0dIw7WknJn2wYgAEAAsAAfIAAe8AAewwggHoMIIBVaADAgECAhDF"
        "IeQV500UpkbEX/GHoHlfMAkGBSsOAwIdBQAwEjEQMA4GA1UEAxMHQmFpSW5mbzAeFw0xMTA5MD"
        "kwMDA1NDJaFw0zOTEyMzEyMzU5NTlaMBIxEDAOBgNVBAMTB0JhaUluZm8wgZ8wDQYJKoZIhvcN"
        "AQEBBQADgY0AMIGJAoGBANQpySSsQ92n0Z0NC718PiCgYirYZvwoYuH/KE5AgI6VIP/z/vqL5n"
        "HLDFDCfI9OgsxOcsv1r1gUjxplAvH+YjzbAcWk7Ued1SgC/fpwPVS9w5+7Vun+nT30cLvKHww9"
        "EeAaWldSZWc+cxYfHM3ft04CDWYudhb/bG+fVwZjp+YBAgMBAAGjRzBFMEMGA1UdAQQ8MDqAEN"
        "i3dCGYl8NEkKfYlTzZPeShFDASMRAwDgYDVQQDEwdCYWlJbmZvghDFIeQV500UpkbEX/GHoHlf"
        "MAkGBSsOAwIdBQADgYEAL9PnAgJPvAPo54aVKxT3UsdLB9SxkHGOr+yrNm+h5dwCSBO7cwCuC/"
        "w6qRKB2R1WKCHnOoCmsqfgZkq+bLVL4tiCzTUjrakr3nYQd5EMna2gx1zGhf5je5UtFl65KfE5"
        "iiQP2N3SPval1a2LhANKvarRj8MuvJKmBpyI8AjbsWkOAAAA</t:BinaryExchange></t:Req"
        "uestSecurityTokenResponse></s:Body></s:Envelope>"

send  buf4 176
        "POST /Service.svc HTTP/1.1\r\n"
        "Content-Type: application/soap+xml; charset=utf-8\r\n"
        "Host: bj-t-004:81\r\n"
        "Content-Length: 1206\r\n"
        "Expect: 100-continue\r\n"
        "Accept-Encoding: gzip, deflate\r\n"
        "\r\n"

recv  buf5 25
        "HTTP/1.1 100 Continue\r\n"
        "\r\n"
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2011-9-27 10:07:30 | 只看该作者

loadrunner参数化问题!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2011-9-27 10:08:06 | 只看该作者
求高手指点!谢谢!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-16 07:34 , Processed in 0.071011 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表