KARATE : can not see print statements on console in karate [duplicate]
Asked Answered
P

2

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
Prowess answered 13/9, 2018 at 18:58 Comment(5)
its resolved , i checked the docum , i had forgotten to give commaProwess
please add an answer and mark i t as accepted here (yourself) to help othersBonilla
before : print 'LENGTH OF AN ARRAY IS: 'obj After: print 'LENGTH OF AN ARRAY IS: ',objProwess
no I meant post an answer below (not as a comment) and after 2 days, mark it as accepted. it is up to you, but I'd like to not have "un-answered" questions lying around on Stack Overflow. or please delete this questionBonilla
Thank you peter for prompt response , great :)Prowess
P
4

before (problem):

print 'LENGTH OF AN ARRAY IS: 'obj

After (fixed):

print 'LENGTH OF AN ARRAY IS: ', obj
Prowess answered 14/9, 2018 at 9:38 Comment(0)
C
1

put (,) between parameter

  • print 'Response is: ', response
Cholinesterase answered 25/3, 2021 at 5:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.