1

Karate.write overwrites the data, Is there a way where data can be appended with a property.

var file = 'RnRs.txt';
var data = "Scenario Name: " +name+ "Request: " +request+ "; Response: " +response;
karate.write(data, file);

I am using this function to generate samples in a required format.

Varun Patil
  • 145
  • 7

1 Answers1

0

No. Advanced write use-cases have to be implemented by yourself, it will take only a few lines of Java code.

Read this for why: https://stackoverflow.com/a/54593057/143475

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248