2

I am running my tests in Selenium using NUnit and Jenkins and it takes more then 2 hours to run all tests.

I want to see the progress of the tests for monitoring if everything is OK like a team city build

I installed the Test In Progress Report plugin but it doesn't work with NUnit

  • Are you working with a single build server? You might look at distributing your tests across multiple servers via jobs to get a faster response time. As far as I can tell from a quick search, the only other option available to you is to extend either Jenkins (by building your own plugin) or the In Progress plugin. – Kate Paulk Feb 17 '16 at 19:49
1

You can see the test progress in logs, you just need to add Execution details in your SetUp and TearDown like this:

private readonly Stopwatch _stopwatch = new Stopwatch();

[SetUp]
public void SetUp()
{
    _stopwatch.Start();
    Console.WriteLine("Running: {0}", TestContext.CurrentContext.Test.FullName);
}

[TearDown]
public void TearDown()
{
    _stopwatch.Stop();
    Console.WriteLine("Execution time: {0}", _stopwatch.Elapsed);
    if (TestContext.CurrentContext.Result.Status == TestStatus.Failed)
     // Screenshot generation
    _stopwatch.Reset();
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.