In case of Random Testcases, the Simulator cannot simulate a component without nested components
Currently the simulator can only simulate components which contains
nested components.
To transform a non-composite component with proper behavior
specification to an executable component, the transformation service
always calls the ExecutableCompositeComponentTransformation which
however cannot transform the simple component and throw an exception.
Stacktrace:
!ENTRY org.fortiss.af3.testing 4 0 2011-11-24 15:52:34.973
!MESSAGE Cannot simulate the test case!
!STACK 0
org.fortiss.af3.testing.generator.TestSuiteGeneratorException: Cannot
simulate the test case!
at
org.fortiss.af3.testing.method.random.RandomTestSuiteGenerator.generateTestCase(RandomTestSuiteGenerator.java:141)
at
org.fortiss.af3.testing.method.random.RandomTestSuiteGenerator.generate(RandomTestSuiteGenerator.java:97)
at
org.fortiss.af3.testing.method.ui.editor.GenerateTestSuiteAction.run(GenerateTestSuiteAction.java:81)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.fortiss.af3.rcapplication.AF3Application.start(AF3Application.java:41)
at
org.eclipse.equinox.internal.apEclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by:
org.fortiss.af3.testing.simulator.TestCaseSimulatorException:
at
org.fortiss.af3.testing.simulator.TestCaseSimulator.simulate(TestCaseSimulator.java:81)
at
org.fortiss.af3.testing.method.random.RandomTestSuiteGenerator.generateTestCase(RandomTestSuiteGenerator.java:137)
… 31 more
Caused by:
org.fortiss.tooling.kernel.extension.exception.ChainTransformationFailedException
at
org.fortiss.tooling.kernel.extension.data.TransformationProviderChain.transform(TransformationProviderChain.java:57)
at
org.fortiss.tooling.kernel.utils.TransformationUtils.createTransformedObjectFor(TransformationUtils.java:54)
at
org.fortiss.af3.testing.simulator.TestCaseSimulator.simulate(TestCaseSimulator.java:74)
… 32 more
(from redmine: issue id 321, created on 2011-11-24, closed on 2012-07-16)
- Relations:
- parent #839 (closed)
- Uploads: