51Testing软件测试论坛

标题: web_custom_request中session_name如何关联 [打印本页]

作者: tianya6607    时间: 2012-11-22 10:40
标题: web_custom_request中session_name如何关联
代码如下:
web_custom_request("vdc_db_query.php_2",
                "URL=http://192.168.27.24/agc_cn/modules/ajax_dao/vdc_db_query.php",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.27.24/agc_cn/index.php",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                "Body=server_ip=192.168.27.24&session_name=1353547921_100110108452&ACTION=regCLOSER&format=text&user=1001&pass=5714249b586ccc50bacecc3a9dde9c8b&comments=MGRLOCK&closer_blended=0&campaign=INCALL&dial_methodRATIO&closer_choice=MGRLOCK-",
                LAST);
刚学习LR,做了几次关联都报错,希望大家指教
作者: mystic    时间: 2012-11-22 10:43
不明白什么意思。
作者: tianya6607    时间: 2012-11-22 10:52
不好意思,没描述清楚:想对session_name做关联,因为每次用户登录这个值都是变化的
下面这个是这行执行时候的log:
Action.c(39): t=50888ms: 289-byte response headers for "http://192.168.27.24/agc_cn/modules/ajax_dao/vdc_db_query.php" (RelFrameId=1, Internal ID=73)
Action.c(39):     HTTP/1.1 200 OK\r\n
Action.c(39):     Date: Thu, 22 Nov 2012 02:49:40 GMT\r\n
Action.c(39):     Server: Apache/2.2.3 (CentOS)\r\n
Action.c(39):     X-Powered-By: PHP/5.1.6\r\n
Action.c(39):     Cache-Control: no-cache, must-revalidate\r\n
Action.c(39):     Pragma: no-cache\r\n
Action.c(39):     Content-Length: 76\r\n
Action.c(39):     Keep-Alive: timeout=200, max=63\r\n
Action.c(39):     Connection: Keep-Alive\r\n
Action.c(39):     Content-Type: text/html; charset=utf-8\r\n
Action.c(39):     \r\n
Action.c(39): t=50922ms: 76-byte response body for "http://192.168.27.24/agc_cn/modules/ajax_dao/vdc_db_query.php" (RelFrameId=1, Internal ID=73)
Action.c(39):     闂幆鍛煎叆缁勯\x80夋嫨 INGroup1 INGroup2 INGroup3 -宸茬粡娉ㄥ唽鍒扮敤鎴\xB71001\n
Action.c(39): web_custom_request("vdc_db_query.php_2") was successful, 76 body bytes, 289 header bytes          [MsgId: MMSG-26386]
作者: tianya6607    时间: 2012-11-22 12:26
简单说:多用户登录,每个用户session不一样 怎么办?
作者: youya24k    时间: 2012-11-22 18:28
可以先试试自动关联,不行就手动写关联函数,按说这些资料网上很多的啊
作者: felix09049    时间: 2012-11-23 09:51
session_name=1353547921_100110108452 我猜这个session_name是 时间戳_用户名密码?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2