ASF TestArena
A full-stack web application to manage automated software test jobs.
Features
- Login System: Admin and User roles.
- Dashboard: Real-time job monitoring with WebSocket.
- Job Submission: Wizard to submit jobs based on git branches.
- Results: HTML reports generated and served automatically.
- Cleanup: Automatic deletion of results older than 7 days.
Architecture
- Backend: FastAPI (Python)
- Frontend: React + Vite (TypeScript)
- Database: PostgreSQL
- Reverse Proxy: Caddy
- Containerization: Docker Compose
Deployment Instructions
Prerequisites
- Docker and Docker Compose installed on the server.
- Domain
testarena.nabd-co.compointing to the server IP.
Steps
-
Clone the repository to your VPS.
git clone <repo_url> cd testarena -
Configure Environment
- Edit
docker-compose.ymlif you need to change database passwords. - Edit
backend/app/auth.pyto change theSECRET_KEY.
- Edit
-
Run with Docker Compose
docker-compose up -d --build -
Verify
- Open
https://testarena.nabd-co.comin your browser. - Login with default credentials:
- Username:
admin - Password:
admin123
- Username:
- Open
Scripts Integration
- The mock scripts are located in
backend/scripts/. - Replace
get_scenarios.shandrun_tests.shwith your actual implementation. - Ensure the scripts are executable (
chmod +x).
Troubleshooting
- Check logs:
docker-compose logs -f - Restart services:
docker-compose restart