I have a batch file which runs NUnit console, and points at a single test list follows:
nunit-console /result:console-testResults1.xml /work:C:\Selenium\TestResults /runlist:C:\Selenium\testlist.txt "C:\Selenium\VisualStudio\Automated Tests\Automated Tests\AutomatedTests\bin\Debug\AutomatedTests.dll"
I was hoping I could add an extra command to get the console to run 2 or more tests lists at the same time, then get the results and output to a single file. Ive tried...
nunit-console /result:console-testResults1.xml /work:C:\Selenium\TestResults /runlist:C:\Selenium\testlist.txt /runlist:C:\Selenium\testlist2.txt "C:\Selenium\VisualStudio\Automated Tests\Automated Tests\AutomatedTests\bin\Debug\AutomatedTests.dll"
... and variations of that. The above will just run testlist2. Other attempts dont work at all.
Is what im trying to do possible? Is there an alternative method that doesnt involve using the whole command lines again and having two results files produced for the seperate test lists.
Reason I want one results file out of this is because I will be
automatically sending the results to stake holders, and dont want
multiple e-mails or multiple results in one e-mail.
Best regards
AlmightyJoygasm
no, /runlist is not a repeatable option. You'll have to combine the lists.
--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discus...@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nunit-discuss.
For more options, visit https://groups.google.com/d/optout.
I mean put all the entries into s single file. What's the purpose of having two files?
nunit-console /result:console-testResults1.xml /work:C:\Selenium\TestResults /runlist:C:\Selenium\testlist.txt "C:\Selenium\VisualStudio\Automated Tests\Automated Tests\AutomatedTests\bin\Debug\AutomatedTests.dll"
andnunit-console /result:console-testResults2.xml /work:C:\Selenium\TestResults /runlist:C:\Selenium\testlist2.txt "C:\Selenium\VisualStudio\Automated Tests\Automated Tests\AutomatedTests\bin\Debug\AutomatedTests.dll"
/runlist:C:\Selenium\testlist.txt into the command line more than once.
Best regards
AlmightyJoygasm
Since NUnit 2 has no parallel capabilities, this wouldn't work even if you could use separate lists.
The Nunit 3.0 alpha runs fixtures in parallel, but there is as yet no way to order the individual tests. I think this may be the way for you to go in the future.
Charlie
[TestFixture(Browser.Firefox)]
[TestFixture(Browser.Chrome)]
[TestFixture(Browser.IE)]
public class Web_Master_Header : SeleniumBaseClass
{
private IWebDriver driver;
public Web_Master_Header(Browser browser)
{
driver = StartBrowser(Web_Common.Application, browser);
}
xml_grep --pretty_print indented --wrap run-result --descr '' --cond "run-result" *.xml > output.xml
You might need to tweet above slightly as I believe run-result may not be the top heading just an example. You can the wire this up in a script easily to take for instance n args on the command line and automatically do this. Same is possible in windows though I gave a Linux/osx command line
Cheers,
Greg
--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discus...@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nunit-discuss.
For more options, visit https://groups.google.com/d/optout.