xiaobing0457 发表于 2012-9-13 11:52:48

录制CS结构系统登录脚本时,找不到用户名密码,无法参数化。

系统是Web(HTML)协议,录制完后,都是Web_custom_request函数,找不到登录的用户名和密码,无法进行参数化,分别用了Html和URL的方法,都是一样,求各位大侠帮忙看看什么情况。脚本如下:
Action()
{

web_custom_request("SingleService.svc",
                "URL=http://172.16.0.234/TSCService/SingleService.svc",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTTP",
                "EncType=text/xml; charset=utf-8",
                "Body=<s:Envelopexmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><SingleServiceByte xmlns=\"http://ST.TrafficSignalControl.Service.SingleStream\"><data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiID8+IDxQdWJTaW5nbGU+PG4+bi5Vc2VyTG9naW48L24+PGk+PCFbQ0RBVEFbXV0+PC9pPjxvPjwhW0NEQVRBW11dPjwvbz48ZD48IVtDREFUQVtHaWdhQW1FektpQTVOa1UzT1RJeE9EazJOVVZDTnpKRE9USkJOVFE1UkVRMVFUTXpNREV4TWtnQl1dPjwvZD48L1B1YlNpbmdsZT4=</data></SingleServiceByte></s:Body></s:Envelope>",
                LAST);

        web_custom_request("SingleService.svc_2",
                "URL=http://172.16.0.234/TSCService/SingleService.svc",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTTP",
                "EncType=text/xml; charset=utf-8",
                "Body=<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><SingleServiceByte xmlns=\"http://ST.TrafficSignalControl.Service.SingleStream\"><data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiID8+IDxQdWJTaW5nbGU+PG4+bi5zbFJPTEU8L24+PGk+PCFbQ0RBVEFbXV0+PC9pPjxvPjwhW0NEQVRBW11dPjwvbz48ZD48IVtDREFUQVtDaHhtWlRnd09qb3hPREkyT2pWa056UTZZVGhtWmpvME16TmpKVEV4RWdZSUFCSUNZVE1hQnhvRmNtOXNaVEU9XV0+PC9kPjwvUHViU2luZ2xlPg==</data></SingleServiceByte></s:Body></s:Envelope>",
                LAST);

        web_custom_request("GetTime.svc",
                "URL=http://172.16.0.234/TSCService/GetTime.svc",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t6.inf",
                "Mode=HTTP",
                "EncType=text/xml; charset=utf-8",
                "Body=<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><GetLocalTime xmlns=\"http://tempuri.org/\"/></s:Body></s:Envelope>",
                LAST);

        web_custom_request("SingleService.svc_3",
                "URL=http://172.16.0.234/TSCService/SingleService.svc",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t7.inf",
                "Mode=HTTP",
                "EncType=text/xml; charset=utf-8",
                "Body=<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><SingleServiceByte xmlns=\"http://ST.TrafficSignalControl.Service.SingleStream\"><data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiID8+IDxQdWJTaW5nbGU+PG4+bi5zbFJPQURKVU5DVElPTjwvbj48aT48IVtDREFUQVtdXT48L2k+PG8+PCFbQ0RBVEFbXV0+PC9vPjxkPjwhW0NEQVRBW0NoeG1aVGd3T2pveE9ESTJPalZrTnpRNllUaG1aam8wTXpOakpURXhFZ1lJQUJJQ1lUTT1dXT48L2Q+PC9QdWJTaW5nbGU+</data></SingleServiceByte></s:Body></s:Envelope>",
                LAST);

        web_concurrent_start(NULL);

        web_url("wmts",
                "URL=http://172.16.6.121:8080/geoserver/gwc/service/wmts?&service=WMTS&request=GetCapabilities&version=1.0.0",
                "Resource=1",
                "RecContentType=application/vnd.ogc.wms_xml",
                "Referer=",
                "Snapshot=t8.inf",
                LAST);
        web_concurrent_end(NULL);

        return 0;
}

云层 发表于 2012-9-13 18:26:28

问开发啊,你们可能客户端用户名和密码加密或者用别的协议登陆的啊
页: [1]
查看完整版本: 录制CS结构系统登录脚本时,找不到用户名密码,无法参数化。