Skip to content

Can I decide whether the following steps should continue to execute based on the result of the previous step execution #144

Closed
@lynnk1ng37

Description

@lynnk1ng37

🤔 What's the problem you're trying to solve?

As a step to create data by a way, so if this way failed, I can decide to execute the follow steps to create data by second way, just because second way has some step and DataTable to config, so I can't use try catch on script, And I want to know anyway like try catch on step define?

✨ What's your proposed solution?

eg:
Scenario: Create Create Data
Given Create data by A
Given Create data by B_step1
Given Create data by B_step2
| | | |
| | | |
Given Create data by B_step3
| | | |
| | | |
Given Create data by B_step4

to

Scenario: Create Create Data
Try Create data by A
Catch Create data by B_step1
Catch Create data by B_step2
| | | |
| | | |
Catch Create data by B_step3
| | | |
| | | |
Catch Create data by B_step4

⛏ Have you considered any alternatives or workarounds?

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions