2.10.2
Release 2.10.2 of the project contains the latest FitNesse (20161106) and Selenium (2.53.1) releases.
Please note: starting with version 20160515 FitNesse requires Java 7, that means this project will no longer work with Java 6.
To get started by running some sample tests (if you have a Java runtime installed): just download the standalone.zip, extract it and run it (using 'java -jar fitnesse-standalone.jar -p 9090
', or on Windows just double clicking the jar to run the application on port 80
instead of 9090
) from the directory where the 'standalone.zip' was extracted and open a browser to http://localhost:9090/HsacExamples
.
Please note: please extract the zip to a location without spaces in its own name or in the names of its parents.
A clone or download of the sources and running with Maven and Java Development Kit is the way to go if you want to develop/debug fixtures.
To incorporate the fixtures in an existing FitNesse project you can also get it from Maven Central
<dependency>
<groupId>nl.hsac</groupId>
<artifactId>hsac-fitnesse-fixtures</artifactId>
<version>2.10.2</version>
</dependency>
An example of Maven based project using this baseline can be found at: https://github.com/fhoeben/sample-fitnesse-project.
New in 2.10.2:
- Added fixture that can read and then remove first line of text file (to store non-reusable test data), #106.
- Ensure XmlHttpTest and JsonHttpTest can show request URLs properly (i.e. don't try to format them as XML or JSON)
- Prevent issue for users working on Windows with Git when using FitNesse's new page format (.wiki), by ensuring these files do not get Windows line endings (workaround for unclebob/fitnesse#999)
- Maven project now also removes pagesources and downloads files (and not just screenshots) created by BrowserTest on
clean
New in 2.10.1:
- MockXmlServerSetup allows response headers to be configured, fixing #62.
- NgBrowserTest allows subclasses to define method that do not require waiting for Angular using
@NoNgWait
, #102 . - Workaround for unclebob/fitnesse#989 in sample wiki content
New in 2.10.0:
- Upgraded FitNesse to 20161106. Sometimes the wiki-pages will not show after upgrading an existing installation. This can be addressed by removing the directory
wiki/FitNesseRoot/files/pagesources
(or renaming all .html files to give them a different extension). This is also the reason page sources are now saved using a .HTML extension (instead of .html). - HttpTest (and JsonHttpTest and XmlHttpTest) improved support for testing asynchronous services, #98.
- BrowserTest: page source saved on exception, or by
save page source
, now also saves the content of any (i)frames contained in the top-level page, #96. - All http status codes 4xx and 5xx are handled the same way. Previously some were handled as 'invalid responses' and others were not. Now they all are considered 'invalid'. This means that for instance rows in a script using HttpTest, XmlHttpTest or JsonHttpTest that perform a 'get' or 'post' which returns a status code between 400 and 599 should start with a
reject
cell to indicate an 'error response' is expected. - HttpTest now uses Apache HttpClient version 4.5.2, #92.
- Selenium chromedriver updated to 2.25
New in 2.9.2:
- No longer bundle selenium-htmlunit (which was accidentally no longer excluded when its maven artifactId changed), reducing standalone.zip's size considerably.
- HttpTest: by default don't set cookies' version when copying from browser.
- Added helper method in ReflectionUtils to set private fields (can come in handy when you want to override a private field in Environment, without setter, to override default behaviour)
New in 2.9.1:
- BrowserTest: Add ability to click on e-mail address, or select it from dropdown, without having to escape the e-mail address in the wiki content (i.e. place it between
!-
and-!
) #88 - HttpTest: Add ability to copy cookies from Selenium driver (e.g. BrowserTest) #89
New in 2.9.0:
- HttpTest: stores all values if a header is received more than once (#68)
- HttpTest: allows received calls to store cookies received, so they can be sent with subsequent calls and/or explicitly checked (#87)
New in 2.8.1:
- Upgrade Selenium to 2.53.1
- Address bug where storyboard table would stop test as soon as an alert was shown #84.
New in 2.8.0:
- BrowserTest: Ability to deal with ambiguous 'places' by specifying a 'search context' #82
- BrowserTest: Before throwing an exception on timeout, or element not found, one last attempt is made to perform the action. This to prevent exceptions where the page is updated after last check, but before image and page source shown are created (leading the screenshot and source showing a situation that would not cause an exception).
- New utility fixture StopTestFixture: Allow test to be stopped if a variable does not meet expectation #83
- Updated Selenium's
chromedriver
to 2.24 (fixes handling of alerts). - Included a patch to already include more information about test execution context to JUnit listeners, before a FitNesse release including the pull request to have that as standard feature: unclebob/fitnesse#948.
- Added a 'teamCity' profile to the
pom.xml
to have the special JUnit listener for TeamCity be active during a test run (leading to better progress reporting/timing for tests run by TeamCity).