> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt. For full content including API reference and SDK examples, see https://learning.postman.com/llms-full.txt.

# Test APIs using the Postman VS Code extension

With the Postman VS Code extension, you can write scripts and import packages in your pre-request and post-response scripts. You can also manually run your collections and access to your API's test results.

## Use scripts to test your APIs

Add pre-request and post-response scripts to your HTTP collections, folders, and requests to test your API's functionality. You can also open your scripts in a separate JavaScript file in your code editor, giving you access to your code editor's features and AI agents.

To learn more, see [Test APIs using the Postman VS Code extension](/docs/reference/vs-code-extension/tests-and-scripts/test/).

## Import packages into scripts

Import internal packages from your team's Postman Package Library into your pre-request and post-response scripts. You can also import packages from external packages registries, such and npm or JSR.

To learn more, see [Reuse packages from the Postman VS Code extension](/docs/reference/vs-code-extension/tests-and-scripts/packages/).

## Run collections in sequence

With the Collection Runner, you can manually run requests in a specific sequence and view the test results in the VS Code extension.

To learn more, see [Use the Collection Runner from the Postman VS Code extension](/docs/reference/vs-code-extension/tests-and-scripts/collection-runner/).