Printing to console not working in Karate

Viewed 6085

I have scenario which tests an Micro service. Scenario Outline: Run Object Queries

Scenario Outline: Run Object Queries
    Given url homeLinks.queryUrl
    And header Content-Type =  'application/x-www-form-urlencoded'
    When method post
    Then status 200
    Then print response

Print statement is not logging anything to console in InteliJ editor. I tried to run in debug mode as well.

I referred KARATE : can not see print statements on console in karate which didn't help.

Any config changes required to print the logs?

2 Answers

In logback-test.xml under test/resources, When I change the Console level from WARN to INFO, I can see the logs. My application is spring boot application

<root level="INFO" additivity="false">
  <appender-ref ref="Console" />
 </root>

Related