Feature Requests & Ideas

For bug reports and questions, please use the in-app chat or support@mabl.com.

Allow custom node.js modules to be imported into Javascript snippets

This article mentions a list of node.js modules that are usable in Mabl: https://help.mabl.com/docs/api-tests-javascript#available-javascript-libraries. However, it would be really useful to also be able to use other modules in our Javascript snippets, even in non-API tests.

For reference, the specific use case leading to this request would be to grant our tests the ability to run mySQL queries against our DB. Since it doesn't appear that Mabl has a native method of doing that, we could import a node.js module to handle that need instead.

  • Emma Meehl
  • Jul 20 2021
  • For Consideration
  • Attach files
  • Jagadeesh C commented
    2 Feb 01:03pm

    Yes. It's required.

Copyright © 2021 mabl Inc. All rights reserved.