在 C# Selenium 项目中为 Allure 报告定义步骤
Defining steps in C# Selenium project for Allure report
我想知道是否可以像 Java 一样在 C# 中定义测试的诱惑步骤。有什么使用方法吗?
@Step("Step title: {0}")
public void func(String parameter, WebDriver driver) {}
好的,我找到答案了
public Page DoAction(Object object)
{
AllureLifecycle.Instance.WrapInStep(() =>
{
pageInput.SendKeys(object.field);
}, "Action");
return new HomePage();
}
我想知道是否可以像 Java 一样在 C# 中定义测试的诱惑步骤。有什么使用方法吗?
@Step("Step title: {0}")
public void func(String parameter, WebDriver driver) {}
好的,我找到答案了
public Page DoAction(Object object)
{
AllureLifecycle.Instance.WrapInStep(() =>
{
pageInput.SendKeys(object.field);
}, "Action");
return new HomePage();
}