Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Output message to console
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Finn Neuik  
View profile  
 More options Sep 16 2010, 6:02 am
From: Finn Neuik <fin...@gmail.com>
Date: Thu, 16 Sep 2010 11:02:10 +0100
Local: Thurs, Sep 16 2010 6:02 am
Subject: Output message to console

Hi there - I'm trying to output a message to the console when our tests are
running.

We already have our Robot tests integrated with our CI server (TeamCity) by
transforming the report XML which gives us pass/fail and counts of each but
I'd like to extend this by reporting which tests are running, how long each
takes, etc whilst the tests are executing.I can do this by outputing
messages to the console by putting the following in the test setup and
teardown respectively:

##teamcity[testStarted name='${TEST_NAME}' captureStandardOutput='true']
##teamcity[testFinished name='${TEST_NAME}']

I've tried using the Log keyword with the level set to WARN, but then these
messages will appear as errors in the log. Is there any way of sending raw
output to the console without this happening (I don't really even need these
in the log).

Thanks
Finn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pekka Klärck  
View profile  
 More options Sep 16 2010, 1:26 pm
From: Pekka Klärck <p...@iki.fi>
Date: Thu, 16 Sep 2010 20:26:42 +0300
Local: Thurs, Sep 16 2010 1:26 pm
Subject: Re: Output message to console
2010/9/16 Finn Neuik <fin...@gmail.com>:

There are at least two ways to do this:

1) Implement a keyword that writes messages to stderr stream. These
messages are echoed to the console as well as written to the log.

2) Implement a listener that prints this information. Outputs are not
captured when listeners are executed so whatever they print to stdout
or stderr will end up to the console directly. Listeners also have
information about how long a test took readily available. For more
information about listeners see:
http://robotframework.googlecode.com/svn/tags/robotframework-2.5.3/do...

Cheers,
    .peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pekka Klärck  
View profile  
 More options Sep 16 2010, 4:31 pm
From: Pekka Klärck <p...@iki.fi>
Date: Thu, 16 Sep 2010 23:31:07 +0300
Local: Thurs, Sep 16 2010 4:31 pm
Subject: Re: Output message to console
Hi Finn,

Great that you got this working. If I remember correctly, others have
also integrated Robot Framework with TeamCity. Is there enough generic
in the integration that a separate TeamCity plugin could be created?

Thanks also for the kind words. Always nice to hear positive feedback.

Cheers,
    .peke, a Finn too =)

2010/9/16 Finn Neuik <fin...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pekka Klärck  
View profile  
 More options Sep 18 2010, 7:46 am
From: Pekka Klärck <p...@iki.fi>
Date: Sat, 18 Sep 2010 14:46:00 +0300
Subject: Re: Output message to console
[Replying also to the list.]

2010/9/17 Finn Neuik <fin...@gmail.com>:

> I think a listener would be pretty generic - currently we're using XSLT to
> transform the test output into the results which TeamCity requires but
> looking at the listeners we can do everything using those instead. This
> would also have the advantage that I can remove the pause I need before
> doing the transform whilst waiting for the report to finishing spooling.

Sounds good.

> I've come across a couple of issues - first of all the test results are only
> getting reported at the end of the test run rather than in realtime. I think
> is probably just something I'm missing in what TeamCity requires so should
> be easy enough to solve.

Listeners allow real time updates so this sounds like an issue with
TeamCity integration. Hope you can resolve it.

> The other is that some of our test names have characters which cannot be
> output to the windows console using the straight print statement due to code
> page issues, so I'll need to transform the output I guess.

Do you necessarily need to go through the console? Could you use files
instead? Or does TeamCity have an API you could you directly from the
listener? That would probably be the best solution.

> I'll try and solve these issues next week and share the results then.

Cool! If you come up with something generic, are you interested in
writing a wiki page about TeamCity integration? If there's some
generic code, starting a separate project might be even better option.

> Cheers
> Finn - the world can't have enough Finns I think!

Must agree with that! =)

Cheers,
    .peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Fwd: Output message to console" by Pekka Klärck
Pekka Klärck  
View profile  
 More options Sep 22 2010, 7:45 pm
From: Pekka Klärck <p...@iki.fi>
Date: Thu, 23 Sep 2010 02:45:01 +0300
Local: Wed, Sep 22 2010 7:45 pm
Subject: Fwd: Output message to console


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DMW  
View profile  
 More options Nov 1 2010, 1:09 pm
From: DMW <dwo...@smarttech.com>
Date: Mon, 1 Nov 2010 10:09:02 -0700 (PDT)
Local: Mon, Nov 1 2010 1:09 pm
Subject: Re: Fwd: Output message to console
Hello gentlemen,

I would just like to mention we are looking at options for TeamCity /
RF integration as well, and if anything exists that could be shared,
we would be most interested and thankful :)

Regards,

Dave Woods

On Sep 22, 5:45 pm, Pekka Klärck <p...@iki.fi> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »