Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to preserve outputdir/images between test runs
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
 
fratus  
View profile  
 More options Nov 3, 9:44 am
From: fratus <ffratace...@comcast.net>
Date: Tue, 3 Nov 2009 06:44:40 -0800 (PST)
Local: Tues, Nov 3 2009 9:44 am
Subject: How to preserve outputdir/images between test runs
I'm invoking testng through ant specifying a list of test.xml  to
execute using xmlfileset. All tests are run from on single <testng>
call. I also save screen shots of errors in outputdir/images. The
problem I'm having is that the contents of outputdir/images are
deleted for every test defined in xmlfileset. Only the results of the
last test set executed are preserved.

Is there a flag to set in <testng> that will preserve the contents of
outputdir/images? Or, what do I have to do to run multiple tests in
one testng invocation and preserve the execution output from each
test.

Thanks,

Fernando


    Reply    Reply to author    Forward  
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.
Cédric Beust ♔  
View profile  
 More options Nov 3, 10:14 am
From: Cédric Beust ♔ <cbe...@google.com>
Date: Tue, 3 Nov 2009 07:14:42 -0800
Local: Tues, Nov 3 2009 10:14 am
Subject: Re: [testng-users] How to preserve outputdir/images between test runs

Hi Fernando,

You could ask TestNG to generate its output in a different directory every
time (maybe one named after the current date and time?).

--
***Cédric
*


    Reply    Reply to author    Forward  
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.
fratus  
View profile  
 More options Nov 3, 10:56 am
From: fratus <ffratace...@comcast.net>
Date: Tue, 3 Nov 2009 07:56:34 -0800 (PST)
Local: Tues, Nov 3 2009 10:56 am
Subject: Re: How to preserve outputdir/images between test runs

On Nov 3, 10:14 am, Cédric Beust ♔ <cbe...@google.com> wrote:

How can I do that? I'm doing one invocation of testng via ant in where
I already specify outputdir. For example:

<testng outputdir="test-output">
  <xmlfileset dir"." includes="${xmlFileSet}"/> where
xmlFileset="Test1.xml,Test2.xml"
</testng>

I'm thinking that in order to do what you are saying I would have to
make individual invocations of <testng> each with it's own value for
outputdir. That's fine, but the problem I think I will run into is
creating once consolidated report.

Fernando


    Reply    Reply to author    Forward  
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.
Harihara Vinayakaram  
View profile  
 More options Nov 3, 11:01 am
From: Harihara Vinayakaram <hvr...@gmail.com>
Date: Tue, 3 Nov 2009 21:31:59 +0530
Local: Tues, Nov 3 2009 11:01 am
Subject: Re: [testng-users] Re: How to preserve outputdir/images between test runs

Ant has a <tstamp/> task which sets the values of properties TSAMP etc (
http://ant.apache.org/manual/CoreTasks/tstamp.html).  So you can use
something like

<testng outputdir="out/$TSTAMP/" >....

Hope that helps

Regards
Hari


    Reply    Reply to author    Forward  
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.
fratus  
View profile  
 More options Nov 3, 11:49 am
From: fratus <ffratace...@comcast.net>
Date: Tue, 3 Nov 2009 08:49:42 -0800 (PST)
Local: Tues, Nov 3 2009 11:49 am
Subject: Re: How to preserve outputdir/images between test runs

This did not work as <testng> is only invoked once from my ant task
therefore only one directory is created at runtime. All test suites
specified in xmlfileset have their output land in the same outputdir
therefore overwiting the contents of outpudir/images.

Am I missing something here?

Thanks,

Fernando

On Nov 3, 11:01 am, Harihara Vinayakaram <hvr...@gmail.com> wrote:


    Reply    Reply to author    Forward  
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.
Cédric Beust ♔  
View profile  
 More options Nov 3, 11:52 am
From: Cédric Beust ♔ <cbe...@google.com>
Date: Tue, 3 Nov 2009 08:52:36 -0800
Local: Tues, Nov 3 2009 11:52 am
Subject: Re: [testng-users] Re: How to preserve outputdir/images between test runs

What's this images/ directory?  It's not generated by TestNG, so is it
coming from your code?

If it is, then you can adjust your code to add a time stamp to it...

--
***Cédric
*


    Reply    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google