空手道测试中如何在控制台中打印值 [英] How to print values in console in karate tests
本文介绍了空手道测试中如何在控制台中打印值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在控制台上打印值,但看不到任何值
I'm trying to print value on console but I don't see any value
代码段
And prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : ', prepresp
推荐答案
您的代码似乎缺少定义'prepresp'的'def'关键字
your code seems to be missing with 'def' keyword for defining 'prepresp'
And def prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : ', prepresp
这应该有效
这篇关于空手道测试中如何在控制台中打印值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文