Skip to main content

Amazon Step Functions TestState now available in China Regions

Posted on: Nov 19, 2025

Amazon Step Functions enhances the TestState API to support local unit testing of workflows, allowing you to validate your workflow logic, including advanced patterns like Map and Parallel states, without deploying state machines to your account. 

Amazon Step Functions is a visual workflow service that enables customers to build distributed applications, automate IT and business processes, and build data and machine learning pipelines. TestState allows developers to validate a state's input and output processing, test service integrations, and verify HTTP task requests and responses. The TestState API now supports testing of complete workflows including error handling patterns in your local development environment. You can now mock service integrations, with optional API contract validation that verifies your mocked responses match the expected responses from actual Amazon Web Services services, helping ensure your workflows work correctly in production. You can integrate TestState API calls into your preferred testing frameworks such as Jest and pytest and CI/CD pipelines, enabling automated workflow testing as part of your development process. These capabilities help accelerate development by providing instant feedback on workflow definitions, enabling validation of workflow behavior in your local environment, and catching potential issues earlier in the development cycle.

The enhanced TestState API is is now generally available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, operated by NWCD. To learn more about the enhanced TestState features and how to incorporate it into your workflow development process, visit the Amazon Step Functions documentation. You can start testing your workflow states using the Command Line Interface (CLI), or SDKs.