Expand description
Load and performance testing module for MockForge
This module provides functionality to run load tests against real API endpoints using OpenAPI specifications to generate realistic traffic patterns.
Re-exports§
pub use command::BenchCommand;pub use crud_flow::CrudFlow;pub use crud_flow::CrudFlowConfig;pub use crud_flow::CrudFlowDetector;pub use crud_flow::FlowStep;pub use data_driven::DataDistribution;pub use data_driven::DataDrivenConfig;pub use data_driven::DataDrivenGenerator;pub use data_driven::DataMapping;pub use data_driven::PerUriColumns;pub use error::BenchError;pub use error::Result;pub use invalid_data::InvalidDataConfig;pub use invalid_data::InvalidDataGenerator;pub use invalid_data::InvalidDataType;pub use mock_integration::MockIntegrationConfig;pub use mock_integration::MockIntegrationGenerator;pub use mock_integration::MockServerDetector;pub use parallel_executor::AggregatedResults;pub use parallel_executor::TargetResult;pub use parallel_requests::ParallelConfig;pub use parallel_requests::ParallelRequestGenerator;pub use param_overrides::OperationOverrides;pub use param_overrides::ParameterOverrides;pub use scenarios::LoadScenario;pub use security_payloads::SecurityCategory;pub use security_payloads::SecurityPayloads;pub use security_payloads::SecurityTestConfig;pub use spec_dependencies::DependencyDetector;pub use spec_dependencies::ExtractedValues;pub use spec_dependencies::SpecDependency;pub use spec_dependencies::SpecDependencyConfig;pub use spec_dependencies::SpecGroup;pub use target_parser::parse_targets_file;pub use target_parser::TargetConfig;pub use wafbench::WafBenchLoader;pub use wafbench::WafBenchStats;pub use wafbench::WafBenchTestCase;pub use owasp_api::AuthToken;pub use owasp_api::DiscoveryConfig;pub use owasp_api::OwaspApiConfig;pub use owasp_api::OwaspApiGenerator;pub use owasp_api::OwaspCategory;pub use owasp_api::OwaspFinding;pub use owasp_api::OwaspPayload;pub use owasp_api::OwaspPayloadGenerator;pub use owasp_api::OwaspReport;pub use owasp_api::OwaspScanInfo;pub use owasp_api::OwaspSummary;pub use owasp_api::OwaspValidator;pub use owasp_api::RateLimitConfig;pub use owasp_api::ReportFormat;pub use owasp_api::Severity;pub use owasp_api::SsrfConfig;pub use owasp_api::ValidationResult;
Modules§
- command
- Bench command implementation
- crud_
flow - CRUD Flow support for load testing
- data_
driven - Data-driven testing support for load testing
- dynamic_
params - Dynamic parameter placeholder processing for k6 script generation
- error
- Error types for the bench module
- executor
- k6 execution and output handling
- invalid_
data - Invalid data generation for error testing
- k6_gen
- k6 script generation for load testing real endpoints
- mock_
integration - Mock server integration for coordinated testing
- owasp_
api - OWASP API Security Top 10 (2023) Testing Module
- parallel_
executor - Parallel execution engine for multi-target bench testing
- parallel_
requests - Parallel request execution support for load testing
- param_
overrides - Parameter overrides for customizing request values in load tests
- reporter
- Result reporting and formatting
- request_
gen - Request template generation from OpenAPI operations
- scenarios
- Load testing scenario definitions
- security_
payloads - Security testing payloads for load testing
- spec_
dependencies - Cross-spec dependency detection and configuration for multi-spec benchmarking
- spec_
parser - OpenAPI specification parsing for load testing
- target_
parser - Target file parsing for multi-target bench testing
- wafbench
- WAFBench YAML parser for importing CRS (Core Rule Set) attack patterns