1

我是 Webload 测试的新手,并尝试使用 Webload(Radview 免费版)工具执行负载测试。在 IDE 中完成录制后,建议选择不关联或自动关联哪个选项?. 我选择了两者并进行了测试。

当我尝试不相关时 - 我收到错误消息“500 Internal Server Error Requested url: in main _agenda at line 74

当我尝试自动关联时 - 它工作正常。

这是没有相关性的代码

wlGlobals.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763"
wlGlobals.AcceptLanguage = "en-GB"
wlHttp.Header["Referer"] = "https://gmail/LoginPage" // Changed url here for security purpose
wlHttp.FormdataEncodingType = 5
wlHttp.ContentType = "application/x-www-form-urlencoded"
wlHttp.FormData["__EVENTTARGET"] = "$WL$EMPTY$STRING$"
wlHttp.FormData["__EVENTARGUMENT"] = "$WL$EMPTY$STRING$"
wlTemporary = "B0B5X6bftN++BRK3vVaj2xUoVv/r9eUZR92YU0OoY42SvAdsqgU2exM428y1DY9CwyUZnpMJsjfUaY8oHSV5GRXsOz+W6nmRB/XDGcWhXbsfe7QUxcc7KVEfVtnEIEXMoaVJCSq2LxaENYBbIIn5BCMZABPbr/9Y3+/kbHsUBYFaEmrfyxXbgOvw32oFjh60UkomTCk4x6SqF8HwVNfL/ayOErj+W328j0nfX0uc6gxBgfop0yPg/FmD4JmtvM0tdxMiUlMLIY/z54bbcKMp31SXcDBz6zJ+EVftmB16gM/iBjMcAsUjKXoUyB+rbf8oN2RxJToEfdxGxdgfVa4W6v7iQyCieAN6rZJBrhEjdsXSn18yYDU+qVdtU+Xf/jyMa6ReR0MEJcxvQEmRe"
        + "JUVAGU0NCycInzI3wGiTfJlTWc/JSFwQzkt/tEPaAQCR2jGHmVppbOA/9XCXoDyUviiQ2CQkapXIrw+OQPngmAxmb+pRV9133ddnJ8SZXS/3jmEoGdA4RGiaYiyQCl/rpNmo240q672VUo5DN2rV1HJrsCUaseIBZZh4Vj9g2KMJZfHgUj8Vz4zu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4s9/uxZJvUP7p73quzZ5CTQ3U9Fn8p2ONr5RgVeMtbAatNBhlzf2gOwX1HfvbQpC6pKJ3VdN0SjjJqze6Z4NhnCfUqEZCmBx2cvIUMs9Kg6kZafHFrSdn/gCWZxZRAZJElp6UPbfmkJjS6XnoCi8RRqIe1AML4XxZr9+7QhPcsRc8EKiBED0vPd19UevVp1xLrD0R9zXNKCJHzDHRNf82bbKdTO7dIRaFtVHE2e61j5QrKp5LkEbjGOoXqR9Ckwo/lV3P9RJA5cSFEN8jjj1pJNbKl0j+ZIxWMQpTiL1qEA3gqQFATZhMizxk3/n0JEk+7Aa2DByn4Huon65X0nC+TSeacJ"
        + "BPmNXxWhNc8/pm0fE/IuMcJxHomdr5NsBY4Lq7Y6RYphw+d9iTSZWVmxSPY18+DRwkHAw=="

wlHttp.FormData["__VIEWSTATE"] = wlTemporary
wlHttp.FormData["__VIEWSTATEGENERATOR"] = "0F9F611E"
wlHttp.FormData["__VIEWSTATEENCRYPTED"] = "$WL$EMPTY$STRING$"
wlHttp.FormData["__EVENTVALIDATION"] = "ArmKA5fUCSWyuG82fQTS/7t4lH/qrrjI3WEWcdtyTHSVCkwrKO1JJjm+/y79FOYP+An3W2pAlVvVwmUex7U5phHJ0/t2fuxrxkMQ1xwrf6JyRNKeElb2ty8prKE68VDxUzZHOTdZjJiWPAB5f+/KlDF9JkGXzlYY5p0I9NWK0PM83bGYEDjFWjGKUTFM5Th/Z+zQKcyQk5aj+unE9BP6RQzjsy0qYqR2X5Q4pkIu0tL5z50ZR14RAQBQSAhfIt4f"
wlHttp.FormData["ctl00$maincontent$ControlLogin1$email_address"] = "test@gmail.com"
wlHttp.FormData["ctl00$maincontent$ControlLogin1$password"] = "Test123"
wlHttp.FormData["DocumentID"] = "LoginPage"
wlCookie.Set("_ga", "GA1.2.1957913211.1610361754", "gmail.com", "/", "", 
"");
wlCookie.Set("_gat_gtag_UA_00000000_0", "1", "gmail.com", "/", "", "");
wlCookie.Set("_gid", "GA1.2.632442093.1610361754", "gmail.com", "/", "", 
"");
wlHttp.Post("https://gmail.com/LoginPage")// Changed url for security purpose - line no 74 where I am getting error
4

1 回答 1

1

您几乎应该总是想要“自动关联”。如果您计划稍后运行关联(例如,如果您想先保存文件),您只想不关联。

相关性将为您替换动态值 - 在您的情况下,“__VIEWSTATE”字段 - 没有它,您将发送一个将被服务器拒绝的陈旧值。

于 2021-01-27T21:39:59.610 回答