hello
(pre: I have tried to find the way to contribute or try to fork and play with postman sources, but have no success)
want to ask about the postman test block - how its works with request/response life cycle. Is there a way to contribute/develop to this part?
I want to investigate is postman test bock capable to interact with with kotlin
Hey @goodvin4 - I am so glad you asked this. Postman is powered in its core using a module called “postman-runtime” - it, on the other hand, depends on a number of very interesting modules like Postman Sandbox (for executing test block) and Postman Collection (to process collections).
A good portion of how Postman Runtime works is outlined in the tutorials section at - http://www.postmanlabs.com/postman-runtime/ and the API for using Postman Collection SDK is at http://www.postmanlabs.com/postman-collection/. We’ve attempted to document the codebase inline to the best we could.
If kotlin can be transpiled to JS (https[colon]//kotlinlang[dot]org/docs/tutorials/javascript/kotlin-to-javascript/kotlin-to-javascript.html) you can do the following:
- Look for script: type=text/kotlin in collection script inside sandbox
- transpile it to JS inside sandbox
- then send to UVM module (which sandbox uses) for execution like any other script.
However, we are not yet planning to support JS-transpilable languages in Postman app yet, not at least what I know of.
Ref:
- https[colon]//github[dot]com/postmanlabs/postman-runtime/
- https[colon]//github[dot]com/postmanlabs/postman-sandbox
- https[colon]//github[dot]com/postmanlabs/postman-collection
PS: You’ll have to replace [dot] and [colon] in places where I had to do them since new users can only post a few links.
@shamasis sorry but for me it was not enough clear if we can contribute to Postman, like implementing a new button on front-end then implementing it back-end functionality, then after sending a pull request… Is there guidelines to this?
Thanks in advance