Test suite for /tokens endpoint
A comprehensive testing suite for li.fi /tokens endpoint using Postman collections.
This suite ensures reliability, performance, and security of the token-related services.
This testing suite validates the Token API's functionality, covering various scenarios. The suite is designed to ensure the API maintains high quality and reliability standards.
- Comprehensive test coverage
- Automated validation
- Detailed error reporting
- Performance monitoring
- Security validation
- Status code validation
- Response format verification
- Required field validation
- Chain parameter validation
- Price parameter validation
- Edge case handling
- Valid chain types
- Invalid chain scenarios
- Cross-chain validation
- SQL injection prevention
- XSS vulnerability checks
- Rate limiting validation
- Response time validation
- Load testing scenarios
- Spike test validation
- Clone the repository
git clone https://github.com/dus87/tokens-api-testing.git
- Import the Postman collection
- Open Postman
- Click "Import"
- Select the collection file in collections/tokens_api_tests.postman_collection.json
- Open the collection in Postman
- Select desired environment
- Click "Run Collection"
newman run tokens_api_tests.postman_collection.json
Tests are automatically run on pull requests to the main branch to ensure API reliability before merging changes.
npm install
npm run test
Test reports are automatically generated after each run, providing:
- Total tests executed
- Pass/Fail ratio
- Response times
- Error details
- Postman
- Newman
- JavaScript
- GitHub Actions