在下面的功能中,我檢查是否存在特定的工作類型(合同),如果發現則執行其他操作,否則跳過其餘步驟。當跳過時,將場景標記爲合格(技術上它不是合格,也不是失敗或未決) 如何在cucumber或cucumber-jvm中執行此操作?如何跳過步驟定義或將場景標記爲已通過?
Feature: View job types
Users can view job type from front page and from side menu
Scenario Outline: View job type from front page
Given I login as "<user>"
And if there are contract jobs
Then it should have a hourly rate
And the daily rate in "USD" with "2" decimal places
Examples:
| user |
| hello|
| world|