这里是原话,请高手们帮忙指点一下。。
情况是这样的:录制到的脚本中,我是用关联函数,将关联到的值(是一串阿拉伯数字)取了出来,但是这个值需要做转码,转完了,我在继续调用它。
转码规则为:其中0代表A6ZZ,1代表D5ZZ,2代表K3ZZ,3代表MLZZ,4代表FPZZ,5代表G5ZZ,6代表KAZZ,7代表A3ZZ,8代表ZJZZ,9代表IFZZ,如果我关联到的值取出来的数字为123456789,那么经过转码后,输出结果应该为A6ZZD5ZZK3ZZMLZZFPZZG5ZZKAZZA3ZZZJZZIFZZ这么一串字符。
下面为一部分脚本:
web_reg_save_param("FILEID001",
"LB=name=\"fileId\" value=\"",
"RB=\"",
LAST);
web_submit_data("marmot.rpc.d",
"Action=http://10.190.51.22:1999/CPIC09Auto/marmot.rpc.d?__rpc=true&__rpcAgent=true",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.190.51.22:1999/CPIC09Auto/dorado/smartweb2.showRPCSubmitter.d",
"Snapshot=t63.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__type", "Value=base", ENDITEM,
"Name=__xml", "Value=<rpc method=\"printTestPage\"><ps><p name=\"_resolver\">printResolver</p></ps></rpc>", ENDITEM,
"Name=__viewInstanceId", "Value=org.view.authorization.mainMenu~org.view.authorization.mainMenuViewModel", ENDITEM,
LAST);
web_url("DownloaderServlet",
"URL=http://10.190.58.110:8080//ITDS/servlet/DownloaderServlet?fileid=A6H8A6Q8KAC3IFP2MLQ8K30AA6B0ZJJ4D5G6D52R&type=1&version=3.4.6",
"Resource=1",
"RecContentType=application/octet-stream",
"Referer=",
"Snapshot=t64.inf",
LAST);
web_custom_request("ReportServlet",
"URL=http://10.190.58.110:8080//ITDS/servlet/ReportServlet?itdsencoding=1&fileid=A6H8A6Q8KAC3IFP2MLQ8K30AA6B0ZJJ4D5G6D52R&type=1&printednum=0",
"Method=POST",
"Resource=0",
"Referer=",
"Mode=HTTP",
"EncType=",
LAST);
其中FILEID001是个变量,已经赋过值
现在我需要将{FILEID001}这里面的值进行转码,转码后变成类似这样的值A6H8A6Q8KAC3IFP2MLQ8K30AA6B0ZJJ4D5G6D52R,以供下面的连接进行调用