qstp-itf-lite-script-engine is a service for executing pre-processing and post-processing scripts for HTTP requests. It provides isolated JavaScript execution in a sandbox environment with access to request/response objects, environment variables, and custom variable scopes.
The service is designed for API integration and automation systems that require flexible and secure request scripting capabilities.
- Executes
preandpostJavaScript scripts. - Supports environment, collection, global, and runtime variables.
- Secure sandboxed execution (
postman-sandbox). - Works with HTTP request/response models including headers, body, and query parameters.
- Exposes metrics and structured logging (Prometheus, Graylog).
Make sure you have Node.js (v18 or higher) and npm installed.
npm install
npm run start# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod- Build snaphot (artifacts and docker image) of https://github.com/Netcracker/qubership-testing-platform-itflite-script-engine in GitHub
- Clone repository to a place, available from your openshift/kubernetes where you need to deploy the tool to
- Navigate to /deployments/charts/atp-itf-lite-script-engine folder
- Check/change configuration parameters in the ./values.yaml file according to your services installed
- Execute the command: helm install atp-itf-lite-script-engine
- After installation is completed, check deployment health
The service integrates with Prometheus and Graylog. Available metrics include:
- Incoming request size (
ITF_LITE_REQUESTS_SIZE) - Outgoing response size (
ITF_LITE_RESPONSES_SIZE) - Variable scope size (
CONTEXT_SIZE)
The input payload must include:
- A JavaScript script to execute
- HTTP request and (optional) response objects
- Variable scopes (environment, collection, globals, runtime)
- Project and request identifiers (used for logging and metrics)
# unit tests
$ npm run test
# test coverage
$ npm run test:cov