Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Nov 28, 2023
1 parent 28cd0a7 commit ec75e18
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions testdata/book/loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ steps:
application/json:
null
loop: 2
bind:
'loopvar[]': current.res
-
test: 'steps[2].res.rawBody contains "4"' # 3,4
test: |
# 3,4
steps[2].res.rawBody contains "4"
&& loopvar[0].rawBody contains "3"
&& loopvar[1].rawBody contains "4"
-
desc: retry
req:
Expand Down Expand Up @@ -69,5 +76,10 @@ steps:
application/json:
null
loop: len(vars.hello)
bind:
'loopmap[vars.hello]': current.res
-
test: 'steps[7].res.rawBody contains "12"' # 11,12
test: |
# 11,12
steps[7].res.rawBody contains "12"
&& loopmap['hi'].rawBody contains "12"

0 comments on commit ec75e18

Please sign in to comment.