java - Parameterized test with ClasspathSuite -
i need run test multiple times in succession (4 times, 1 each browser testing webdriver). understand use case parameterized tests. however, utilizing classpathsuite
, seems cannot specify multiple @runwith
annotations.
is there way can test run multiple times , send sort of parameter (like 0 - 3 4 runs need) test?
i faced this, classpathsuite
handles fine. trick use these annotations in little dummy project finds & launches tests (across other projects):
@runwith(classpathsuite.class) @suitetypes(run_with_classes)
then test requiring specific runner uses runner directly, such @runwith(parameterized.class)
see section "running other runwith-suites" here: https://github.com/takari/takari-cpsuite
due wide range of tests, opted use options:
@suitetypes({run_with_classes, test_classes, junit38_test_classes})
(the default appears test_classes.)
Comments
Post a Comment