Forum Discussion

RaMup29's avatar
Occasional Contributor
7 years ago

how to define variables in SOAPUI request

I have a requirement for adding a variable to the SOAP request. Below is the sample request. IMSI123445 is the variable in the below request. how can i add the variable to SOAPUI?       <...
  • nmrao's avatar
    7 years ago
    You can add a test case level custom property, say ID and provide the required value.

    In the request, use property expansion as shown below:

    <identifier alias="imsi">${#TestCase#ID}</identifier>

    In case if it needs to be dynamically generated, use groovy script and store the value at test case level.