Test API for Bulk Inputs
Bulk testing your Nected rules and workflows validates their performance and accuracy across multiple scenarios simultaneously. You can efficiently manage large datasets from sources like Google Sheets, databases, or CSV files. This guide demonstrates two robust methods for bulk testing:
Method 1: Using Postman's Collection Runner
Method 2: Using Nected's built-in Loop Node
Prerequisites
Ensure you have:
Access to the Nected platform.
Valid Rule or Workflow endpoint URL.
Structured test data (Google Sheets, CSV file, or database).
Postman (for Method 1).
Nected Workflow Editor access (for Method 2).
Method 1: With Postman Collection Runner
Set Up Postman Request
Open Postman and create a new collection and request.
Set the request method to
POST
.Enter your Nected rule/workflow endpoint URL:
<https://nected-XX.nected.io/nected/rule/XXXX>
Configure the request body using CSV column variables as follows:
{ "environment": "staging", "params": { "basekindlePrice": {{basekindlePrice}}, "countrycode": "{{countrycode}}", "customerTier": "{{customerTier}}", "inventoryLevel": "{{inventoryLevel}}", "isBlackFriday": {{isBlackFriday}} } }
Method 2: Using Nected’s Loop Node
Using Nected’s Loop Node provides an automated, native approach for bulk validation, ideal for repeated testing scenarios.

Integrate Your Data Source
Insert a Google Sheets Node (or Database Node for databases).
Configure your data source:
Select your Google Sheets integration (see Google Sheets integration documentation).
Set the action to Lookup.
Choose your spreadsheet and worksheet.
Confirm header rows and configure appropriate filters.
Save the node configuration.
Execute Rule, Workflow, or External API Inside Loop
Inside the Loop Node, add either a Rule Node, Workflow Node, or REST API Node depending on the target.
Map your data tokens from Google Sheets into input fields:
{ "basekindlePrice": "{{item.basekindlePrice}}", "countrycode": "{{item.countrycode}}", "customerTier": "{{item.customerTier}}", "inventoryLevel": "{{item.inventoryLevel}}", "isBlackFriday": "{{item.isBlackFriday}}" }
Optional: Automated Result Validation
Create a small rule within the loop:
If the actual output matches the expected output, update the status to "matched".
Otherwise, mark as "not matched".
Bulk Testing External APIs
Nected's Loop Node supports bulk testing external APIs using REST API Nodes within the loop, providing powerful integration and automation capabilities.
Method Comparison
Integration Type
External tool
Native integration
Data Source
CSV upload manually
Direct connection
Automation Capability
Basic
Advanced automation
Result Processing
Manual analysis
Automated validation
Reusability
Suitable for one-time scenarios
Ideal for recurring use
Conclusion
Both methods provide robust solutions for bulk testing in Nected. Your choice should depend on test frequency, desired automation levels, and integration capabilities. Importantly, these methods are applicable beyond rules and workflows and are equally effective for testing external APIs, enhancing your overall testing strategy.
Last updated