51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1640|回复: 6
打印 上一主题 下一主题

[原创] 路过的大虾进来看看,这是不是要做关联

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-12-12 21:38:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我先说明一下情况
我正在录一个用户管理的模块,打算是录制新建用户,然后接着就给这个用户分配角色,
但是回放的时候,用户是新建好了,但是没有分配角色,我就在想是不是角色那块没有录进去

所以我又自己手动新建了一个用户A,没有分配角色,然后用loadrunner录制角色的分配,
回放的时候将用户A的角色删除,再回放.发现角色可以分配成功

我发现,第二次我只是针对用户A进行操作,所以成功的回放了脚本,而第一次是新建用户,每次都是新的用
而脚本里面有用户的PK字段...我就在想是不是新建后在分配角色时,要把新建的用户的PK捕获到..
但是我貌似没成功

下面是角色分配的脚本:

Action2()
{
        /*增加角色*/

        lr_think_time(9);




        web_custom_request("ext.AJAX.f_6",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t113.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsRole%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%227%22%20pc%3D%221%22%20prc%3D%220%22%20fs%3D%22pk_role%2Crolename%2Croledesc%2Chasrol%2Cpk_domain%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3Cp%20name%3D%22pkDomain%22%3Epk_domain_common0000%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694462281",
                LAST);

        web_custom_request("ext.AJAX.f_7",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t114.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserFunc%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22funccode%2Cfuncname%2Cpk_user%2Cpk_function%2Cicon%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E%3C/p%3E%3Cp%20name%3D%22parentCode%22%3E%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694462328",
                LAST);

        web_custom_request("ext.AJAX.f_8",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t115.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserFunc%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22funccode%2Cfuncname%2Cpk_user%2Cpk_function%2Cicon%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E%3C/p%3E%3Cp%20name%3D%22parentCode%22%3E%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694462546",
                LAST);

        web_concurrent_start(NULL);

        web_url("ext.loadFile.f_90",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/window/left-corners.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t116.inf",
                LAST);

        web_url("ext.loadFile.f_91",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/window/right-corners.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t117.inf",
                LAST);

        web_url("ext.loadFile.f_92",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/window/top-bottom.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t118.inf",
                LAST);

        web_url("ext.loadFile.f_93",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/window/left-right.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t119.inf",
                LAST);

        web_url("ext.loadFile.f_94",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/s-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t120.inf",
                LAST);

        web_url("ext.loadFile.f_95",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/e-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t121.inf",
                LAST);

        web_url("ext.loadFile.f_96",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/ne-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t122.inf",
                LAST);

        web_url("ext.loadFile.f_97",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/nw-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t123.inf",
                LAST);

        web_url("ext.loadFile.f_98",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/se-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t124.inf",
                LAST);

        web_url("ext.loadFile.f_99",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/sizer/sw-handle.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t125.inf",
                LAST);

        web_concurrent_end(NULL);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-12-12 21:39:23 | 只看该作者
/*确定*/

        lr_think_time(7);

        web_url("ext.showAJAXLoadingTip.f",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t126.inf",
                "Mode=HTTP",
                LAST);

        web_url("ext.loadFile.f_100",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/loading.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Snapshot=t127.inf",
                LAST);

        web_url("ext.showAJAXSubmitter.f",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.showAJAXSubmitter.f",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Snapshot=t128.inf",
                "Mode=HTTP",
                LAST);

        web_submit_data("ext.AJAX.f_9",
                "Action=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true&__ajaxAgent=true",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXSubmitter.f",
                "Snapshot=t129.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=_rt", "Value=updateData", ENDITEM,
                "Name=_xml", "Value=<ajax transaction=\"10\"><def><dataset type=\"wrapper\" id=\"dsUserRole\"><f name=\"pk_userrole\"/><f name=\"pk_user\"/><f name=\"pk_role\"/><f name=\"rolename\"/><f name=\"roledesc\"/><f name=\"id\" type=\"4\"/><ps><p name=\"pk_user\"></p></ps></dataset></def><data><rs dataset=\"dsUserRole\"><r id=\"10077\" state=\"new\"><n><v s=\"1\">01111212125050826741</v><v>45deaf599c7070e25275</v></n></r></rs></data></ajax>", ENDITEM,
                "Name=_fid", "Value=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet", ENDITEM,
                LAST);

        web_concurrent_start(NULL);

        web_url("ext.loadFile.f_101",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/qtip/bg.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t130.inf",
                LAST);

        web_url("ext.loadFile.f_102",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/progress/progress-bg.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t131.inf",
                LAST);

        web_concurrent_end(NULL);

        web_custom_request("ext.AJAX.f_10",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t132.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserFunc%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22funccode%2Cfuncname%2Cpk_user%2Cpk_function%2Cicon%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3Cp%20name%3D%22parentCode%22%3E%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471140",
                LAST);

        web_concurrent_start(NULL);

        web_url("ext.loadFile.f_103",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/bricks.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t133.inf",
                LAST);

        web_url("ext.loadFile.f_104",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/database.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t134.inf",
                LAST);

        web_url("ext.loadFile.f_105",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/hrm.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t135.inf",
                LAST);

        web_url("ext.loadFile.f_106",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/tree/folder-open.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t136.inf",
                LAST);

        web_concurrent_end(NULL);

        web_custom_request("ext.AJAX.f_11",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t137.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserPortlet%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22title%2Cportlet_name%2Cpkid%2Cpk_user%2Cpk_portlet%2Cisused%2Cresid%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471406",
                LAST);

        web_custom_request("ext.AJAX.f_12",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t138.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserRole%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%225%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22pk_userrole%2Cpk_user%2Cpk_role%2Crolename%2Croledesc%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471453",
                LAST);

        web_custom_request("ext.AJAX.f_13",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t139.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserRole%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%225%22%20pc%3D%221%22%20prc%3D%221%22%20fs%3D%22pk_userrole%2Cpk_user%2Cpk_role%2Crolename%2Croledesc%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471734",
                LAST);
        return 0;
}

标红的地方就是用户的PK字段...
写死在脚本里面的...
怎么玩啊...完全不懂...求指点
太多了分成两段发的
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2011-12-12 21:39:38 | 只看该作者
/*确定*/

        lr_think_time(7);

        web_url("ext.showAJAXLoadingTip.f",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t126.inf",
                "Mode=HTTP",
                LAST);

        web_url("ext.loadFile.f_100",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/loading.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Snapshot=t127.inf",
                LAST);

        web_url("ext.showAJAXSubmitter.f",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.showAJAXSubmitter.f",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXLoadingTip.f?theme=default",
                "Snapshot=t128.inf",
                "Mode=HTTP",
                LAST);

        web_submit_data("ext.AJAX.f_9",
                "Action=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true&__ajaxAgent=true",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.1.4:8080/dap/dframe/ext.showAJAXSubmitter.f",
                "Snapshot=t129.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=_rt", "Value=updateData", ENDITEM,
                "Name=_xml", "Value=<ajax transaction=\"10\"><def><dataset type=\"wrapper\" id=\"dsUserRole\"><f name=\"pk_userrole\"/><f name=\"pk_user\"/><f name=\"pk_role\"/><f name=\"rolename\"/><f name=\"roledesc\"/><f name=\"id\" type=\"4\"/><ps><p name=\"pk_user\"></p></ps></dataset></def><data><rs dataset=\"dsUserRole\"><r id=\"10077\" state=\"new\"><n><v s=\"1\">01111212125050826741</v><v>45deaf599c7070e25275</v></n></r></rs></data></ajax>", ENDITEM,
                "Name=_fid", "Value=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet", ENDITEM,
                LAST);

        web_concurrent_start(NULL);

        web_url("ext.loadFile.f_101",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/qtip/bg.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t130.inf",
                LAST);

        web_url("ext.loadFile.f_102",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/progress/progress-bg.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t131.inf",
                LAST);

        web_concurrent_end(NULL);

        web_custom_request("ext.AJAX.f_10",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t132.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserFunc%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22funccode%2Cfuncname%2Cpk_user%2Cpk_function%2Cicon%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3Cp%20name%3D%22parentCode%22%3E%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471140",
                LAST);

        web_concurrent_start(NULL);

        web_url("ext.loadFile.f_103",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/bricks.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t133.inf",
                LAST);

        web_url("ext.loadFile.f_104",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/database.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t134.inf",
                LAST);

        web_url("ext.loadFile.f_105",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/functions/hrm.png",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t135.inf",
                LAST);

        web_url("ext.loadFile.f_106",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.loadFile.f?file=/themes/default/ext/images/tree/folder-open.gif",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t136.inf",
                LAST);

        web_concurrent_end(NULL);

        web_custom_request("ext.AJAX.f_11",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t137.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserPortlet%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%22100%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22title%2Cportlet_name%2Cpkid%2Cpk_user%2Cpk_portlet%2Cisused%2Cresid%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471406",
                LAST);

        web_custom_request("ext.AJAX.f_12",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t138.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserRole%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%225%22%20pc%3D%220%22%20prc%3D%220%22%20fs%3D%22pk_userrole%2Cpk_user%2Cpk_role%2Crolename%2Croledesc%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471453",
                LAST);

        web_custom_request("ext.AJAX.f_13",
                "URL=http://192.168.1.4:8080/dap/dframe/ext.AJAX.f?__ajax=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.4:8080/dap/dap/auth/domainuser.jsp?funccode=901001001",
                "Snapshot=t139.inf",
                "Mode=HTTP",
                "Body=_rt=loadData&_fid=net.dxtek.dap.platform.auth.user.DomainUser~net.dxtek.dap.platform.auth.user.DomainUserFramelet&_xml=%3Crpc%20id%3D%22dsUserRole%22%20type%3D%22wrapper%22%20objectClazz%3D%22%22%20pi%3D%221%22%20ps%3D%225%22%20pc%3D%221%22%20prc%3D%221%22%20fs%3D%22pk_userrole%2Cpk_user%2Cpk_role%2Crolename%2Croledesc%2Cid%22%3E%3Cps%3E%3Cp%20name%3D%22pk_user%22%3E01111212125050826741%3C/p%3E%3C/ps%3E%3C/rpc%3E%0D%0A&1323694471734",
                LAST);
        return 0;
}

标红的地方就是用户的PK字段...
写死在脚本里面的...
怎么玩啊...完全不懂...求指点
太多了分成两段发的
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2011-12-12 21:40:40 | 只看该作者
多发了一个
网卡,,,各位看着眼花多担待啊= =
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2011-12-13 09:40:27 | 只看该作者
楼主的现在的情况是:参数化用户前能正常新增用户、新增角色;参数化后,能新增用户,不能新增角色。
如果是这种情况一般需要关联。
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2011-12-13 11:17:59 | 只看该作者
回复 5# thirfing


    角色是不用新增的…另一个模块已经建好了角色…新增用户的时候直接给这个用户分配角色…这个录下来回放用户新增上了…但是没有角色…
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2011-12-13 11:19:43 | 只看该作者
本帖最后由 thirfing 于 2011-12-13 11:25 编辑

新增角色,分配角色,针对于新增用户一个意思。
扫描坐下关联
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-16 01:15 , Processed in 0.077040 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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