[adsense]An open source tool can be used to test product by various stakeholders. These make include
Fitnesse, is written and maintained in java, hence it’s very easy to integrate it with java codebase, but integration with c++ code-set is a challenge. There are some approaches as mentioned below
- integration using JNI (Java Native interface)
- using cslim (open source maintained for fitnesse)
- Other approach
- Download Fitnesse from official website (www.fitnesse.org)
- run it using command (java –jar fitnesse-standalone.jar –p 8080)
- Port number is chosen as 8080, if port is not mentioned then default port 80 is considered.
- Test whether application is up, using browser by accessing the http://127.0.0.1:8080
New Test Page
- Create a new Test page using the Add option, coming on Top Right
- Make sure to mention valid Page Name (refer Wiki Rules for Page Name)
- Add the contents as mentioned below
- Division is a fixture that can be referred as first record of the table. Refer fixture documentation at http://fitnesse.org/FitNesse.UserGuide.FixtureGallery
- This column fixture defines
- two input attributes namely (numerator & denominator)
- two output attributes (quotient & Multiply)
- Input attributes should be public member variables, where as output attributes referred to member functions inside the fixture.
How to test it now
- use command (javac –classpath <fitnesse jar file location> Division.java)
- Above command will generate the class file & it’s done. Go ahead to browser and test the page by clicking on the test button.
- In case of +ve results it will display green colour else red colour will be displayed, mentioning the expected as well as actual output.
10total visits,2visits today