---
title: "LoadRunner测试脚本"
author: "button"
date: "2014-02-28T16:38:42Z"
tags: []
categories: ["编程语言"]
slug: "loadrunner"
draft: false
lastmod: "2014-03-18T16:17:48Z"
id: 2024159
url: "https://jic.iteye.com/blog/2024159"
---

//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;

}