问题
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
回答1:
before (problem):
print 'LENGTH OF AN ARRAY IS: 'obj
After (fixed):
print 'LENGTH OF AN ARRAY IS: ', obj
来源:https://stackoverflow.com/questions/52320169/karate-can-not-see-print-statements-on-console-in-karate