TestMu AI (Formerly LambdaTest)
AI-generatedSummary
Executes a custom Node.js script inside a TestMu AI (formerly LambdaTest) cloud browser session, writing results to stdout.
Inputs
- script (required) — A Node.js script to run. The TestMu SDK (@testmuai/browser-cloud) is available via require/import. The script receives environment variables for credentials (LT_USERNAME, LT_ACCESS_KEY) and context (N8N_WORKFLOW_NAME, N8N_ITEM_JSON). Anything logged to stdout becomes part of the output.
- continueOnFail — If true, processing continues for subsequent items even if the script exits with a non-zero code. Errors are included in the output item's JSON.
- timeoutMs — Maximum runtime for the script in milliseconds. Default is 300000 (5 minutes). If exceeded, the child process is killed.
- verbose — If true, includes raw stdout, stderr, and exit code in the output. If false, returns a clean summary with status, success flag, and result.
Output shape
An item for each input item containing a JSON object with status, success flag, duration, and optional result/error fields.
The script runs in a child process with access to the TestMu SDK. The default script example connects to a cloud browser session, navigates to a URL, and logs the page title.
Examples
Example 1: Run a pre-built Playwright script in a cloud browser.
Use the default script template and configure credentials in the node's Credential settings.
Example 2: Debug a script failure.
Enable Verbose Output and set Continue On Script Error to true to see the full stderr and exit code.
