Giter Site home page Giter Site logo

Comments (6)

dipeshlshah avatar dipeshlshah commented on August 25, 2024

try postman-to-k6 PostmanCollection.json -o k6-script.js

from postman-to-k6.

jhewitt avatar jhewitt commented on August 25, 2024

It gives me the same error, I suspect it is erring on the key: image[] type: file src:[] in the body? The body of this working postman script is a multipart form with two key/value pairs, the first is a json message and the second is an array of image files being uploaded.

jhewitt@JimsMac loadtest % postman-to-k6 PostmanCollection.json -o k6-script.js
The "path" argument must be of type string. Received type object
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at basename (path.js:1289:5)
at fileLoad (/usr/local/lib/node_modules/postman-to-k6/lib/render/index.js:190:16)
at files (/usr/local/lib/node_modules/postman-to-k6/lib/render/index.js:180:18)
at render (/usr/local/lib/node_modules/postman-to-k6/lib/render/index.js:20:5)
at convertObject (/usr/local/lib/node_modules/postman-to-k6/lib/convert/object.js:45:10)
at convertJson (/usr/local/lib/node_modules/postman-to-k6/lib/convert/json.js:26:10)
at convertFile (/usr/local/lib/node_modules/postman-to-k6/lib/convert/file.js:31:10)
at Command.run (/usr/local/lib/node_modules/postman-to-k6/bin/postman-to-k6.js:51:30)
at Command.listener (/usr/local/lib/node_modules/postman-to-k6/node_modules/commander/index.js:315:8)

from postman-to-k6.

simskij avatar simskij commented on August 25, 2024

Thank you for bringing this to my attention! Will have a look at it and get back to you.

from postman-to-k6.

odetolataiwo avatar odetolataiwo commented on August 25, 2024

is there any update on this yet?

from postman-to-k6.

simskij avatar simskij commented on August 25, 2024

Sorry, I've been completely swamped so not yet unfortunately. 😅

from postman-to-k6.

ppcano avatar ppcano commented on August 25, 2024

Apologies for the inactivity on this project.

Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters.

We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork.

from postman-to-k6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.