KARATE : can not see print statements on console in karate

↘锁芯ラ 提交于 2019-12-24 10:55:19

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!