Skip to content

Problems with console logging #347

Closed
@alekdavis

Description

I'm not sure if this is something with my configuration or that's how it works for everyone, but console logging does not work very well.

Here is my demo file:

{{
  console.log("In global section.")
}}

### X
# @name x
{{
  console.log("In pre-request script.")
}}
GET https://httpbin.org/anything/x=y

{{
  console.log("In post-request script (before assert).")
}}

?? status == 200

{{
  console.log("In post-request script (after assert).")
}}

There are no console logs in the httpyac - Log or the httpyac - Request OUTPUT tabs and the TEST RESULTS tab shows:

image

I would expect TEST RESULTS to show something like:

INFO: In global section.
---------------------

=== X ===

INFO: In pre-request script.
GET https://httpbin.org/anything/x=y
=> 200 (4450 ms, 565 B)
INFO: In post-request script (before assert).
✓ status == 200
INFO: In post-request script (after assert).

Also, not sure why there are no line breaks between log entries (and a delimiter between the log level and the log message would be useful).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions