Here adding a for each scope level error handler. we can add two types of error handler:
First selecting API service invocation error type
Drag and drop a logger
Provide the details field
Testing:
Scenario 1: 2nd record having invalid salary length.
Observation: Only 1st record inserted into the db.
Scenario 2: 1st record having invalid salary
Observation: no data inserted.
Adding default fault handler
Testing;
Scenario 1: 2nd record having invalid salary length
Observation: 1st record inserted
Scenario 2: 1st record having invalid salary
Observation: 2nd record inserted.
- Default error handler
- API service error handler
First selecting API service invocation error type
Drag and drop a logger
Provide the details field
Testing:
Scenario 1: 2nd record having invalid salary length.
Observation: Only 1st record inserted into the db.
Scenario 2: 1st record having invalid salary
Observation: no data inserted.
Adding default fault handler
Testing;
Scenario 1: 2nd record having invalid salary length
Observation: 1st record inserted
Scenario 2: 1st record having invalid salary
Observation: 2nd record inserted.
No comments:
Post a Comment