첫 번째 질문은 어디에서 GET URL을 얻습니까? http 요청에서 압축을 풀고 있습니까?
당신은 그것을 어쨌든이있는 경우 중 하나 "하드"또는 JMeter를 변수에 당신이 당신의 테스트 케이스에으로 Beanshell 샘플러를 추가하고 다음 코드를 추가 할 수 있습니다
vars.put("queryParams","${__javaScript(/\?(.*)$/.exec('http://stackoverflow.com/questions/2389738/jmeter-get-entire-query-string-into-variable?testqueryparameter=&anotherqueryparam=IhavesomeValue')[1],)}");
내가이 사건을 테스트하는
http://stackoverflow.com/questions/2389738/jmeter-get-entire-query-string-into-variable?testqueryparameter=&anotherqueryparam=IhavesomeValue
을 사용합니다.
변수 queryParams
의 결과 저장소는
testqueryparameter=&anotherqueryparam=IhavesomeValue
당신이 찾고 있던 무엇인가요입니까?
출처
2012-08-14 02:50:39
ant