Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Switch workspace problem
Switch workspace problem [message #901035] Thu, 09 August 2012 13:42 Go to next message
Mohamed Azab is currently offline Mohamed Azab
Messages: 2
Registered: August 2012
Junior Member
I am using SWTBOT with tycho-surfire to test an eclipse application. The tests runs individually fine, but when I combine them I need to switch the workspace after each test, or specify somehow a specific workspace for each test. When I try to switch the workspace from inside the test with this code:
bot.menu("File").menu("Switch Workspace").menu("Other...").click();
bot.shell("Workspace Launcher").activate();
String workspace = bot.comboBoxWithLabel("Workspace:").getText() + "/ResetButtonTest";
bot.comboBoxWithLabel("Workspace:").setText(workspace);
bot.button("OK").click();

the simulator reaches the OK button and press it, the workbench closes but never starts again. There was an error asking to set the property eclipse.vm, and I did. The error is gone but still can not switch the workspace.

Any help?
Re: Switch workspace problem [message #901451 is a reply to message #901035] Sun, 12 August 2012 13:55 Go to previous message
Mohamed Azab is currently offline Mohamed Azab
Messages: 2
Registered: August 2012
Junior Member
Is there a way to set a separate workspace for each test when running SWTBOT headless tests from tycho and maven?
I tried to change the -data command option, but the test fails with the following exception: java.lang.ClassNotFoundException, Could not find the main class
Previous Topic:SWTBot with e4 product
Next Topic: 64bit swtbot junit headless testing with ant
Goto Forum:
  


Current Time: Mon Sep 22 04:36:51 GMT 2014

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

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