Layer 7 API Management

Expand all | Collapse all

Running Assertion for each item

Jump to Best Answer
  • 1.  Running Assertion for each item

    Posted 08-10-2019 12:31 PM
    Hello All,

    I am trying to run assertion for each item but it fails unexpectedly.

    While searching for i.current value as paper on line 7, it fails.
    I was expecting that if it doesn't find paper, it should move on to the next value book and search it.

    Can you please suggest.

  • 2.  RE: Running Assertion for each item

    Posted 08-11-2019 01:00 AM
    At line number 7..if look up is failed what should it do does fail the each assertion too..for that make use of at least one assertion block inside add two all assertion block is for look up and other is for continue processing..if you face any other problem s make use of service gives you run time execution to sort out your problem..

  • 3.  RE: Running Assertion for each item
    Best Answer

    Posted 08-12-2019 12:05 PM
    Edited by Leandro Dantas 08-20-2019 05:08 PM

    The Run Assertions For Each Item assertion has the same behavior of "All assertions must evaluate to true".
    If you want the loop to continue when the assertion fails, you need do implement the "At least one..."

    Sr. Consultant Services
    HCL Enterprise Studio