Adding Mock Fault to an activity
This document provides steps to add Mock Fault for activities in TIBCO BusinessWorks™ Container Edition with the Maven Plug-in. You can also mock faults thrown by activities and test the exception handling logic, and test all the transitions. Currently, Mocking Feature does not support the main process. The mocking feature only mock faults of the activities from subprocesses.
Prerequisites
-
Apache Maven:
https://maven.apache.org/download.cgi -
TIBCO ActiveMatrix BusinessWorks™ Plug-in for Maven 2.6.0 should be installed. Please download the plug-in from:
https://github.com/TIBCOSoftware/bw6-plugin-maven/releases - Activities to be mocked must be present in a subprocess where a subprocess must be under Unit testing.
- Generate valid Mock Fault file. For more information on generating the mock fault file, see Generating Mock Fault File.
Make sure the demo project with the subprocess that has faults to be mocked, is created.
To add mock fault to an activity in TIBCO BusinessWorks™ Container Edition, follow these steps:
Procedure
Copyright © Cloud Software Group, Inc. All rights reserved.