loadrunner 发起post请求

Action()

{   
    
	lr_start_transaction("prodContent");


	web_custom_request("post产品详情测试",   //名称
      "Method=POST",                         //请求的方法 
    "URL=http://192.168.0.150:80/prod/prodContent?code=dahongwaapp&requestJson={\"head\":{\"version\":\"1.0.0\",\"code\":\"dahongwaapp\",\"timestamp\": 1438161369743},\"body\": {\"prodId\": \"20020\"}}",//请求地址 
    "RecContentType=text/xml",
    LAST);   

    
	lr_end_transaction("prodContent", LR_AUTO);

        return 0;  
        
      }

   请尊重知识,请尊重原创 更多资料参考请见  http://www.cezuwang.com/listFilm?page=1&areaId=906&filmTypeId=1

猜你喜欢

转载自annan211.iteye.com/blog/2254030
今日推荐