Page cover

Automated and Manual Testing

1.1 Overview

In the Testing and Quality Assurance module, CapsureLabs ensures that each component within its ecosystem is tested thoroughly to provide a secure, stable, and high-performance platform. This section provides examples of both automated and manual testing across different system components, including REST APIs, smart contracts, and user interfaces.


1.2 Test

1.2.1 API Testing

{
  "username": "testuser",
  "password": "securePassword",
  "email": "testuser@example.com"
}
{
  "message": "User registered successfully",
  "userId": "12345"
}

Automated Test Code

import requests

def test_user_registration():
    url = "https://api.capsurelabs.com/api/v1/register"
    payload = {
        "username": "testuser",
        "password": "securePassword",
        "email": "testuser@example.com"
    }
    response = requests.post(url, json=payload)
    assert response.status_code == 201
    assert response.json()["message"] == "User registered successfully"
    assert "userId" in response.json()

1.2.2 Smart Contract Testing

Automated Test Code

1.2.3 User Interface Testing

Automated Test Code

Last updated