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

How do I open a new project and perspective in SWTBot plug-in test?

For example: I want to "test" Eclipse-CDT. I can't do it using Java code so I need to import a C-project. I didn't found it in Run Configurtion therefore I: * Create SWTBot Test Plug-in * Record a sequence of actions via SWTBot Test Recorder: **…
0
votes
1 answer

How to integrate cucumber-jvm with maven build

i'm trying to put some bdd into my eclipse plugin project, but can't figure out how to run my integration tests during maven build fase. To write my tests i'm using SWTBot framework. I already did the feature generation fase, and setup my tests. How…
keysuke
  • 97
  • 1
  • 1
  • 9
0
votes
0 answers

How to test Eclipse RCP application automatically? Like SWTBot

I have a Eclipse RCP application. It writes some files on disk and sends emails. I want to write automated tests for the application, so I was planning to use SWTBot for automatic testing of SWT GUI, but is it possible to write test cases in SWTBot…
0
votes
1 answer

Issue running Junit test case for eclipse RCP application

I am facing following exception while testing my exit handler for my Eclipse 4 RCP Application. !ENTRY org.eclipse.e4.ui.workbench 2 0 2014-06-10 14:09:22.607 !MESSAGE Could not run processor !STACK 0 org.eclipse.e4.core.di.InjectionException:…
Ashish
  • 14,295
  • 21
  • 82
  • 127
0
votes
1 answer

Eclipse RCP: getting the default perspective switcher button via id from SWTBot

In an Eclipse 3.7 RCP app, I would like to get the Default perspective switcher button via id for SWTBot/unit testing purposes to get around this: assertNotNull("PerspectiveBar not visisble", bot.toolbarButtonWithTooltip("Perspektive öffnen")); How…
0
votes
1 answer

SWTBOT selecting text of a dialog

i'm running a SWTBot test and i don't know how to select the text(message) of a dialog. i can get the text of the shell like: bot.activeShell().getText().equals("Login error") seen method for tooltip but not message. Thanks
Eli
  • 59
  • 5
0
votes
1 answer

Exception while dispatching event org.osgi.service.event.Event error while running SWTBot tests using ant

I am running the SWT-Bot tests using ant. The eclipse opens properly and runs the test cases. But very frequently I see the following error, !MESSAGE Exception while dispatching event org.osgi.service.event.Event…
Destructor
  • 3,154
  • 7
  • 32
  • 51
0
votes
1 answer

How to fire click on button?

I want to write test in SWTBot. The test should press on table add new row and then press on button of DateCombo and insert value to the cell.( value from the calender ) This is my code : public SWTBotTable AppExp_getGridTable(SWTBotView…
user1365697
  • 5,819
  • 15
  • 60
  • 96
0
votes
1 answer

SWTBot textWithLabel with more than two inputs

I wonder if more than two inputs can be filled in one text with textWithLabel method. bot.textWithLabel("Resolution", 0).setText("800"); bot.textWithLabel("Resolution", 1).setText("600"); above is not working. give me the solution. thanks in…
0
votes
1 answer

Looking for Automated or virtual keyboard for SWTBot

I am writing Junit test cases using SWTBot. One such test case is on Keyboard. I have written a test case using pressKeyBoardShortCut(keystroke) and i am passing keystrokes, but it is dependent on my physical keyboard of my system. I dont want my…
0
votes
1 answer

SWTBot DnD test with empty tree

First of all, Hello everyone, I need to test Drag and Drop function in a RCP application using SWTBot. The following simulates a DnD operation between two SWTBotTreeItems: bot.activeShell().bot().tree(0).getTreeItem(obj1).dragAndDrop(obj2); with…
0
votes
1 answer

Discover and click hyperlink

I'm trying to test by SWTBot hyperlinks inside my Eclipse's text editor. The problem is that the hyperlinks are shown on demand (an Eclipse feature), meaning - the token changes is revealed as hyperLink only when mouse moves over it + a keyboard key…
user1820248
  • 113
  • 1
  • 3
  • 8
0
votes
2 answers

SWbot testcases hanging in jenkins build

Followed the instructions given over here http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_Jenkins and successfully did the integration were the swtbot testcases worked fine but now all of sudden after adding few more swtbot testcases it…
Melwyn Jensen
  • 161
  • 1
  • 10
0
votes
2 answers

Access windows native message dialog box windowtester

I am a new to this. I am working on WindowTester.I could not open a new discussion page or I would tag it as Windowtester I am having difficulty of closing down windows native dialog box after pull down menu. The code is, ui.click(new…
ron
  • 281
  • 2
  • 4
  • 14
0
votes
2 answers

!MESSAGE Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer

I am getting this error when running a tester plugin (using SWTBot), for my product: !ENTRY org.eclipse.ui 4 4 2013-11-07 18:16:48.608 !MESSAGE Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer. 2013-11-07 18:16:48,611 main…
GGomes
  • 11
  • 1
  • 7