lundi 2 septembre 2019

Karate doesn't print any logs for match scenario

this scenario passes but it doesn't generate any logs or reports, what could i be doing wrong. here's the sample code below.

@example
Feature: example mock server


Scenario: pathMatches('/auth/test') && methodIs('post') 
* def data = request 
* def test = karate.match(data.Request.Category[0].Attribute[0].AttributeId,'urn:nedbank:azp:xacml:attributes-id:subject-identity-bearer')
* print test

code taken from the cats-mock.feature and cats-test.feature example and running it with a standalone jar 0.9.3 and 0.9.4 both don't work. that's the console log below.

12:33:34.804 [nioEventLoopGroup-3-2] DEBUG com.intuit.karate - handling method: POST, uri: /auth/test
12:33:34.838 [nioEventLoopGroup-3-2] DEBUG com.intuit.karate - scenario matched: pathMatches('/auth/test') && methodIs('post')
12:33:34.871 [nioEventLoopGroup-3-2] INFO  com.intuit.karate - [print] {
  "message": null,
  "pass": true
}

this is how im executing the code

java -jar karate-0.9.3.jar -T 1 test.feature o ../ DummyReport.

Aucun commentaire:

Enregistrer un commentaire