how can I get the value for the variable I used in skip assertion? #773
william-hyy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to skip a test case by using the value from the initial testcase, but it looks like the assertion in skip doesn't get any value from the variable. From the test result I can see the variable in skip is an empty value, but it carries the correct value in the later on assertions.
Does anyone know why is that, and how can I fix it? Thanks
`name: "Skip testsuite"
testcases:
name: init
steps:
script: |
weekendholiday=False
echo "$weekendholiday"
vars:
weekendholiday:
from: result.systemout
name: skip_this
skip:
steps:
script: exit 0
info: "weekendholiday is: {{.init.weekendholiday}}"
assertions:
name: do_not_skip_this
skip:
steps:
script: exit 0
info: "weekendholiday is: {{.init.weekendholiday}}"
assertions:
`
Beta Was this translation helpful? Give feedback.
All reactions