Skip to main content
Bruno enables you to build sophisticated API workflows by chaining requests, controlling execution flow, and automating complex testing scenarios. Master these techniques to handle real-world API testing needs.

Workflow Control

Bruno provides several methods to control request execution flow:

Skip Request

Skip the current request

Stop Execution

Halt the entire workflow

Set Next Request

Control request order

Chaining Requests

Pass data between requests to create dependent workflows.

Basic Request Chaining

1

Step 1: Create User

2

Step 2: Get User Profile

3

Step 3: Update User

4

Step 4: Delete User

Making Additional Requests

Use bru.sendRequest() to make additional HTTP requests within your scripts.

Send Request API

Request Configuration Options

Conditional Execution

Control which requests run based on runtime conditions.

Skip Request

Stop Execution

Set Next Request

Advanced Workflow Patterns

Authentication Flow

Polling Pattern

Batch Operations

Pagination Workflow

Parallel Requests

Error Handling in Workflows

Collection and Folder Scripts

Define scripts at collection or folder level to run before/after all requests.

Collection Level Scripts

Helper Utilities

Best Practices

Break complex workflows into smaller, reusable requests. Each request should have a clear, single responsibility.
Always include error handling for network requests and validate responses before using data.

Scripting

Master JavaScript scripting in Bruno

Variables

Understand variable scopes and usage

Assertions

Validate responses with assertions

CLI

Automate workflows with Bruno CLI