Comments (6)
try postman-to-k6 PostmanCollection.json -o k6-script.js
from postman-to-k6.
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.
Thank you for bringing this to my attention! Will have a look at it and get back to you.
from postman-to-k6.
is there any update on this yet?
from postman-to-k6.
Sorry, I've been completely swamped so not yet unfortunately. 😅
from postman-to-k6.
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)
- Oauth2 flow HOT 1
- Disabled headers get imported HOT 2
- Double encoding of URL parameters HOT 5
- --skip-pre option does not skip pre-request scripts at collection or folder level HOT 3
- Postman variables in query string don't get replaced HOT 6
- Simple postman test is not passing HOT 1
- Will you ever support uuid library?
- When will you support postman.setNextRequest() ? HOT 2
- Support For URL Grouping? HOT 15
- Pushing the name field (instead of the url) into influxdb name tag to prevent index flood HOT 22
- The "path" argument must be of type string. Received an instance of Array ( ERROR if src is array for files form-data) HOT 1
- convert authorization fail HOT 7
- Overwrite request header "application/x-www-form-urlencoded", when none is specified HOT 1
- Missing autogenerated headers HOT 1
- Add converter version (1.3.0) on npm and docker hub HOT 1
- Feature request - Pass Request default options HOT 3
- Dynamic Variables HOT 3
- Extend support for Postman random functions/dynamic variables/replaceIn HOT 13
- Breaking change in cheerio
- Unrecognized body mode: file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postman-to-k6.