File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ This is useful when you have asynchronous API and allows waiting before calling
262262|--- |---
263263|** step_type** | ` pause `
264264|** duration** | Number of seconds to wait.
265+ |** skipped** | If true the step is skipped and nothing is running.
265266
266267** Example:** _ Wait for 5 seconds_
267268<details open >
@@ -296,6 +297,7 @@ This is useful when you have asynchronous API and allows waiting before calling
296297|** variables** | Array of variables to extract from the response _ ([ see Using Variables to Pass Data Between Steps for details] ( # ) )_
297298|** headers** | Object who contains all the headers attach to the request _ ([ see how to add headers] ( #headers ) )_
298299|** assertions** | Array of assertions, this is the acceptance tests _ ([ see how to create assertion tests] ( #assertions ) )_
300+ |** skipped** | If true the step is skipped and nothing is running.
299301
300302### Headers
301303Headers are represented by an object containing all the headers to send.
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ func (s *scenarioControllerImpl) Run(scenario model.Scenario) model.ScenarioResu
3131 logrus .Infof ("%s\n " , scenario .Description )
3232
3333 for _ , step := range scenario .Steps {
34+ if step .Skipped {
35+ logrus .Error ("step is skipped" )
36+ continue
37+ }
38+
3439 stepRes , err := s .stepController .Run (step )
3540 if err != nil {
3641 logrus .Errorf ("impossible to execute the step: %v\n %v" , err , step )
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ type Step struct {
1010 Method string `json:"method,omitempty"`
1111 Duration int `json:"duration,omitempty"`
1212 Body string `json:"body,omitempty"`
13+ Skipped bool `json:"skipped,omitempty"`
1314}
Original file line number Diff line number Diff line change 1717 assertions :
1818 - comparison : equal_number
1919 value : ' 200'
20- source : response_status
20+ source : response_status
You can’t perform that action at this time.
0 commit comments