0

Having following test flow:

foreach(tc in testcases)
    foreach(temperature in temperatures)
    {
        SetTemperature(temperature);
        foreach(position in positions)
        {
            Robot.GotoPosition(position);
            DoTest(tc);
        }
    }

This tests an external component on various temperatures and on various positions.

Is it possible to write an custom runner for nunitto archieve such a behavior?

Razer
  • 7,843
  • 16
  • 55
  • 103
  • Just use TestCaseSource and a normal runner? – Jon Skeet Apr 21 '13 at 19:53
  • You mean create parametrized testcase? So this multiplies up to `temperatures`*`positions`*`testcases` single testcases? For my situation: When selecting `TestcaseA` and `26°` the robot drives to all position and does the testcase. If all positions pass the test case is a pass. I don't want to put the robot into the testcase itself since all testcases have to do this. – Razer Apr 21 '13 at 20:02
  • You can use `TestCaseSource` to yield all the test cases - you don't need to specify a separate attribute for each combination. – Jon Skeet Apr 22 '13 at 07:14

0 Answers0