3

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
kazemakase
  • 19,323
  • 3
  • 49
  • 101
Ashwini
  • 121
  • 1
  • 9

2 Answers2

4

before (problem):

print 'LENGTH OF AN ARRAY IS: 'obj

After (fixed):

print 'LENGTH OF AN ARRAY IS: ', obj
Alex D
  • 371
  • 1
  • 10
Ashwini
  • 121
  • 1
  • 9
1

put (,) between parameter

  • print 'Response is: ', response
Veera
  • 31
  • 4