Learn, Share and Keep Learning
| FitNesse - Introduction |
| Testing Tools - Test Execution |
|
FitNesse is a Wiki built on top of Fit framework which is used for automating Acceptance test cases. FitNesse enables customers, testers and programmers to learn what their software should do, and to automatically compare that to what it actually does do. In very simple terms, it compares customer's expectations to actual results. This tool is built on top of FIT framework. Fit and FitNesse, both believe that great software requires collaboration and communication. These tools enhance the collaboration between customer, testers and programmers by providing a single platform for communication. FitNesse can be seen as a software testing tool, a WIKI or a web server.
Why FitNesse is needed? It should be understood that purpose of FitNesse is to fix the broken requirement process by enhancing collaboration and enabling deterministic executable automated tests. It can be argued that why FitNesse is needed for test driven development methodology where everything is anyway driven by tests or unit tests. Using unit testing, usually programmers make sure that their design is sound and there is no defect, but they do not necessarily give information on whether feature itself is being built according to customer expectation or not. How it is implemented?? In order to read those table and test your application under test with the data used in these tables, you need to write Fixture Code. You can imagine that Fixture Code is a bridge between the table and application under test. It understands the language of table and use this information to exercise the functionality of application. There are different type of table styles and corresponding fixture styles to suite your application need. These tables are created on the FitNesse test pages. If you want to execute more than one test pages, you can combine them in the test suite. You can specify that page is a suite page by changing its page properties. You can also use setup and teardown on test pages to make sure that test environment is setup properly before starting the test suite execution and environment is cleaned after it is finished. As everything else, setup and teardown is also implemented as tables. Tests created in FitNesse can be executed from command line as well. There are many benefits of doing that. For example, you can debug them easily, you can include these in your build script, it removes the prerequisite of starting web server to execute tests and it can generate output in HTML or XML format. java fitnesse.runner.TestRunner [options] host port page-name [options] can be used to store results, format results, running specific tests etc. This TestRunner offers three different formats for output. HTML, XML and a plain text format called Result format. Result format is an intermediate format used to store the data while the test is executing. These results typically goes in the temporary file and after the execution submitted to the FitNesse for formatting. |