A web application that simulates a Fortnite item shop with a shopping cart functionality.
- Python 3.12 or higher
- Google Chrome browser
- ChromeDriver (automatically managed by undetected-chromedriver)
- Clone the repository:
git clone <repository-url>
cd software_testing- Install dependencies:
pip install -r requirements.txt- Start the Flask server:
python app.pyThe application will be available at http://localhost:5000
The project includes both unit tests and functional tests.
To run unit tests:
pytest tests/test_app.py -vTo run functional tests (requires the Flask server to be running):
- First, make sure the Flask application is running in a separate terminal
- Then run:
pytest tests/test_functional_blaze.py -vAdd this plugin on your google chrome -
https://chromewebstore.google.com/detail/mbopgmdnpcbohhpnfglgohlbhfongabi?utm_source=item-share-cb
software_testing/
├── app.py # Main Flask application
├── requirements.txt # Project dependencies
├── templates/
│ └── index.html # Main frontend template
└── tests/
├── test_app.py # Unit tests
└── test_functional_blaze.py # Functional tests
- Flask: Web framework
- Selenium: Browser automation for testing
- undetected-chromedriver: ChromeDriver management
- pytest: Testing framework
- Pillow: Image processing
- requests: HTTP client
- The functional tests use Selenium with Chrome in automated mode
- Tests use element IDs and classes for reliable element selection
- The application must be running before executing functional tests