An project use Selenium to auto generate gitlab test case
- Add new column duedate:
ALTER TABLE ISSUE DROP COLUMN duedate;
ALTER TABLE ISSUE ADD COLUMN duedate char(50) default ' ';
- Help QA to create testcase for IPTP's Gitlab issues automatic
- Help QA update test issues and original issues automatic
- Migrate DB from FirebaseDB to SQLite DB, update locale database.
- Query issue data from FirebaseDB
- For each item compare to SQLite DB, find the differents to update or add new
- Create new testcase for Gitlab Issues with label Need to test.
- Signin to Gitlab IPTP
- For each init project:
- Open Project search page with label Need to test to Collect
- Collect: issue title, issue url, issue number.
- For each collected issue:
- Create test issue and test case file
- Update main issue with: link to created test issue, add label Test case, remove label Need to test
- Update to SQLiteDB: create new issue with status Create
- Update to SQLiteDB, the Gitlab Issues with status is Finish.
- Collect the Gitlab Issues with status is Finish.
- Signin to Gitlab IPTP
- For each Gitlab Issue item:
- Open Gitlab Issue Test's link
- Add description, add attachment
- Open Gitlab Issue 's link
- Add labels: Test Pass, wf:Ready_for_UAT
- Remove label: wf:QA
- Update SQLite DB: the Gitlab Issues with status is Finish will be update to Done
- Migrate DB from SQLite DB to FirebaseDB, update locale database.
- Install Python virtual-environment support (one time)
sudo apt update
sudo apt install python3.12-venv- Create a virtual environment
python3 -m venv .venv- Install dependencies
./.venv/bin/python -m pip install -r requirements.txt- Create a local
.envfile with the GitLab, project URL, template path, Slack, and Firebase settings used by the workflow. Do not commit this file or the Firebase service-account JSON file. - Make the Ubuntu scripts executable
chmod +x PytestSelenium*.sh- Run all create/finish jobs
./PytestSelenium.sh- Collect new issues only
./PytestSelenium_collect_issue.sh- Finish issues only
./PytestSelenium_Finish.sh- Update the local database
./PytestSelenium_updatedb.sh- Run the due-date test
./PytestSeleniumDuedate.sh