ITeye博客

LoadRunner测试脚本

button · 2014-02-28 16:38 · javaweb · 编程语言 · Markdown

//EBank-yaoyao-PT-001-web

 

Action(){

    int HttpRetCode;

    lr_start_transaction("EBank-yaoyao-PT-001");

    web_custom_request("EBank-yaoyao-PT-001",

                                       "URL=http://10.10.10.111:1666/LifePayment/user/login.do?mobile={phone}&passwd=${passwd}",

                                      "Resource=0",

                                      "RecContentType=application/json",

                                      "Referer=http://10.10.10.111:1666/LifePayment/user/login.do?mobile={phone}&passwd=${passwd}",

                                      LAST);

   HttpRetCode=web_get_int_property(HTTP_INFO_RETURN_CODE);

   lr_output_message("%d",HttpRetCode);

   if(web_get_int_property(HTTP_INFO_RETURN_CODE)==200)

       lr_output_message("succ");

   else

      lr_output_message("fail");

      lr_end_transaction("EBank-yaoyao-PT-001",LR_AUTO);

  return 0;

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。