Reflect Integration
The Reflect client provides test management, execution, and test authoring capabilities as listed below. Tools for Reflect require an REFLECT_API_TOKEN.
Available Tools
Test Suite Management
list_reflect_suites
- Purpose: List all Reflect test suites for your account.
- Returns: Complete list of test suites available within your account.
- Use case: Discovery of available test suites.
list_reflect_suite_executions
- Purpose: List all executions for a given Reflect suite.
- Parameters: Test Suite identifier (
suiteId). - Returns: Complete list of executions for a given suite.
- Use case: Understand the latest executions and timings.
reflect_suite_execution_status
- Purpose: Get the status of a Reflect suite execution.
- Parameters: Test Suite identifier (
suiteId), Execution identifier (executionId). - Returns: Status of a given execution.
- Use case: Understand the health status of a given suite execution.
reflect_suite_execution
- Purpose: Execute a test suite.
- Parameters: Test Suite identifier (
suiteId). - Returns: Execution results.
- Use case: Test expected functionality by running a test suite.
cancel_reflect_suite_execution
- Purpose: Cancel the execution of a test suite.
- Parameters: Test Suite identifier (
suiteId), Execution identifier (executionId). - Returns: Info on cancellation.
- Use case: Stop a long-running or accidental suite execution.
Test Management
list_reflect_tests
- Purpose: Lists all Reflect tests.
- Returns: Complete list of tests in your account.
- Use case: Discover and understand available tests.
run_reflect_test
- Purpose: Runs a Reflect test.
- Parameters: Test identifier (
testId). - Returns: Result of test run.
- Use case: Test expected functionality by running a test.
reflect_test_status
- Purpose: Get the status of a Reflect test execution.
- Parameters: Test identifier (
testId). - Returns: Status of a test.
- Use case: Understand the health status of a given test.
reflect_get_test_detail
- Purpose: Get the full detail of a reflect test, including its name, description, and all recorded steps.
- Parameters: Test identifier (
testId). - Returns: Complete test details including all recorded steps.
- Use case: Inspect the structure of a specific test before executing or editing it.
Test Authoring & Agent Interaction
create_test
- Purpose: Create a new Reflect test from an ordered list of steps.
- Parameters: Name (
name), platform (type:web,api, ornative-mobile), orderedsteps, and optionaldescription,parameters, anddeviceProfile(forwebtests). Each step'stype(e.g.click,input,text-validation,prompt,segment) determines its required fields; the tool schema describes the available options. - Returns: The id of the created test.
- Use case: Import tests from other frameworks (Selenium, Cypress, Playwright) or SmartBear products (TestComplete, BearQ) into Reflect.
list_segments
- Purpose: List reusable test step segments available in the account.
- Parameters: Platform (
platform), optional offset and limit for pagination (offset,limit). - Returns: List of segments along with relevant metadata.
- Use case: Discover reusable steps that can help accomplish a task more efficiently.
create_segment
- Purpose: Create a new reusable segment from an ordered list of steps. Segments can be referenced from tests but cannot reference other segments.
- Parameters: Name (
name), platform (type:web,api, ornative-mobile), orderedsteps, and optionaldescription,parameters, anddeviceProfile(forwebsegments). - Returns: The id of the created segment.
- Use case: Build reusable step groups to share across multiple tests.
connect_to_session
- Purpose: Establish a WebSocket connection to a live Reflect test recording session.
- Parameters: Session identifier (
sessionId). - Returns: Connection to an active session.
- Use case: Enable real-time interaction while authoring or recording a test.
add_prompt_step
- Purpose: Add a natural language instruction as a test step.
- Parameters: Session identifier (
sessionId), Natural language instruction (prompt). - Returns: Result of step creation.
- Use case: Add actions, assertions, or queries using natural language.
add_segment
- Purpose: Add an existing reusable segment to the current test.
- Parameters: Session identifier (
sessionId), Segment identifier (segmentId). - Returns: Result of segment insertion.
- Use case: Reuse predefined steps to accelerate test creation.
delete_previous_step
- Purpose: Undo the most recently added step or segment.
- Parameters: Session identifier (
sessionId). - Returns: Result of deletion.
- Use case: Recover from incorrect or failed steps during test creation.
get_screenshot
- Purpose: Capture the current state of the application under test.
- Parameters: Session identifier (
sessionId). - Returns: Screenshot of the browser (Web) or device (Mobile).
- Use case: Analyze UI state and inform next actions during test execution or authoring.
Additional Notes
- The Reflect client now includes enhanced guidance for agents on how to construct effective tests.
- A specialized
reflect-sap-testprompt is available to provide additional instructions when creating tests for SAP applications.