output logs

jngojngojngojngo Posts: 37

Can I pass the value of the variable name to the output stream for logging. Please see attached.

Comments

  • benken_parasoftbenken_parasoft Posts: 658 ✭✭✭

    Yes, you can reference variables by name to send their value. You can reference variables in the target name and directory fields as you show in your screenshot.

  • jngojngojngojngo Posts: 37

    I tried doing it created a folder ${auditDirectory} and ${auditName} instead. Please see attached.

  • benken_parasoftbenken_parasoft Posts: 658 ✭✭✭

    I tried doing it created a folder ${auditDirectory} and ${auditName} instead.

    You will see that behavior if those variables don't exist, or if they are data bank column names that were never written to.

    What are those variables? How are they defined? Are they environment variables, test suite variables, data source column names, data bank column names, something else?

  • benken_parasoftbenken_parasoft Posts: 658 ✭✭✭

    I should clarify that functionality was implemented in SOAtest 9.1 which was released in 2011.

  • jngojngojngojngo Posts: 37

    thanks, Benken, I notice when I use the filestream the xml rquest is in one line. while the response is beautify to multiple lines. Can the request logs be logged in beautify mode.

  • benken_parasoftbenken_parasoft Posts: 658 ✭✭✭
    edited November 2018

    The "File Stream Writer" (Traffic Stream -> File) literally streams to disk the bytes that are sent and received over the socket, byte-for-byte. Other tools, like the traffic viewer, display a "beautified" version of the traffic message by default, which can be disabled in the Parasoft preferences under Misc.

    If you want to "beautify" the response then you can chain a Write File tool to your test's "Response" output instead. The Write File tool has a "Beautify XML output" box that you can select.

  • jngojngojngojngo Posts: 37

    Thanks, Ben got this working

Sign In or Register to comment.