API使用示例vuser_init

Virtual User Script started at: 2025/6/7 14:14:08 Starting action vuser_init. Web Turbo Replay of LoadRunner 2024.1.0 for Windows 10; build 667 (2月 07 2024 17:45:41) [MsgId: MMSG-26983] Run mode: HTML [MsgId: MMSG-26993] Replay user agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0 [MsgId: MMSG-26988] Runtime Settings file: "D:\LoadRunner\Documents\VuGen\Scripts\WebHttpHtml2\\default.cfg" [MsgId: MMSG-27141] Ending action vuser_init. Running Vuser... Starting iteration 1. Maximum number of concurrent connections per server: 6 [MsgId: MMSG-26989] Starting action Action. Action.c(3): web_url("login_page") started [MsgId: MMSG-26355] Action.c(3): Found resource "https://api.map.baidu.com/api?v=3.0&ak=w2Sk9449cPXYuMVVGiDor2US95oPSD6H" in HTML "http://localhost:8080" [MsgId: MMSG-26659] Action.c(3): Found resource "http://localhost:8080/js/chunk-vendors.js" in HTML "http://localhost:8080" [MsgId: MMSG-26659] Action.c(3): Found resource "http://localhost:8080/js/app.js" in HTML "http://localhost:8080" [MsgId: MMSG-26659] Action.c(3): web_url("login_page") was successful, 4694093 body bytes, 1867 header bytes, 2322 chunking overhead bytes [MsgId: MMSG-26385] Action.c(7): web_custom_request("login_api") started [MsgId: MMSG-26355] Action.c(7): Error -26630: HTTP Status-Code=400 (Bad Request) for "http://localhost:8088/api/user/login" [MsgId: MERR-26630] Action.c(7): web_custom_request("login_api") highest severity level was "ERROR", 105 body bytes, 222 header bytes, 11 chunking overhead bytes [MsgId: MMSG-26387] Ending action Action. Ending iteration 1. Ending Vuser... Starting action vuser_end. Ending action vuser_end. Vuser Terminated.我手动写脚本Action() { web_url("login_page", "URL=http://localhost:8080", LAST); web_custom_request("login_api", "URL=http://localhost:8088/api/user/login", "Method=POST", "Body={\"userType\":\"普通用户\",\"email\":\"test@example.com\",\"password\":\"123456\"}", "EncType=application/json", LAST); return 0; }运行之后提示上面的内容,只是为什么
最新发布
06-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值