I need help understanding how parameters are handled vs variables

I have a working test plan setup where using a User Parameter element, I
define two variables to be defined as the following for 'user1' thread

tmsIP  = 10.1.2.178
feedbackURL = ${tmsIP}/tms/public/feedback/code.aspx

Feedback URL is then fed into the path for SOAP/XML-RPC Requests in the
project and functions where feedbackURL =
10.1.2.178/tms/public/feedback/code.aspx when the test plan executes.

I understand the difference between this element and a 'user defined
variables' element to be that the user parameters element allows me to
define different values for each thread.  However, if I try the same
exact definitions in a user variable element, instead of user parameters
element, the feedbackURL variable no longer equates to
10.1.2.178/tms/public/feedback/code.aspx in the test plan, but rather
the literal string ${tmsIP}/tms/public/feedback/code.aspx  and the
SOAP/XML-RPC elements fail with an invalid URL

Why is the user parameter method evaluating the variable, while the user
variable one does not?  There isn't nesting going on here.


Also, this test plan has lots of SOAP/XML requests that may be
simplified using a loop with an input file vs the separate elements like
I have currently.  The XML string has jmeter variables in it that need
to be subtituted.  Right now, I have it setup where the Soap/XML-RPC
data simply (wasn't so simple to create so many!) contains the XML data
to send with the variables entered right in the data field of the
xml-rpc element.  This is working as expected.

Example

<Status xmlns="http://www.tandberg.no/XML/CUIL/1.0";>
  <Identification>
    <SystemName>${mpsSystemName}</SystemName>
    <MACAddress>${mpsSystemMACAddr}</MACAddress>
  </Identification>
</Status>

Over 100 soap/xml elements are called sequentially with data that looks
like the above, but with more tagging along with it.

If I wanted to simplfy the jmeter setup by doing this by using one
soap/xml-rpc element in a loop, how would I do that?  If I set a csv
data set config to define a variable say ${statusXMLstring} which read
from a CSV file which contains the xml strings like above, and just put
${statusXMLstring} in the data field of the soap/xml-rpc element in
jmeter, what would the data in the CSV file have to look like for the
variables ${mpsSystemName} and ${mpsSystemMACAddr} be substitued
properly?

I've been struggling with getting variables substutied for their real
values vs being sent as literal strings and I haven't quite figured out
the error of my ways yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to