break110 发表于 2016-7-26 09:47:52

执行Java vuser 脚本 提示错误 (-17998): 获取 [param not passed in call] 线程 T...

执行脚本,脚本本身可以通过,调用也正常,但是会提示提示错误 (-17998): 获取 线程 TLS 项失败。度娘后提示我说没有新建事物,但是我已经确认新增了事务,依然报错,求问什么原因?
谢谢

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.suning.ssf.endpoint.service.GenericService;

import lrapi.lr;

public class Actions
{
        private static volatile GenericService genericService;
        private static String path="C:/TestCase/jar/20160721/beans-bill-ssf-client.xml";
        static{

             FileSystemXmlApplicationContext ctx=new FileSystemXmlApplicationContext(path);

             genericService = (GenericService)ctx.getBean("eppFSPGenericServer");
          }

       
        public int init() throws Throwable {
                    
       return 0;
        }//end of init

      public int action() throws Throwable {
             Map reqMap = new HashMap();
             Map resMap;
          

             reqMap.put("rate", "<rate>");//参数化<rate>
                reqMap.put("productType", "<productType>");        //参数化<productType>
             reqMap.put("sortWay", "default");                //参数化 default
             reqMap.put("currentPageNo", "1");
             reqMap.put("pageSize","1");                //参数化 <pageSize>
             reqMap.put("loanPeriod","<loanPeriod>");                //参数化 <loanPeriod>

             resMap = genericService.synCall("queryProductList", reqMap);
             lr.start_transaction("queryProductList");
             lr.log_message("resmap;" + resMap);
             //判断retMsg返回值,返回成功值,及返回有效参数,记录为成功
          if ("成功".equals(resMap.get("retMsg").toString())) {
                lr.log_message("++++++++++++++++++++++++++++++++++++++++++++成功+++++++++++++++++++++++++++++++=+++++++++++");
                lr.end_transaction("queryProductList", lr.PASS);
          }else{
                lr.log_message("++++++++++++++++++++++++++++++++++++++++++++失败+++++++++++++++++++++++++++++++++++++++++++");
                lr.end_transaction("queryProductList", lr.FAIL);
               
          }                       
                return 0;
       }
        public int end() throws Throwable {
        return 0;
        }

}




月下赏花 发表于 2016-7-26 11:21:57

:lol:lol:lol:lol:lol:lol:lol:lol:lol

月下赏花 发表于 2016-7-26 11:25:18

:):):):):):):)

jingzizx 发表于 2016-7-26 22:15:55

把事物开始的地方上移试试

break110 发表于 2016-7-27 09:13:23

jingzizx 发表于 2016-7-26 22:15
把事物开始的地方上移试试

试过了,没有用

break110 发表于 2016-7-27 09:13:31

jingzizx 发表于 2016-7-26 22:15
把事物开始的地方上移试试

试过了,没有用

fhhh_eyou 发表于 2016-8-20 15:07:35

定义变量取值错误!

fhhh_eyou 发表于 2016-8-20 15:07:49

定义变量取值错误!
页: [1]
查看完整版本: 执行Java vuser 脚本 提示错误 (-17998): 获取 [param not passed in call] 线程 T...