我对这张票有个问题在功能文件中使用空手道配置参数
< code>KeyId: secretKey和< code > KeyId:' #(secret key)' 有什么区别?有没有可能使用apiKey而不在消息中赋值给def?喜欢< code > * print " Key in this project is # API Key " 谢谢
你问了3个问题:
请阅读:https://github.com/intuit/karate#karate-expressions
b) 请阅读:https://github.com/intuit/karate#embedded-表达式
请阅读:https://github.com/intuit/karate#print
例如:
* def val = 'bar'
# correct
* def temp = { foo: '#(val)' }
# wrong
* def temp = { foo: val }
# correct but not recommended
* def temp = ({ foo: val })
# variables are easy to use, forget about the # part
* print 'value of val:', val