Write output results

Working on testing a REST api … I’m using a file feeder for the requests. Is it possible to output the request/response variables to an output CSV file?

exec(session =>{
  println("Debug print#2")
  println(session("computerURL").as[String])
  import java.io._
  val writer = new PrintWriter(new  File("test.txt" ))
  writer.println(session("computerURL").as[String])
  writer.close()
  session
})

a simple test

在 2018年6月22日星期五 UTC+8上午1:23:39,Dhiren Shah写道: