51Testing软件测试论坛

标题: 关联真让人头疼 [打印本页]

作者: hy_安静    时间: 2016-6-14 16:34
标题: 关联真让人头疼
本帖最后由 hy_安静 于 2016-6-14 17:33 编辑

一会取不到值,一会取到值但不是想要的值,一会有取不到值,郁闷郁闷
作者: hy_安静    时间: 2016-6-14 16:35
Action()
{
        web_reg_save_param("look",
                "LB=Bug.php?BugID=",
                "RB=\" method=\"post",
                "Ord=1",
                "NotFound=WARNING",
//                 "Search=Body",
                LAST);


        web_url("bugfree",
                "URL=http://localhost:8080/bugfree/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                LAST);

        web_url("Login.php",
                "URL=http://localhost:8080/bugfree/Login.php",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:8080/bugfree/",
                "Snapshot=t2.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=Image/login_button.png", ENDITEM,
                "Url=Image/login_input.gif", ENDITEM,
                "Url=Image/login_separate_line.gif", ENDITEM,
                "Url=Image/login_bg_center.gif", ENDITEM,
                "Url=../favicon.ico", "Referer=", ENDITEM,
                LAST);

        web_custom_request("Login.php_2",
                "URL=http://localhost:8080/bugfree/Login.php",
                "Method=POST",
                "TargetFrame=RightBottomFrame",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://localhost:8080/bugfree/Login.php",
                "Snapshot=t3.inf",
                "Mode=HTML",
                "Body=xajax=xCheckUserLogin&xajaxr=1465890359223&xajaxargs[]=%3Cxjxquery%3E%3Cq%3ETestUserName%3Dtest001%26TestUserPWD%3Dtest001%26Language%3DZH_CN_UTF-8%26HttpRefer%3D%3C%2Fq%3E%3C%2Fxjxquery%3E",
                LAST);

//         web_reg_save_param("1",
//                 "LB=1",
//                 "RB=",
//                 "Ord=1",
//
//                 "Search=Body",
//                 LAST);

        web_url("bugfree_2",
                "URL=http://localhost:8080/bugfree/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:8080/bugfree/Login.php",
                "Snapshot=t4.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=Image/TreeMenu/blank.gif", "Referer=http://localhost:8080/bugfree/ModuleList.php", ENDITEM,
                "Url=Image/TreeMenu/opened.gif", "Referer=http://localhost:8080/bugfree/ModuleList.php", ENDITEM,
                "Url=Image/Loading.gif", "Referer=http://localhost:8080/bugfree/UserControl.php", ENDITEM,
                "Url=Image/icon_refresh.gif", "Referer=http://localhost:8080/bugfree/UserControl.php", ENDITEM,
                "Url=../favicon.ico", "Referer=", ENDITEM,
                LAST);



        web_url("新建bug2",
                "URL=http://localhost:8080/bugfree/Bug.php?BugID={look}",
                "TargetFrame=_blank",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:8080/bugfree/BugList.php",
                "Snapshot=t5.inf",
                "Mode=HTML",
                LAST);

        return 0;
}

作者: jingzizx    时间: 2016-6-14 19:31
反正我自己做关联的时候都要试好几次的,不是一次就成功的,慢慢来吧,加油




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