I have problem with running test. I have one test with testCaseSource(three testCase) and now then I click to run test, they run together. I want them to run one after the other, is it possible?
static object[] TestData =
{
new object[] {"sssssssssssss"},
new object[] {"qwqwe"},
new object[] {"aaaaaaaaaaaaa"}
};
[SetUp]
public void Initialize()
{
driver.Navigate().GoToUrl("http://www.google.lt");
}
[Test,TestCaseSource("TestData"),]
public void TestMethod(string a)
{
IWebElement element = driver.FindElement(By.Name("q"));
element.SendKeys(a);
}
[TearDown]
public void Close()
{
driver.Close();
}
Aucun commentaire:
Enregistrer un commentaire