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
1
vote
1 answer

Setting up an Eclipse plugin project correctly

What is the standard way (following all naming conventions) to set up an eclipse plugin project consisting of only one plugin. My plugin-project is called com.florian.regexfindandreplace. Right now I do the following: I have a feature project…
user172501
  • 332
  • 2
  • 11
1
vote
1 answer

Tycho Surefire argline -data not working

I am trying to change the default workspace for My SWTBot . but when i use /home/chakraborty/example/app/ide/example/SWTBbot_work -data…
Abhishek2k6
  • 425
  • 5
  • 9
1
vote
1 answer

How to (automatedly) test different ways to close an application with SWTBot (with Tycho)

Probably there is a simple answer to this, but I'm finding it hard to figure it out myself: How can I test different ways to exit an application with SWTBot? In my application based on the Eclipse RCP 3.x, you can close the application in three…
s.d
  • 4,017
  • 5
  • 35
  • 65
1
vote
0 answers

Test context menu of Grid

I have a org.eclipse.nebula.widgets.grid.Grid. To its header I've added a context menu (which is triggered by right click). I have to create some tests for this grid, using SWTBot (which doesn't support grids). How can I open the context menu? I…
Andrei
  • 19
  • 4
1
vote
1 answer

SWTBotShell widget not found exception

I am writing automated testing using swtBot in eclipse Juno Service Release 2.Below My code @BeforeClass public static void beforeClass() { SWTBotPreferences.KEYBOARD_LAYOUT = "EN_US"; bot = new SWTWorkbenchBot(); try { …
1
vote
1 answer

SWTBot Recorder Generated code bot.contextMenu not found

The following is the code generated by SWTBot Recorder. public class UserInterfaceTester extends SWTBotEclipseTestCase { @Test public void TableTest() { bot.tree().getTreeItem("wtrt").select(); bot.contextMenu("Expand…
Jeevan
  • 447
  • 2
  • 8
  • 19
1
vote
2 answers

Can SWTBot recognize Action Buttons?

I have an RCP Application with a ViewPart that has a toolbar with some Actions on it. These Actions are put on the toolbar by the system as simple Buttons with an icon and a tooltip. The Action looks like this: public class MyAction extends Action…
Terry
  • 14,529
  • 13
  • 63
  • 88
1
vote
1 answer

Unable to build a project on eclipse luna using swtbot

I am Running swtbot Test cases on eclipse luna.When I build a project manually it works fine.But when i try to build using swtbot (File -> context Menu -> Build Configuration -> build all) I am getting widget not found exception.When i launch…
chenna
  • 159
  • 1
  • 4
  • 14
1
vote
1 answer

How to recognize a shell on the desktop for testing using swtbot?

I have an application that generates an SWT UI (with a text entry field and two buttons, similar to eclipse workspace selector). I want to generate test cases for this using SWT bot. I get the application to run using java (by executing the double…
Tika
  • 11
  • 1
1
vote
1 answer

"Missing requirement: org.eclipse.swtbot.eclipse.core" when running SWTBot tests on the command line with Maven/Tycho

I currently try to run SWTBot tests on an Eclipse RCP via Maven. This is my pom.xml:
Ethon
  • 93
  • 2
  • 12
1
vote
1 answer

SWTBot - Wait for MessageBox

I am currently writing SWTBot tests and I encountered the problem that at one point I need to wait until an operation is finished and an Info-MessageBox informs me about the completion. This is how I currently try to do it: public void…
Ethon
  • 93
  • 2
  • 12
1
vote
1 answer

How to count the number of open editor instances in an Eclipse RCP Application?

I'm beginning to use the swtbot to test my reccent eclipse rcp projekt. A specific editor is opened multiple times in my application and want to count how often the editor is opened. How can i do that using swtbot? Thanks! :-)
Patrick
  • 585
  • 8
  • 22
1
vote
1 answer

Wait for any background progress going on in eclipse while testing using SWT Bot

I wanted to wait for any operation that are happening in eclipse and then proceed with the test-case, so I need to see if any operation are happening in the background, this is shown in Progress view, but I am unable to get any information using…
Destructor
  • 3,154
  • 7
  • 32
  • 51
1
vote
1 answer

Cant right click be performed in linux using swtbot?

I want to right click a context menu using swtbot, I am using the following code: treeitem.setFocus(); treeitem.contextMenu("context_menu_text").click(); The above code works fine in windows, but in Linux it throws a widget not found error.…
Destructor
  • 3,154
  • 7
  • 32
  • 51
1
vote
2 answers

Null pointer exception while using SWT Bot Generator in Eclipse

I am trying to use SWT Bot generator in eclipse but as soon as i say start recording i get a null pointer exception, here is the exception: !ENTRY org.eclipse.ui 4 0 2013-10-17 10:44:19.659 !MESSAGE Unhandled event loop exception !STACK…
Destructor
  • 3,154
  • 7
  • 32
  • 51