View as Markdown
TestMonitor icon

TestMonitor ACTION

Create Test Result

Create a new test result. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's TestMonitor account once, then configure and run Create Test Result from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "testmonitor-create-test-result",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    testmonitor: { authProvisionId: "apn_xxxxxxx" },
    projectId: 10,
    testCaseId: 10,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Test Result inputs
Property Type Description
projectId Project ID integer
The project identifier.
Required Dynamic
testCaseId Test Case Id integer
The test case identifier where this test result belongs to.
Required Dynamic
testRunId Test Run Id integer
The test run identifier where this test result belongs to.
Required Dynamic
draft Draft boolean
Denotes if this test result is marked as draft.
Required
attachments Attachments string[]
A list of attachment files. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf).
Optional
testResultStatusId Test Result Status Id integer
The test result status identifier.
Required Dynamic
description Description string
The description of the test result.
Optional
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
testmonitor-create-test-result
Version
0.0.4
App
TestMonitor
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes