空手道:在空手道中无法在控制台上看到打印语句 [英] KARATE : can not see print statements on console in karate
本文介绍了空手道:在空手道中无法在控制台上看到打印语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
KARATE:无法在空手道中的控制台上看到打印语句 使用JavaScript在功能文件中编写打印语句时,无法在控制台上看到打印语句 这是我的代码:
KARATE : can not see print statements on console in karate I am unable to see print statements on console when I write print statements in feature file using javascript here is my code :
Scenario: Get list of channels
Given url 'https://slack.com/api/channels.list?token=''
When method get
Then status 200
* print 'Response is: 'response
* def obj = (response.channels[0].length)
* print 'LENGTH OF AN ARRAY IS: 'obj
推荐答案
之前(问题):
print 'LENGTH OF AN ARRAY IS: 'obj
之后(固定):
print 'LENGTH OF AN ARRAY IS: ', obj
这篇关于空手道:在空手道中无法在控制台上看到打印语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文