Fitnesse startup parameters and Configuration

Source: Internet
Author: User

After the latest version of fitnesse 20140630 is started by default, the webpage style is completely different from the bootstrap style of fitnesse.org.
You must configure theme = Bootstrap in plugins. properties to start the bootstrap-style fitnesse.

Start the bootstrap-style fitnesse

After downloading the latest 20140630 fitnesse-standalone.jar from fitnesse.org,
Start fitnesse:

?
1 D:\fitnesse\fitnesse-20140630>java -jar fitnesse-standalone.jar -p 40630

Enter URL: http: // localhost: 40630 in the browser
The fitnesse website is as follows:

But fitnesse.org is like this:

This problem plagued me for two weeks. I accidentally saw the parameter table at fitnesse startup:

The startup parameters can be defined in plugins. properties,

Open the https://github.com/unclebob/fitnesse/blob/master/plugins.properties for the fitnesse source code site

See the following content:

?
123456789101112 ### Theme## Themes can be used to customize the look and feel of the wiki.# Build in theme include fitnesse_straight (the default), fitnesse_mint,# fitnesse_topnav and bootstrap (based on the Twitter bootstrap front-end# framework).##Theme=fitnesse_straightTheme=bootstrap ##

In plugins. properties, you have set the webpage style to bootstrap,

Download plugins. properties to the fitnesse running directory:

After restarting fitnesse, you can see the following website:

Success!

Run the following command to start the test case:

URL:

?
1 http://localhost:11026/BaiduMapApiSuite.GetIpLocation?test

Fitnesse also supports output of test results in XML format, as long as the URL is entered:

?
1 http://localhost:11026/BaiduMapApiSuite.GetIpLocation?test&format=xml

Note:

  • /Finalcounts/right is the number of test cases passed
  • /Finalcounts/wrong is the number of failed test cases
  • /Finalcounts/ignores is the number of unexecuted Test Cases
  • /Finalcounts/effectons indicates the number of test cases that cause exceptions, which is the statement that fitneese reports Java exceptions.

It indicates that/finalcounts/wrong +/finalcounts/effectons> 0
By calling this URL with curl or wget in the command line, you can start regression testing on a regular basis or after each installation in the continuous integration tool Hudson/Jenkins.

Start the test again in the command line mode:

Let's take a look at the startup command line parameters of fitnesse:

?
1234567891011 D:\fitnesse\fitnesse-20111026>java -jar fitnesse.jar -hUsage: java -jar fitnesse.jar [-pdrleoa]        -p <port number> {80}        -d <working directory> {.}        -r <page root directory> {FitNesseRoot}        -l <log directory> {no logging}        -e <days> {14} Number of days before page versions expire        -o omit updates        -a {user:pwd | user-file-name} enable authentication.        -i Install only, then quit.        -c <command> execute single command.

The-CCan execute a single test case or test suite

?
1 D:\fitnesse\fitnesse-20111026>java -jar fitnesse.jar -p 9001 -c "BaiduMapApiSuite.GetIpLocation?test&format=xml" > test-result.txt

Open text-result.txt:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.