Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:45:27+00:00 2026-06-13T03:45:27+00:00

In my CI server, I’m implementing some logging/audit functionality – after every Fit test

  • 0

In my CI server, I’m implementing some logging/audit functionality – after every Fit test runs, in the TearDown page I’m logging some stuff to DB – Test Name, TimeStamp, some variables; I would also like to log if the test failed or passed – don’t seem to find any global variable readily available in FitNess that would help. Could anyone give me some ideas how to do that?

thanks!
O.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:45:28+00:00Added an answer on June 13, 2026 at 3:45 am

    TearDown doesn’t know if a test passed or failed. That is only known by FitNesse after the test is complete. What you can do is run fetch the last execution as XML and then parse that. Here is a snipped from ANT that will do something like that.

    <!--Then run the page history responder to get the latest run of fitnesse in xml format-->
            <java classpath="${toString:compile.classpath};build\classes" fork="true" jar="javalib/fitnesse.jar" maxmemory="256m" output="${fitnesse.output.file}.temp">
                <arg value="-c" />
                <arg value="${fitnesseSuite}?pageHistory&amp;resultDate=latest&amp;format=xml" />
                <arg value="-p" />
                <arg value="${fitnesse_port}" />
            </java>
    

    The one catch is that after you fetch it, you have to strip the http headers from the temp file that is created. But once you do that, you can use the test result data for your database. You can also create junit style results. Check out this example on transforming to junit: http://whotestedthis.squarespace.com/journal/2012/1/26/transforming-fitnesse-results-to-junit.html (shameless self promotion).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some work on a server that runs CentOS at the moment, and
A server application I'm working on built using C++ on Windows runs out of
Server Sent Events seem like a prime candidate for a jQuery plug-in. Page 921
Server creates new thread in a threadpool. This thread reads some stuff into buffer
Server side validation works great but client side will not work on some fields.
Server-side: var test; UserModel.findOne({name: 'guest'}, function(err, user) { test = user.name; }); console.log(test); This
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
server { listen 80; server_name ~^(?<custom>.+)\.(test)?website\.com$; location ~ ^/event/(\d+)$ { proxy_pass_header Server; proxy_set_header Host
Server Error in '/' Application. Parser Error Description: An error occurred during the parsing
Server Errors below: If an error occurred, a HTTP status code 503 (Service Unavailable)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.