We have been really busy this month adding some exciting new features to Thucydides. Our latest release (Release 0.8.26) is finally out with the following features.
Selenium Remote web driver is now supported
The much awaited support for Selenium’s remote web driver has now been added to Thucydides. You can now run Thucydides tests on a remote server by setting the system property
webdriver.remote.url to the URL of the remote Selenium server. Thucydides will use the
webdriver.driver property to determine which browser to run remotely. Check out our user manual for more details.
Spring dependencies can now be directly injected in acceptance tests and step libraries
If you are running your acceptance tests on an embedded server such as Jetty, it is sometimes useful to have direct access to the service or business layer. For example, if a user action has a side effect such as writing audit logs to a database table or sending an email, it is useful and simpler to have your acceptance tests call the service layer directly to test for these side effects.
Although Spring provides excellent support for integration testing, it is not possible to make use of Spring’s
SpringJUnit4ClassRunner in Thucydides tests. The good news is that Thucydides Release 0.8.26 makes it possible to inject Spring dependencies in your junit acceptance tests. Further, if you write your tests in jbehave or easyb, you can still inject Spring dependencies directly in the step libraries.
The user manual explains this feature in detail with examples.
We hope you will find these new features useful. We have already started working on the next release. So keep watching this space for further announcements.
We published Release 0.8.24 of Thucydides yesterday. This release fixes several annoying bugs.
- (#Thucydides-68) : Browser window now resizes without the need of opening two windows in Firefox and Internet Explorer. Resizing is required for taking decent screenshots. However, in the absence of a way to resize Firefox window, Thucydides was using an annoying “trick” to open two simultaneous windows. This is no longer needed for Firefox and Internet Explorer.
- A bug that prevented users from disabling statistics recording (by setting the property
false) has been fixed. Earlier, statistics were recorded even if this option was set to
- (#Thucydides-74) : A new option has been provided to disable native events by setting the property
false. Native events are enabled in Thucydides by default. But Firefox 12 on Linux was failing to launch due to this because native events are known to be unreliable for Firefox on Linux. With the new property, you now have the option of disabling native events by setting the property to
false. This property is true by default.
- (#Thucydides-76) : Due to a bug in creating report file names based on hashcodes, incorrect file names were generated for parameterized tests. This was causing a mismatch between the hyperlinks in reports index.html and the actual report file names. This bug has been fixed.
thucydides.batch.countproperty has been aliased to
thucydides.batch.sizefor better readability. Both properties can be used interchangeably.
- (#Thucydides 77):
@Pendingannotation will now ignore tests as expected. Earlier, the tests annotated as
@Pendingwere not getting ignored if they contained steps. They were shown in the report either as passed or failed.
- (#Thucydides 78): Public non-step methods in UserSteps were causing the report to show the tests as passed with all steps marked as success even if the non-step method failed with an assertion error. This has been fixed.
As usual, you can use the mailing list or our Jira tracker to inform us about any bugs you spot or features you wish to see in future releases.