在黄瓜中只执行一次的背景

时间:2016-12-09 00:37:52

标签: cucumber-jvm

我有黄瓜功能如下。我希望背景只执行一次而不是示例中的每一行。我该怎么做。

功能:通过用户界面批量导入投资组合

Background: Bulk import of portfolios and treaties
    Given the user logs into “dev” environment as “User ” with password "Password1"
    And the user Chooses to import a portfolio providing SQLServer as "10.10.10.10”
    And the user chooses uploaded Anytime
    And the user enters the filter criteria for “Client_EDM”
    And the user expands the Edm
    And the user expands the portfolios dropdown
    And the user chooses the Name as "UK COM for v0.7"
    And the user chooses the contract as ""

  Scenario Outline: Import of portfolio
    Given the user clicks on Import button
    And the user specifies the ImportJobName as "<ImportName>"
    And the user specifies the project "<EDM>"
    And the user specifies the structure "<StructureName>"
    And the user submits a portfolio for Import
    Examples:
      | EDM              | ImportName           | StructureName|
      |Client1_EDM|EUFL_UK_Com_Import100|EUFLCom_Import101|
      |Client2_EDM|EUFL_UK_Com_Import101|EUFLCom_Import101|

将场景大纲标记为@attribute或为每个后台步骤添加@before不会解决我的问题..有关如何去做的任何建议。?

1 个答案:

答案 0 :(得分:0)

{{1}}
相关问题