Questions tagged [swtbot]

SWTBot is an open-source Java based UI/functional testing tool for testing SWT and Eclipse based applications.

SWTBot provides APIs that are simple to read and write. The APIs also hide the complexities involved with SWT and Eclipse. This makes it suitable for UI/functional testing by everyone, not just developers. SWTBot also provides its own set of assertions that are useful for SWT. You can also use your own assertion framework with SWTBot.

SWTBot can record and playback tests and integrates with Eclipse, and also provides for ant tasks so that you can run your builds from within CruiseControl or any other CI tool that you use. You can also use it with testing frameworks like JUnit on Java, or Cucumber on JRuby making it very suitable for writing tests using a scripting language.

SWTBot can run on all platforms that SWT runs on. Very few other testing tools provide such a wide variety of platforms.

Links

  1. SWTBot Home
  2. Download
  3. User-guide
  4. Tutorial
  5. FAQ
139 questions
0
votes
1 answer

java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/BlockingQueue

I am working with SWTBot, and created a plugin in order to test my application's GUI. At the point i have been able to initiate the bot, but i am not getting the following exception when testing the product: java.lang.NoClassDefFoundError:…
GGomes
  • 11
  • 1
  • 7
0
votes
1 answer

Clear eclipse configuration after each test case file runs in SWTBot testing

I have some 5testcase(SWTBot test) classes in a package in project, all work properly separately, but if i run them all at once then some widget may be left open and remaining files fail. So how to clear the eclipse configuration after each testcase…
Destructor
  • 3,154
  • 7
  • 32
  • 51
0
votes
1 answer

How can I testing the Message Dialog/Box from SWT(with SWTBot)?

Is the message box native SWT? I ask, because SWTBot can't handle native SWT dialogs like message boxes or file dialogs. Suggestion: work in your application code with (JFace) MessageDialog.openInformation(....) and not nativ SWT dialogs. This…
0
votes
1 answer

how to see the coverage for a whole plugin where both junit and swtbot test casesvhave been written

I have a eclipse plugin for which both junit snd swtbot test cases have been written… a test suite for junit runs all test cases as junit plugin… test and coverage could be seen… in the same way swtbot test cases could be run as swtbot test and…
0
votes
1 answer

SWTbot - How to build a project

In my SWTbot test i'm trying to create a C project and then build it so i can run it later . I tried bot.menu("Project").menu("Build Project").click(); or also bot.menu("Project").menu("Build All").click(); and i got WidgetNotFound Exception.…
Rad1
  • 185
  • 1
  • 4
  • 17
0
votes
1 answer

Using SWTBot to automate a third party application. Is it possible?

I have a SWT application that I'd like to automate, making use of SWTBot. Is it possible? If yes, how? All the examples I've found on the net seem to be more about testing your own applications than to launch a third party application.
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
2 answers

Exported plug-in is not loaded when starting Eclipse

I wrote a plug-in in Eclipse and exported it. It works fine and is loaded when I start the Eclipse. Unfortunately when I add "org.eclipse.swtbot.eclipse.finder" to the dependecies and export it again, the plug-in I get is not loaded by Eclipse when…
vdani
  • 27
  • 2
0
votes
1 answer

Java - SWTBot test wizard without workbench

I created an eclipse wizard which i want to test now with the SWTBot. I already used the SWTWorkbenchBot which finally works but i want to test the wizard now without the eclipse workbench. Thats why i created a shell in my testclass where i want to…
0
votes
1 answer

swtbot failing when resetting workbench

I have a test like this public class TesteSairApp extends GermantechTest { @Test public void testApp() throws Exception { SWTBotMenu file = bot.menu("Arquivo"); bot.sleep(1000); SWTBotMenu clickSair =…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
1 answer

SWTBotEclipseEditor title and tooltip text

how to find the title and tooltip text of SWTBotEclipseEditor.getText() method gives the text inside SWTBotEclipseEditor. SWTBotEclipseEditor editor = bot.editorByTitle("testFoo.txt").toTextEditor(); String title = editor.??? //I want title…
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

SWTBOT switch workspace

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…
mazab
  • 1
  • 1
0
votes
1 answer

check file icon in project tree using SWT Bot eclipse

I m testing a eclipse plugin using swt bot.but I cant find a way to check the icon of a file in the tree in project explorer.How can this be done please help
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

focus parent view swtbot

Using bot.viewByTitle() is not finding the view in which the present view is contained.I mean after selecting project name in project explorer in eclipse ,I am unable to select project explorer view again. please help
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

Error in MANIFEST.MF of SWTBot test plugin

I would want to try out SWTBot to test our RCP application's user interface. For that I started with the sample test which worked perfectly as documented here. I wanted to try similarly on our application and for that I checked out our UI plugin and…
prakashjv
  • 329
  • 2
  • 8
  • 16
0
votes
2 answers

SWTbot tests not behaving as expected

So I'm testing an eclipse plugin with SWTbot and I'm not getting the result I'm expect - when I cut the test down it turns out that the problem isn't with the bot it's with some code that I've copied accross from another part of the program (where…
Joe
  • 4,367
  • 7
  • 33
  • 52
1 2 3
9
10