Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to relaunch AUT before each test class in test suite?
How to relaunch AUT before each test class in test suite? [message #500459] Thu, 26 November 2009 09:23 Go to next message
Pavel Stepanov is currently offline Pavel StepanovFriend
Messages: 2
Registered: July 2009
Junior Member
Hi All,

I see that by default SWTBot runner launches application under test for the whole test suite once. During testing I sometimes face critical issues that could shut down the application, so all other tests in suite fail afterwards. So I'm just wondering if it'spossible to relaunch AUT for each test class in the suite?

Thanks in advance,
Pavel
Re: How to relaunch AUT before each test class in test suite? [message #500522 is a reply to message #500459] Thu, 26 November 2009 14:26 Go to previous messageGo to next message
Benjamin Glaser is currently offline Benjamin GlaserFriend
Messages: 17
Registered: July 2009
Junior Member
I'm interested in this answer too.

And I'v got a pretty simular question.
Is it possible to launch the AUT by hand, do something an then start SWTBot to test the already started application?

Thx for reply
Benni
Re: How to relaunch AUT before each test class in test suite? [message #500530 is a reply to message #500459] Thu, 26 November 2009 14:28 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Short answer:

You can't! Fix the critical issues that cause the application to shutdown.

Workaround:

You can mark the tests with an @Ignore annotation[1] to ignore running
them if they are a problem; and once the bug that causes the app to
shutdown is fixed, you can replace the @Ignore annotation with @Test.

-- Ketan

[1] - http://junit.org/apidocs/org/junit/Ignore.html

Pavel Stepanov wrote:
> Hi All,
>
> I see that by default SWTBot runner launches application under test for
> the whole test suite once. During testing I sometimes face critical
> issues that could shut down the application, so all other tests in suite
> fail afterwards. So I'm just wondering if it'spossible to relaunch AUT
> for each test class in the suite?
>
> Thanks in advance,
> Pavel
Re: How to relaunch AUT before each test class in test suite? [message #502239 is a reply to message #500522] Mon, 07 December 2009 11:33 Go to previous message
intothephone intothephone is currently offline intothephone intothephoneFriend
Messages: 14
Registered: July 2009
Junior Member
1. Can't relaunch AUT... Because test suites resides at the AUT... But there's workaround, such as record the already executed tests and execute lefts after restarting
2. Use debug SWTBotTest, check Keep the JUnit running checkbox, you'll do something on AUT and rerun the testcases via remote execution commands
Previous Topic:New SWTBot build
Next Topic:running ui and non-ui tests with swtbot
Goto Forum:
  


Current Time: Sun Nov 23 08:47:11 GMT 2014

Powered by FUDForum. Page generated in 0.01680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software