KARATE : can not see print statements on console in karate

Viewed 2624

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
2 Answers

before (problem):

print 'LENGTH OF AN ARRAY IS: 'obj

After (fixed):

print 'LENGTH OF AN ARRAY IS: ', obj

put (,) between parameter

  • print 'Response is: ', response
Related