Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
junitintegration [2020/03/19 16:41] admin removed |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Integration: | ||
| - | First you must have // | ||
| - | To execute MBT model or execute a specific test case (mCase), create the test java class inheriting from test case as you normally do to create JUnit class. Add a //static initializer// | ||
| - | |||
| - | Now you are ready to write your test case to execute MBT model or a specific test case (mCase) in the model. See example below. | ||
| - | |||
| - | Make sure you do not have any instance of // | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | /** | ||
| - | * Example to run a specific mCase. | ||
| - | * appropriate plugin/ | ||
| - | * @throws Exception | ||
| - | */ | ||
| - | public void testRemoveItemScenario() throws Exception { | ||
| - | | ||
| - | } | ||
| - | /** | ||
| - | * Example to run the model. | ||
| - | * appropriate plugin/ | ||
| - | * @throws Exception | ||
| - | */ | ||
| - | public void testQuickPurchaseScenario() throws Exception { | ||
| - | | ||
| - | } | ||
| - | /** | ||
| - | * starts up **// | ||
| - | */ | ||
| - | static { | ||
| - | try { | ||
| - | | ||
| - | | ||
| - | } | ||
| - | catch (Exception e) { | ||
| - | | ||
| - | } | ||
| - | } | ||
| - | } | ||