Comments (6)
Created a PR for this issue: #84
Thanks @Eomm for the simple solution.
from postman-to-k6.
+1, same issue here
from postman-to-k6.
+1, very similar issue here happens for me when I attempt to use any way of running it with docker for script execution, and clearly supply it with folder that contains these libs folders which are being imported (performance-tests contains libs).
ERRO[0031] TypeError: Cannot read property 'graphqlRequestNameFromPostman' of undefined running at executePostrequest (file:///scripts/libs/shim/core.js:1174:203(90)) default at executeRequest (file:///scripts/libs/shim/core.js:968:25(123)) at executeRequest (file:///scripts/libs/shim/core.js:958:5(53)) at file:///scripts/libs/shim/core.js:307:46(35) at file:///scripts/loadTestDebugV2.js:120:23(29) at github.com/loadimpact/k6/js/common.Bind.func1 (native) at file:///scripts/loadTestDebugV2.js:119:19(42) at github.com/loadimpact/k6/js/common.Bind.func1 (native) at file:///scripts/loadTestDebugV2.js:85:17(5) executor=ramping-vus scenario=default source=stacktrace
docker-compose run -v /Users/myUser/documents/github/reponame/performance-tests:/scripts k6 run /scripts/loadTestDebugV2.js
It does not look like it is supported in the first place based on readme referring only command
k6 run script.js
and not for example
docker run loadimpact/k6 run - < convertedScript.js
from postman-to-k6.
@mikpan @zakievvv Did you find a solution for the libs error? Just curious
from postman-to-k6.
I have replaced this import:
-import './libs/shim/urijs.js'
+import '../../libs/shim/urijs.js'
in the request/
folder only as a workaround
from postman-to-k6.
Informational update:
The PR was pushed against the latest master (1.3.0) which is not yet release on NPM. On NPM https://www.npmjs.com/package/postman-to-k6 release 1.12 is still the latest.
Until v1.3.0 and potentially the PR is merged, I provided a separate 1.1.2 branch
"dependencies": {
"postman-to-k6": "git://github.com/thim81/postman-to-k6#1.1.2",
I'm not in favour of using PR directly but I'm just sharing in case people want a temporary work-a-round.
Once there is a new release on NPM (with the PR) I'll remove the 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.