Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Test class not found when run from command line
Test class not found when run from command line [message #1852250] Fri, 06 May 2022 06:50 Go to next message
sandra piron is currently offline sandra pironFriend
Messages: 1
Registered: April 2022
Junior Member
I try to run a SWTBot test using command line as described in

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.

Re: Test class not found when run from command line [message #1852322 is a reply to message #1852250] Tue, 10 May 2022 16:25 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 84
Registered: July 2009
Hi Sandra,

The parameter -className should be I believe the test class to run, in the example it is AllTests, you are using TestPreferences. Does this class exist? Is it in your class path?

Previous Topic:SWTBot cannot be found by <my-test-plugin> in headless
Next Topic:Migration to SLF4J logging in SWTBot 4.0
Goto Forum:

Current Time: Mon Mar 04 02:54:40 GMT 2024

Powered by FUDForum. Page generated in 0.03143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top