Run Tests

Testing Capabilities

Vaktum Testing Capabilities

Vaktum provides a comprehensive set of testing capabilities to validate all aspects of your API functionality.

HTTP Request Testing

The most common type of API testing, HTTP request testing allows you to:

  • Test any HTTP method (GET, POST, PUT, DELETE, PATCH, etc.)
  • Validate status codes, headers, and response bodies
  • Test with various content types (JSON, XML, form data, etc.)
  • Simulate different user agents and client behaviors

Example of an HTTP test configuration:

{
  "name": "Get User Profile",
  "request": {
    "method": "GET",
    "url": "{{baseUrl}}/users/{{userId}}",
    "headers": {
      "Authorization": "Bearer {{token}}"
    }
  },
  "expectedResponse": {
    "statusCode": 200,
    "contentType": "application/json",
    "schema": {
      "type": "object",
      "required": ["id", "name", "email"],
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string" },
        "email": { "type": "string" }
      }
    }
  }
}

Webhook Testing

Vaktum can test webhook integrations by:

  • Creating temporary webhook endpoints to receive callbacks
  • Validating webhook payloads against expected schemas
  • Setting timeouts for webhook receipt
  • Capturing and storing webhook events for analysis

Example webhook test:

{
  "name": "Payment Webhook Test",
  "webhookConfig": {
    "waitTime": 30000,
    "expectedEvent": "payment.completed",
    "triggerRequest": {
      "method": "POST",
      "url": "{{baseUrl}}/payments",
      "body": {
        "amount": 100,
        "currency": "USD"
      }
    }
  }
}

gRPC Testing

For gRPC APIs, Vaktum supports:

  • Testing unary, server streaming, client streaming, and bidirectional streaming methods
  • Protobuf message validation
  • Testing with metadata (headers)
  • TLS/SSL security testing

Authentication Testing

Vaktum supports testing various authentication methods:

  • Basic Authentication
  • API Key Authentication
  • OAuth 2.0 (including token refresh)
  • JWT Authentication
  • Custom authentication schemes

Data Validation

Validate your API responses with:

  • JSON Schema validation
  • Exact value matching
  • Numerical range validation
  • Date and time format validation

Performance Testing

Basic performance metrics are captured during testing:

  • Response time measurement
  • Timeout testing
  • Concurrent request handling

Error Scenario Testing

Validate how your API handles error conditions:

  • Invalid inputs
  • Missing required parameters
  • Malformed requests
  • Authentication failures
  • Authorization violations

Sequence and Dependency Testing

Test complex workflows by:

  • Chaining multiple API calls
  • Extracting data from responses for use in subsequent requests
  • Conditional test execution based on previous results
  • Testing CRUD operations in sequence