Karate: V 0.9.1 Dynamic Scenario Outline : Reports does not log few details

Created on 7 Mar 2019  路  11Comments  路  Source: intuit/karate

In Version 0.9.1 when we use a dynamic scenario outline with examples reading data from either a csv dynamic-csv.feature or from a json array dynamic.feature in the reports the following are missing

  1. After the method post/get it doesnot log the details
  2. "# print response" (doesnot print the response) - The print statement doesnot seem to print the value in the variable just the variable name appears in the report

To Reproduce

  1. Add "*print response" to the features dynamic.feature and dynamic-csv.feature from karate-demo project.
  2. After running the tests in the cucumber reports the following are missing (See attached screenshot below)
  3. After the method post/get It does not log the details.
  4. "* print response" (doesnot print the response) - The print statement does not seem to print the value in the variable just the variable name appears in the report
    report

Attaching a sample screenshot of the reports from the karate-demo project of a scenario outline with examples examples,feature where these are getting logged

examples

bug fixed

All 11 comments

@ajsdecode I normally immediately close issues that do not have a working example submitted, but can you please follow this process ? https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@ptrthomas I thought it would help pointing out the feature from the karate-demo project. I will add a demo project if that is required. My work environment is on a restricted network but i will add one soon.

@ajsdecode that's fine - we will take a look

image
image

@ajsdecode sorry just tried this in the develop branch and it works for me. note that * print request is wrong because there is no variable called request.

so yes you need to submit a working example if you want to re-open this.

Okay..i will take a look again and provide a working example.

P.s. i believe * print response should should still have the problem

@ajsdecode no it doesn't. there's only one way for you to say for sure :)

@ptrthomas Please see the attached demo-project with version 0.9.1, mydynamicdatadrivenproject.zip

After running the tests, the cucumber reports does not log below mentioned details for the features 'outline-csv.feature' and 'outline-json.feature'

  1. The request details after the method get/post is not getting logged.
  2. The * print response does not log the response

@ajsdecode as I said via chat - this is fixed via #661 - and I see this does not happen in develop

I will reopen this but mark as "fixed"

it would be great if you can re-try and confirm that this is indeed fixed by going through the developer guide: https://github.com/intuit/karate/wiki/Developer-Guide - I'm pretty sure you missed something when you claimed that this can be reproduced in develop and I disagree.

@ptrthomas Thanks Peter...i will retry this with the develop branch, maybe i might have missed something when i said this was occurring in the develop branch. I will check in develop and will let you know.

@ptrthomas you are correct. This works in develop.

released 0.9.2

Was this page helpful?
0 / 5 - 0 ratings