Skip to content

Commit

Permalink
improve code for #755
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Dec 16, 2019
1 parent 692cab6 commit 3bf5bea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ public StepResult execute(Step step) {
}
boolean hidden = step.isPrefixStar() && !step.isPrint() && !actions.context.getConfig().isShowAllSteps();
if (stopped) {
Result result;
Result stepResult;
if (aborted && actions.context.getConfig().isAbortedStepsShouldPass()) {
result = Result.passed(0);
stepResult = Result.passed(0);
} else {
result = Result.skipped();
stepResult = Result.skipped();
}
StepResult sr = new StepResult(step, result, null, null, null);
StepResult sr = new StepResult(step, stepResult, null, null, null);
sr.setHidden(hidden);
return afterStep(sr);
} else {
Expand Down
2 changes: 1 addition & 1 deletion karate-netty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Scenario: pathMatches('/v1/headers') && headerContains('val', 'foo')
```

## `bodyPath()`
A very powerful helper function that can run JsonPath or XPath expressions agains the request body or payload.
A very powerful helper function that can run JsonPath or XPath expressions against the request body or payload.

JSON example:

Expand Down

0 comments on commit 3bf5bea

Please sign in to comment.