1
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 报告文件正在覆盖该文件。

在此处输入图像描述

4

1 回答 1

0

您可以使用 before 注释来删除文件

如果您想在每个功能文件执行之前删除 HTML 文件,请在功能文件中添加一些注释,并在您的 Before 方法中使用相同的注释,如下所示

特征:

@feature1
Feature: Capability(Model) module feature

Scenario: User is Logged In

在 Before 挂钩中,您可以执行 HTML 报告删除操作。

@Before("@feature1")
public void beforeFeature() {
  // HTML Delete Actions
}
于 2018-07-27T06:30:55.727 回答