I’m afraid I’ve had no luck getting a k6 script to run when created from a postman collection. I consistently get the same error message:
only supported schemes for imports are file and https, *{file_location}/*script.js has c
I made the simplest collection that I could think of, the error is still present. Please see code:
// Auto-generated by the postman-to-k6 converter
import "./libs/shim/core.js";
export let options = { maxRedirects: 4 };
const Request = Symbol.for("request");
postman[Symbol.for("initial")]({
options
});
export default function() {
postman[Request]({
name: "FiveThirtyEight",
id: "b566def9-deca-4788-8276-255b3ab28e69",
method: "GET",
address: "https://fivethirtyeight.com/",
post(response) {
pm.test("Status code is 200", function() {
pm.response.to.have.status(200);
});
}
});
}
Any help would be greatly appreciated.