Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Combination of Parameterized and SWTBotJunit4 runners
Combination of Parameterized and SWTBotJunit4 runners [message #1738349] Tue, 19 July 2016 04:26 Go to next message
Eclipse UserFriend
How about having a runner which combines Parameterized and SWTBotJunit4 runners?
Many swtbot tests need to pass parameters and hence need Parameterized runner. But then they miss the functionality of swtbot's runner which captures screenshot.
Note that capturing screenshot functionality is present in a package which is not exported by swtbot. So it will be convenient if such a combined runner is present in swtbot by default.
I have such an implementation. Will it be useful for swtbot community?
Re: Combination of Parameterized and SWTBotJunit4 runners [message #1738414 is a reply to message #1738349] Tue, 19 July 2016 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Aparna,

Sure, this sounds useful. Feel free to contribute it for review.

Patrick
Re: Combination of Parameterized and SWTBotJunit4 runners [message #1739024 is a reply to message #1738414] Wed, 27 July 2016 00:22 Go to previous message
Eclipse UserFriend
This is to inform all that "ParameterizedSWTBotJunit4ClassRunner" is contributed. It's available in the latest snapshot.
As described in the above messages, it's a combination of JUnit's Parameterized runner and SWTBotJunit4ClassRunner.
Typical usage is:
@RunWith(Parameterized.class)
@Parameterized.UseParametersRunnerFactory(ParameterizedSWTBotJunit4ClassRunner.RunnerFactory.class)
This should be followed by the swtbot test code which is compatible for Parameterized runner.

Thanks Patrick
Previous Topic:How to launch my SWTbot tests from console?
Next Topic:Headless Test with Maven/Tycho
Goto Forum:
  


Current Time: Mon May 19 11:51:35 EDT 2025

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

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

Back to the top