The logger.js file defines a logger factory function that creates a logger object with methods for different log levels (debug, info, warn, error). The logger only outputs messages at or above the configured log level. It also supports optional message prefixes..
And more often than that we may need to upload files/such as pdf or JSON files which we saw briefly in Part-02, which requires Multi-part requests. The Key to which is the FormData The polyfill for k6.
In Part-04 of this article series, we added support for Assertions and Custom Metrics. In this post, we all see how to handle the use case of parallelism within threads using http.batch(
In Part-03 of this article series, we added support for uploading files using k6. In this post, we all add assertions (also known as checks) and also see how to add Custom Metrics to the existing framework.
In Part-02 of this article series, we saw how to add support for managing multiple configs and environments. In this article, we will dive into uploading files which is a key component for