|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
How to preserve outputdir/images between test runsI'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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: How to preserve outputdir/images between test runsHi 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 On Tue, Nov 3, 2009 at 6:44 AM, fratus <ffratacelli@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: How to preserve outputdir/images between test runsOn Nov 3, 10:14 am, Cédric Beust ♔ <cbe...@...> wrote: > 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 > * > > > > On Tue, Nov 3, 2009 at 6:44 AM, fratus <ffratace...@...> wrote: > > > 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- Hide quoted text - > > - Show quoted text - 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: How to preserve outputdir/images between test runsAnt 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 On Tue, Nov 3, 2009 at 9:26 PM, fratus <ffratacelli@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: How to preserve outputdir/images between test runsThis 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...@...> wrote: > 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 > > > > On Tue, Nov 3, 2009 at 9:26 PM, fratus <ffratace...@...> wrote: > > > On Nov 3, 10:14 am, Cédric Beust ♔ <cbe...@...> wrote: > > > 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 > > > * > > > > On Tue, Nov 3, 2009 at 6:44 AM, fratus <ffratace...@...> wrote: > > > > > 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- Hide quoted text - > > > > - Show quoted text - > > > 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- Hide quoted text - > > - Show quoted text - You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: How to preserve outputdir/images between test runsWhat'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 On Tue, Nov 3, 2009 at 8:49 AM, fratus <ffratacelli@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |