당신은 jmeter functions 또는으로 Beanshell 코드를 통해 액세스하는 대신 변수의 JMeter를 속성을 사용할 수 있습니다 :
이
${__P(whileCondition,)}
${__setProperty(whileCondition,TRUE,)}
${__BeanShell(props.get("whileCondition")}
${__BeanShell(props.set("whileCondition")}
다음과 같은 구조 같은 것을 사용하려고 할 수 있습니다
:
Thread Group
HTTP Request
//set-found-condition
${__setProperty(txtFound,FALSE,)}
While Controller
// invert value in condition - will be executed while txtFound == FALSE
Condition = ${__BeanShell(!props.get("txtFound")}
. . .
[execute your test logic here]
. . .
YOUR HTTP Request
Response Assertion
// set your text assertion here
// this will results in ${JMeterThread.last_sample_ok} = TRUE if text found
IF Controller --FOUND
// if text found set separate variable or property - e.g. ${txtFound} - into TRUE
Condition = ${JMeterThread.last_sample_ok}
HTTP Request
//set-found-condition
${__setProperty(txtFound,TRUE,)} // this will be inverted to FALSE in the next WHILE cycle's condition, WHILE cycle will be exited
. . .
당신도 할 수있다 생각 HTTP 요청에 첨부 된 BSF 또는 BeanShell PostProcessor를 사용하여 IF를 사용하는 번거로운 구성 대신 txtFound 속성을 TRUE로 설정할 수 있습니다.
[대답이 있습니까?] (http://stackoverflow.com/faq#howtoask) –