Feature: Capability(Model) module feature
Scenario: User is Logged In
Given Accelare url is launched
When User Enters valid username "yashodeep.patil@nitorinfotech.com" and password "Workfit2511#"
Then Verify if App Testing Accelare is opened
And Click on verify app testing page
Scenario: Create a new model
Given user navigated to new model form
When User click on new model link
Then User is able to see the model in dropdown model
And Click on verify app testing page
Scenario: Import the model
Given User navigate to the model import window
When user click on design button
Then user is able to upload the model
And Click on verify app testing page
Scenario: Export the model
Given User navigate to the model export window
When user click on Export button
Then user is able to export the model
And Click on verify app testing page
我想在执行功能文件之前删除 HTML 报告,因为发生了什么 HTML 报告文件正在覆盖该文件。
最佳答案
可以使用before注释来删除文件
如果您想在每个功能文件执行之前删除 HTML 文件,请向功能文件添加一些注释,并在 Before 方法中使用相同的注释,如下所示
功能:
@feature1
Feature: Capability(Model) module feature
Scenario: User is Logged In
在Before hooks中,您可以执行HTML报告删除操作。
@Before("@feature1")
public void beforeFeature() {
// HTML Delete Actions
}
关于java - 在执行功能文件之前删除范围报告html文件的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51551833/