51Testing软件测试论坛
标题:
LR脚本在运行时某些步骤Permission Denied错误
[打印本页]
作者:
木卫十二
时间:
2007-11-15 20:51
标题:
LR脚本在运行时某些步骤Permission Denied错误
以下情况都只是在VUser中跑的问题:
前面的登陆界面没有错误,运行到下面提交的代码时,在结果中会报Permission denied错误
web_submit_data("WSTrxManager_2",
"Action=http://team01:9082/Web/servlets/WSTrxManager",
"Method=POST",
"RecContentType=text/html",
"Referer=http://team01:9082/Web/screen/SECindex.htm",
"Snapshot=t96.inf",
"Mode=HTML",
ITEMDATA,
"Name=_ACT_TYPE", "Value=", ENDITEM,
"Name=ITEM_ID", "Value=New", ENDITEM,
"Name=ITEM_NAME", "Value=", ENDITEM,
"Name=CATA_NUM", "Value=", ENDITEM,
"Name=TRAN_NAME", "Value=New", ENDITEM,
"Name=TRAN_TYPE", "Value=", ENDITEM,
"Name=CATA_CURR", "Value=", ENDITEM,
"Name=PRODUCT_ID", "Value=P06013100000", ENDITEM,
"Name=LOGIN_NAME", "Value=", ENDITEM,
"Name=CATA_TYPE", "Value=", ENDITEM,
"Name=PREV_TRAN_NAME", "Value=null", ENDITEM,
"Name=FUNC_ID", "Value=F05030700454", ENDITEM,
"Name=UNIT_CODE", "Value=", ENDITEM,
"Name=EXCELTYPE", "Value=", ENDITEM,
"Name=ID", "Value=", ENDITEM,
"Name=PRODUCT_NAME", "Value=", ENDITEM,
"Name=SELECTEDFIELDS", "Value=", ENDITEM,
"Name=CE_SELECT_CATAFIELD", "Value=", ENDITEM,
"Name=SAVED", "Value=", ENDITEM,
"Name=ExcelType", "Value=", ENDITEM,
"Name=IMG_INQ_TYPE", "Value=", ENDITEM,
"Name=TRXL_TYPE", "Value=", ENDITEM,
"Name=DoType", "Value=", ENDITEM,
"Name=SEL_TYPE", "Value=", ENDITEM,
"Name=TITLE_NAME", "Value=", ENDITEM,
"Name=CURR_OPER", "Value=", ENDITEM,
"Name=GRP_NAME", "Value=name", ENDITEM,
"Name=FUN_NAME", "Value=Import LC Application", ENDITEM,
"Name=FUN_DESC", "Value=Apply for Import LC", ENDITEM,
"Name=CATA_PAGE_SIZE", "Value=", ENDITEM,
"Name=INI_ITEM_ID", "Value=", ENDITEM,
"Name=_TRX_STATUS", "Value=CE_GET_ITEM", ENDITEM,
EXTRARES,
"Url=../Images/icn_question.gif", ENDITEM,
"Url=../Images/sys_combo.gif", ENDITEM,
"Url=../Images/calendar.gif", ENDITEM,
"Url=../Resources/Images/buttons/tertiary/search_off.gif", ENDITEM,
"Url=../Resources/Images/buttons/tertiary/ter_clause.gif", ENDITEM,
"Url=../Resources/Images/buttons/primary/template.gif", ENDITEM,
"Url=../Resources/Images/buttons/secondary/bib/cancel.gif", ENDITEM,
"Url=../Resources/Images/buttons/primary/save.gif", ENDITEM,
"Url=../Resources/Images/buttons/primary/next.gif", ENDITEM,
LAST);
然后,后面的许多Submit Data步骤会报如下图所示的错误
[attach]35179[/attach]
页面肯定是没有问题的(实际上Results.qtp显示所有的步骤都是Pass,但是打开那些步骤查看就会发现以上的错误),用QTP跑过也都没有问题。好久都没有解决的办法,请大家帮忙分析是什么原因?
作者:
joetree
时间:
2007-11-16 09:58
"Mode=HTML",
改成"Mode=HTTP"试试
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2