I am using JMeter to download the SOAP web service test. The web service exists in several places, such as my local host, dev box, integration unit, production unit, etc.
I use the WebService Request Sampler (SOAP) and set the IP Server Name, Path, and SOAP Action parameters as follows:
Server Name of IP: ${SERVER}
Path: ${PATH}/service
SOAPAction: http://${SERVER}${PATH}service#action
This works great when using the User Defined Variables configuration item. I just change SERVER and PATH to whatever is specific to the location I'm trying to hit. However, this is more of a pain in the ass that I want to deal with. What I was hoping to do (and tried) was to add some If Logic controllers to my thread group and check $ {MODE} (another UDV) and act accordingly by setting up my SERVER and PATH. So I had something like
"${MODE}" == "dev"
"${MODE}" == "local"
"${MODE}" == "production"
If, UDV, SERVER PATH. UDV ( Thread) , , If Controller, false, UDV. , UDV . , User Paramaters , ${SERVER} ${PATH} SOAP , http://${SERVER} ${PATH}, .
? SERVER PATH , , . , , , , , , SOAP-, .
?