Azure-Samples / jmeter-aci-terraform

Scalable cloud load/stress testing pipeline solution with Apache JMeter and Terraform to dynamically provision and destroy the required infrastructure on Azure.
MIT License
119 stars 99 forks source link

Issue with jmeter extra arguments #64

Closed shivam201 closed 2 years ago

shivam201 commented 3 years ago

to achieve this jmeter command - jmeter -n -t "sample.jmx" -Jemail= -Jpassword= -Juser.classpath="somejar.jar" -l results.jtl -j log.txt

I updated main.tf line 161. "cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS}"

to "cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS} -Jemail=${var.EMAIL} -Jpassword=${var.PASSWORD} -Juser.classpath=${var.SOMEJAR} '

but at time of execution this parameter is not getting invoked. Can anyone let me know if i am doing anything wrong in this

wenbya commented 2 years ago

@shivam201 same issue with me. have you resolved it? help needed really

shivam201 commented 2 years ago

Hi yes it's resolved. U need to mention the same parameter 2 places in main.tf One in the line 115 mention the same parameter and second one in line 161 line. Hope that resolve you issue.