본문 바로가기

Study/linux

jmeter cli로 실행 시 각종 파라미터 넘기기(ip, thread, port 등)

jmeter를  cli로 사용하는 법을 알아보자.

cli로 실행할때마다 ip주소를 유동적으로 넘겨주고 싶다면

아래 포스팅 참고

 

https://mkbansal.wordpress.com/2012/08/01/jmeter-command-line-script-execution-with-arguments/

 

Jmeter – command line script execution with arguments

Its a common practice to create Performance script in GUI mode and run the test in CUI (command user interface) mode. Some time we need to pass some arguments to script as input. Using GUI, we can …

mkbansal.wordpress.com

 

요약:

값을 유동적으로 바꾸고 싶은 부분 값을 설정

${__P(param_name, default value)}

 

.jmx로 저장한 후 cli에서 실행

./jmeter -n -t setting.jmx -J[param_name]=val -l savedir.csv