I have this xml below which I setup in the Background:
* def Request =
"""
<new1:Account>
<shar:PaidMode>#(PaidMode)</shar:PaidMode>
<shar:BillCycleCredit>#(BillCycleCredit)</shar:BillCycleCredit>
<shar:CreditCtrlMode>#(CreditCtrlMode)</shar:CreditCtrlMode>
<new1:BillCycleType>#(BillCycleType)</new1:BillCycleType>
</new1:Account>
"""
With my test as follows:
Scenario: Create first subscriber
* def PaidMode = '0'
And request Request
When method Post
Then status 200
* print Request
But I cant seem to get this PaidMode to be 0 :( I've read this
Karate API pass def variable in XML
which led me to this (thank you Peter!)
https://github.com/karatelabs/karate#embedded-expressions
its simple, I'm sure, its just not obvious to me what I'm doing wrong