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

SWTBotTest Case should be halted until Progressbar is over

I am relatively new to SWTBot for Tool Testing.I am runing JUnit Test case where TestCase should run on selection of project and files in the project should be loaded before the test case starts executing but Testcase starts executing without…
El cucuy
  • 85
  • 9
0
votes
1 answer

How to use org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.getNode(String nodeText,int index) method?

I am using this method in my framework and it started giving me exception like " org.eclipse.swtbot.swt.finder.exceptions.AssertionFailedException: assertion failed: The index (1) was more than the number of nodes (1) in the tree." Following is the…
Mandar Kale
  • 337
  • 2
  • 13
0
votes
1 answer

SWTBot in headless mode and java.lang.ExceptionInInitializerError

We meet the following problem. In case we try to excute our automated test suite unde Jenkins management we receive java.lang.ExceptionInInitializerError in test that work with keyboard. Executing tests unde Jenkins control means that SWTBot in…
Alexander
  • 342
  • 4
  • 14
0
votes
1 answer

How to link a Part from an RCP App to SWTBot?

I am starting to use SWTBot to test my application Eclipse RCP v4. This is my code, to get a part via an id and activate it. protected static void openPart(final String id) { Display.getDefault().syncExec(new Runnable() { public void…
0
votes
2 answers

SWTWorkbenchBot not able to find "Console" view

I am exploring the usage of SWTWorkbenchBot to use in my automation of an eclipse-based project. However, something seems weird when trying to get the "Console" view. SWTWorkbenchBot workbenchBot = new SWTWorkbenchBot(); String consoleTitle =…
user3396919
  • 141
  • 1
  • 10
0
votes
2 answers

How to find a image button using SWTBot

I have a SWT Button, it does not contains text, just an image. I searched for methods, but I can't find a way to press it.
0
votes
1 answer

How to set the Target Bot API for SWTBot

I'm using SWTBot 2.3.0 and I want to record actions which are executed on a Grid object. I saw that the recorder has this select button Target Bot API. I already have the nebula plugins in my run configuration. Do I have to add the…
Andrei
  • 19
  • 4
0
votes
2 answers

SWTBot Could not find node with text: Dynamic Web Project

I am using the SWTBot recorder to test a very simple feature. I just want to create a Dynamic Web Project and then delete it. But it won't even create the project. Why is it blowing up here? Here is the code that the recorder…
Chris Bolton
  • 2,162
  • 4
  • 36
  • 75
0
votes
1 answer

Installing SWTBot on Eclipse Indigo RCP

I have eclipse platform version 3.7.1 with eclipse RCP(same version). I want to install SWTBot feature using "Install New Software". My steps for this: Open "Install New Software" view. Enter in the field update site…
0
votes
0 answers

SWTBot - why can't run the same class using JUnit4TestAdapter?

I'm using SWTBot to run automation on my enviroment. I've created 2 Suites and 2 test cases in each - the problem is that I used the same Test case for both suites. TestSuite suite = new TestSuite("Test Suite 1"); suite.addTest(new…
0
votes
1 answer

SWTBot becomes very slow

I want to test an Eclipse RPC with SWTBot. The tests itself run fine. But the problem is performance: The first testcases complete in about 1 minute, after a while they take 1 hour or longer. Each testcase seems to take significantly longer than its…
Ethon
  • 93
  • 2
  • 12
0
votes
3 answers

SWTBot eclipse - How to terminate (stop project) a running project

I'm trying to stop a running project using SWTBot plug-in (for Automation testing). I've tried to terminate the project with the following command: bot.toolbarButtonWithTooltip("Terminate").click(); but it doesn't work! also, I thought the problem…
0
votes
0 answers

Eclipse SWT Error : Could not find a menu within the shell 'Shell with text {Shell {C/C++ - Eclipse SDK}}

I work actualy in a swtbot test of a plugin. When i want to upgrade Juno to Luna. After passing in Luna version all tests passed. Or now I have an error at this line : bot.menu("Window").menu("Preferences").click(); that result this error : …
Damien Chesneau
  • 457
  • 2
  • 18
0
votes
2 answers

How do I get to the common tab in run configurations in Eclipse using SWTBot?

We're writing some tests using SWTBot, and we need to change some things in the common tab of the run configurations during the test. Any idea on how to navigate there? Thanks, Oren
Oren Sarid
  • 143
  • 1
  • 12
0
votes
1 answer

SWTBot Recorder Generated Code is not absolute

I am trying SWTBot in our own application. I am trying to use SWTBot Recorder to create my test cases first. But I am facing few issues. I have two questions. Please check on the comments I mentioned in each one below. I have a table view. It…
Jeevan
  • 447
  • 2
  • 8
  • 19