Sign In Register

How can we help you today?

Start a new topic

Test Harness Log and Custom Responses

 Just a quick two questions if I may;

  1. Test harness logging, is it only possible to log to the DB document or can I also log to the inspector output?
  2. With custom requests, is there a way to select the custom response and pass data from the request into the response?

Thank you

1 Comment

Hi Ian,

You can use scriptData to attach data to responses. If you were to take "queryResult"  Spark.setScriptData("result", queryResult) as a valid mongo query this would essentially print the result in scriptData. 

To set data passed in through a LogEventRequest in the response you would simply use Spark.getData().attributeShortCode to get the value passed in and then set it to scriptData using the method above. Does that make sense ? 



Login to post a comment