0

I'm getting xml file as output while running munit test case for the flow, but to make sure the output is correct or not i want to use assert payload option in munit.

Please help me how can i make sure the code functionality is working properly and the output is as expected.

Blisskarthik
  • 1,246
  • 8
  • 20
Ankit Prakash
  • 37
  • 1
  • 7

1 Answers1

2

If you are getting XML payload either you can compare entire XML output with test resource file as #[getResource('output.xml').asString()] or you can use XPath expression to check specific fields in output XML.

HTH.

Yuri
  • 4,254
  • 1
  • 29
  • 46
AnupamBhusari
  • 2,395
  • 2
  • 14
  • 22