ie.Button(Find.ById("btn_find_customer")).Click();
ie.Button(Find.ById("btn_find_orders")).Click();
Table ordersTable = ie.Table(Find.ById("grdv_orders"));
Assert.That(ordersTable, Is.Not.Null);
Assert.That(ordersTable.TableRows.Length, Is.EqualTo(6 + 1));
}
DAO测试代码: [TestFixture]
public class OrderDAOTests
{
[Test]
public void ShouldFindOrdersByCustomerID()
{
string id = "ALFKI";
OrderDAO orderDAO = new OrderDAO();
List
Assert.That(orders.Count, Is.EqualTo(6));
}
}
文章来源于领测软件测试网 https://www.ltesting.net/