This repository contains the Playwright automation script used to test the Singlish to Sinhala chat transliteration tool for the IT3040-ITPM module.
- Python 3.11 or 3.12 installed
- Google Chrome installed
- Clone this repository to your local machine.
- Open your Command Prompt and navigate to the extracted project folder.
- Update pip to the latest version:
python -m pip install -U pip
- Install the required dependencies:
python -m pip install playwright openpyxl
- Install the Playwright browser binaries:
python -m playwright install
- Ensure your test data file (
Assignment 1 - Test cases.xlsx) is located in the same directory as the Python script. - Open your Command Prompt, navigate to the folder, and run the following command:
python test_automation.py --excel "Assignment 1 - Test cases.xlsx" --input-col "Input" --url "https://www.pixelssuite.com/chat-translator" --wait-ms 5000 --type-delay-ms 80 --slow-mo-ms 200 --save-every 1 --keep-open
- The script will automatically open the browser, enter the 50 Singlish test inputs, and record the Actual Output and Pass/Fail status into the Excel file.