Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Combination of Parameterized and SWTBotJunit4 runners
Combination of Parameterized and SWTBotJunit4 runners [message #1738349] Tue, 19 July 2016 08:26 Go to next message
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 60
Registered: October 2010
Member
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 14:50 Go to previous messageGo to next message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 84
Registered: July 2009
Member
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 04:22 Go to previous message
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 60
Registered: October 2010
Member
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: Tue Apr 16 03:53:14 GMT 2024

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

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

Back to the top