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
2
votes
2 answers

Match recursively all the Widgets of a Shell with SWTBot

I was wondering if there's any way to get all the widgets in a given Shell, including widgets that are grandchildren of Shell. What's the easiest way to accomplish this?
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
2
votes
1 answer

Getting the text from composite in eclipse using the SWTbot API

I am trying to get the Text from a Composite in Eclipse using the SWTbot API. I have Composite which contains Main Group and That Main Group Contains Child Groups. The problem i am facing is i am not able to get the Text Inside the Composite, is…
user1344022
  • 193
  • 2
  • 3
  • 10
2
votes
1 answer

How can I run an Eclipse plug-in written by me that automates Eclipse through its GUI using SWTBot

I wrote an Eclipse plug-in using SWTBot to automate Eclipse through its GUI. Actually I'm running this plug-in from Eclipse with Eclipse Application run configuration to test it. That opens a new Eclipse instance. After that I can start the plug-in…
vdani
  • 27
  • 2
2
votes
2 answers

java.awt.Robot equivalent in SWT

I am writing SWTBot tests for application, that has some components written in Delphi. Naturally, I am not able to handle these components via SWTBot. I found a workaround, I just set focus to the view or editor that contains the delphi component.…
Jan Hruby
  • 1,477
  • 1
  • 13
  • 26
2
votes
2 answers

SWTBot in eclipse- How to find a project's popup menu (right click menu)

In my SWTBot test, I'm trying to open (and click) the menu that appears when right clicking on the open project in project explorer (the menu that contains New, Refactor, Import etc.) I tried to use…
1
vote
3 answers

Eclipse RCP Buildtool

I want to automate the Build Process of an existing RCP application with an own target platform. Now I can't decide between Ant and Maven ore maybe there is a better tool?! The tool should be easy to set up, and should run JUnit and SWTBot…
Orri
  • 920
  • 1
  • 8
  • 20
1
vote
1 answer

Looking for an automated UI tester tool for SWT (with Eclipse RCP)

What I tried so far: SWTBot and WindowTester. My problem with SWTBot is that I can click into an edit field, but I can't type into it. I looked up this issue in google and it looks like that SWTBot does not have this feature implemented. With…
Adam Arold
  • 29,285
  • 22
  • 112
  • 207
1
vote
1 answer

SWTBot - Could not find a display - Eclipse 2020

I'm trying to use SWTBot on Eclipse and run into some trouble when following some tutorials and exemple. On eclipse 2020-09 whenever I try to run a code I get an error due to the method SWTBot() to initialize the bot. Vogella Code In Eclipse 2020 It…
disappear
  • 11
  • 2
1
vote
0 answers

Swtbot.syncExec() problem when used in custom class

I'm learning to use SWTBot and I met this problem. Here's my code in groovy. class A{ SWTBot bot = new SWTBot() def foo(){ bot.syncExec { ... } } } The function foo() works fine when its not a class method. But when I…
Zteey
  • 11
  • 3
1
vote
1 answer

Jenkins Integration Tests on Windows: problems with some GUI functionality

We are running our GUI integration-tests on a Jenkins build-slave. The slave is running Windows Server 2012. Our application is built on Java RCP and uses SWTBot for testing. The problem is, that most of the time, the tests fail at a point where the…
user3726374
  • 583
  • 1
  • 4
  • 24
1
vote
2 answers

Open SWTBot test Recorder with Eclipse RCP application

I want to use SWTBot Test Recorder with my Eclipse RCP Application but the SWTBot recorder doesn't start with my application, when I try to run it. What I've done with Eclipse: File > New > Other > Run Test Recorder > Record Test Senario on another…
1
vote
2 answers

Automation tool to deal with SWT and NatTable

I have a task to find out best automation tool for my desktop based product. When I discussed with developers, they said, the product uses SWT (Standard Widget Toolkit) for GUI development, and used Nuebula Project (NatTable, tableCombo) for tables…
Mandar Kale
  • 337
  • 2
  • 13
1
vote
1 answer

Testing SWT application using SWTBot:

Testing SWT application with SWTBot: I came across one requirement, where I need to test an SWT application using SWTBot. I had no idea how to start with SWTBot, after referring few blogs I can setup the SWTBot using eclipse. And also I found that…
Anand
  • 11
  • 1
1
vote
0 answers

Java product and plugin in eclipse require different library versions

I am trying to test an eclipse product with the Java SWTBot, unfortunetly the product i am testing defines plenty of libraries in the target plattform, like older versions of org.eclipse.jface or org.junit. Now i cannot setup the SWTBot in eclipse,…
Iwan1993
  • 1,669
  • 2
  • 17
  • 25
1
vote
0 answers

How to get Image from SWTBotTreeItem?

So I have an Eclipse based application, that I need to write automated UI test for. The solution is, obviously, SWTBot. There is a TreeItem with an Image, that can (in the application code) be accessed with item.getImage(). How do I access the…
Jiří Kantor
  • 744
  • 1
  • 5
  • 12
1 2
3
9 10