Automated and Manual Testing
1.1 Overview
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
