Skip to main content

Run Node.js Packages from Service Suite

AddedRun NPMNode.js supportPackages was added tofrom Service Suite

in


Service Suite can invoke approved Node.js and npm-based processes on the AIQ 4.8.3execution release.

host.

WhenInstall NPMNode.js, isnpm, runningand withinrequired Servicepackages Suite, be aware ofon the following:

same
    Test

    NPMNode or the program it should execute should be installed where AIQ is running.

      NPM or the processhost that the user wants to execute will always be executed in AIQ or in the TestNode whereruns the Service Suite istest.

      running,


      or

      Plan wherefor Mobilethe Designercall isto running.wait Theuntil the external process iscompletes. notCapture runand validate the process exit status, standard output, and standard error in the plug-in.test logic.


      TheUse callinga ofcontrolled working directory and avoid installing untrusted packages during execution. Validate package compatibility with the methoddeployed will freeze the test until the method completes. The call will return an object with 3 parameters:

        Process output

        Process error

        Process status

        NPM/Program call won’t have any request/response/sub steps. It will be another step with only time to run the execution.

        The call will not fail if the NPM/Program process output is different from 0, the output of the call will be the termination status integer of the method. For standard success output validationAIQ and assertEquals(0,output.status)Node.js couldversions bebefore useduse.

        The first parameter points to the folder where the process will be executed.


        Last updated: JuneSeptember 19,14, 20232026


        If you have any feedback on this topic, please contact us at documentation@appvance.ai