package net.thucydides.samples;
import net.thucydides.core.annotations.Managed;
import net.thucydides.core.annotations.ManagedPages;
import net.thucydides.core.annotations.Pending;
import net.thucydides.core.annotations.Steps;
import net.thucydides.core.pages.Pages;
import net.thucydides.junit.annotations.TestData;
import net.thucydides.junit.runners.ThucydidesParameterizedRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import java.util.Arrays;
import java.util.Collection;
@RunWith(ThucydidesParameterizedRunner.class)
public class SampleDataDrivenPendingScenario {
@TestData
public static Collection testData() {
return Arrays.asList(new Object[][]{
{"a", 1},
{"B", 2},
{"c", 3},
{"D", 4},
{"e", 5},
{"F", 6},
{"g", 7},
{"h", 8},
{"i", 9},
{"j", 10}
});
}
private String option1;
private Integer option2;
public SampleDataDrivenPendingScenario(String option1, Integer option2) {
this.option1 = option1;
this.option2 = option2;
}
@Managed(driver="htmlunit")
public WebDriver webdriver;
@ManagedPages(defaultUrl = "classpath:static-site/index.html")
public Pages pages;
@Steps
public SampleScenarioSteps steps;
@Test
@Pending
public void pending_scenario() {
steps.stepWithParameters(option1,option2);
}
}