Forum Discussion
Jasper175
15 years agoFrequent Contributor
If you're manually entering in the data in your XML you'll have this problem.
The way to keep the tag is populate each tag with a property value.
I'm doing the same exact test type.
You can either use TestSuite Properties (create the field names), or you can create Property file (as well create the field names)
In my example I'm using the TestSuite properties.
Then in the XML just right-click > Get Data > hover over TestSuite > Select the value.
Your XML will look like this:
<ser:billingAddress>
<ser:addressLine1>${#TestSuite#addressLine1}</ser:addressLine1>
<ser:addressFormat>Standard</ser:addressFormat>
<ser:city>${#TestSuite#city}</ser:city>
<ser:countryCode>${#TestSuite#country}</ser:countryCode>
<ser:state>${#TestSuite#state}</ser:state>
<ser:zipCode>${#TestSuite#zipCode}</ser:zipCode>
</ser:billingAddress>
This will keep the tag and send it blank if you keep your Property value blank.
What you need to send in you'll have to now populate the Property instead of the XML.
The way to keep the tag is populate each tag with a property value.
I'm doing the same exact test type.
You can either use TestSuite Properties (create the field names), or you can create Property file (as well create the field names)
In my example I'm using the TestSuite properties.
Then in the XML just right-click > Get Data > hover over TestSuite > Select the value.
Your XML will look like this:
<ser:billingAddress>
<ser:addressLine1>${#TestSuite#addressLine1}</ser:addressLine1>
<ser:addressFormat>Standard</ser:addressFormat>
<ser:city>${#TestSuite#city}</ser:city>
<ser:countryCode>${#TestSuite#country}</ser:countryCode>
<ser:state>${#TestSuite#state}</ser:state>
<ser:zipCode>${#TestSuite#zipCode}</ser:zipCode>
</ser:billingAddress>
This will keep the tag and send it blank if you keep your Property value blank.
What you need to send in you'll have to now populate the Property instead of the XML.