JMeter脚本运行总是让我退出登录页面 . 根本没有登录 .
我在登录过程中有两个步骤 .
step1登录:响应数据给出“EVENTTARGET”,“VIEWSTATE”等,
step2登录:像“EVENTTARGET”,VIEWSTATE“,”USERNAME“”PASSWORD“这样的参数 .
<script type="text/javascript">
//<![CDATA[
var theForm = docucent.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
JavaScript用于登录按钮调用 .
但是,我使用CSS / jQuery Sampler传递了对step2参数的step1响应 .
但我的登录失败了 .
请帮我解决明确的问题 .