How to escape special chars in Assertions? #384
Closed
ssnorrizaurous
started this conversation in
General
Replies: 1 comment
-
Hi, example: name: Title of TestSuite
testcases:
- name: Check if exit code != 1 and echo command response in less than 1s
steps:
- script: 'echo "connect: connection refused"'
assertions:
- result.code ShouldEqual 0
- 'result.systemout ShouldContainSubstring "connect: connection refused"' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to write assertions such as ShouldContain and ShouldContainSubstring which contain characters such as colons and quotes. For example, below I would like to see that that stderr contains "connect: connection refused".
error decoding assertions: 1 error(s) decoding:
Beta Was this translation helpful? Give feedback.
All reactions