Test class not found when run from command line [message #1852250] |
Fri, 06 May 2022 02:50  |
Eclipse User |
|
|
|
Hi,
I try to run a SWTBot test using command line as described in https://wiki.eclipse.org/SWTBot/Automate_test_execution#With_Ant_or_Command-Line.
My test runs as expected when started from Eclipse IDE but fails when using following command:
java -classpath <eclipse_intsall_dir>\plugins\org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar;<eclipse_test_project_dir>\output\plugin_eclipse_ng.jar org.eclipse.core.launcher.Main -os win32 -ws win32 -arch x86_64 -consoleLog -debug -version 3 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -className com.mathworks.polyspace.plugin_eclipse_ng.system.preferences.TestPreferences -application org.eclipse.swtbot.eclipse.junit.headless.swtbottestapplication -product org.eclipse.platform.ide -data <eclipse_test_project_dir>
I see the Eclipse windows opening but then I get the following error:
Starting plugin ...
Class not found "com.mathworks.polyspace.plugin_eclipse_ng.system.preferences.TestPreferences cannot be found by org.eclipse.swtbot.eclipse.junit.headless_3.1.0.202106041005"
Any help greatly appreciated.
Thanks,
Sandra
|
|
|
|
Powered by
FUDForum. Page generated in 0.05727 seconds