51Testing软件测试论坛

标题: LR中转码问题,如何将&转换成& [打印本页]

作者: yun880111    时间: 2016-4-20 09:45
标题: LR中转码问题,如何将&转换成&
使用web_reg_save_param获取动态参数数据,获取的数据需要转码,有什么函数或者方法?
下面代码获取的结果:value:home.php?mod=space&uid=373511&do=profile
期望结果:value:home.php?mod=space&uid=373511&do=profile
代码如下:
Action()
{
        web_set_max_html_param_len("999999");
        web_reg_save_param("author",
                "LB=<a href=\"",
                "RB=\" target=\"_blank\" class=\"xw1\">",
                "Search=Body",
                LAST);
        web_url("thread-1072567-1-1.html",
                "URL=http://bbs.51testing.com/thread-1072567-1-1.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t16.inf",
                "Mode=HTML",
                LAST);
        lr_output_message("value:%s", lr_eval_string("{author}"));
        return 0;
}


作者: jingzizx    时间: 2016-4-20 16:42
好像没有什么好的办法,只能说你自己写程序实现吧




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