Giter Site home page Giter Site logo

Comments (6)

thim81 avatar thim81 commented on July 22, 2024 1

Created a PR for this issue: #84

Thanks @Eomm for the simple solution.

from postman-to-k6.

mikpan avatar mikpan commented on July 22, 2024

+1, same issue here

from postman-to-k6.

zakievvv avatar zakievvv commented on July 22, 2024

+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.

thim81 avatar thim81 commented on July 22, 2024

@mikpan @zakievvv Did you find a solution for the libs error? Just curious

from postman-to-k6.

Eomm avatar Eomm commented on July 22, 2024

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.

thim81 avatar thim81 commented on July 22, 2024

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)

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.