在 C# 中使用 LoadRunner API (VUGEN 9.52.0.0) 调用 HTTP Get 的正确语法是什么?以下生成 AccessViolationException:
LoadRunner.WebApi web = new LoadRunner.WebApi();
web.url("GoToMyService", "http://path/to/my/service/", new string[0], "LAST");
调用引发的异常web.url
:
Error: Action.cs(25): System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at LoadRunner.WebApiClass.url(String name, String urladdr, Object options, Object extrares)
at Script.VuserClass.Action() in h:\Personal\_projects\LoadTest\Action.cs:line 25