automation changes

This commit is contained in:
2025-05-25 15:37:59 +02:00
parent 7ae5ecea2e
commit c2cd631cf6
4 changed files with 13 additions and 13 deletions

View File

@@ -1,11 +1,3 @@
name: Run Robot Framework Browser Tests
on:
push:
branches:
- main
pull_request:
jobs:
browser-tests:
runs-on: ubuntu-latest
@@ -17,13 +9,19 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.13'
- name: Install dependencies
run: |
pip install -r requirements.txt
rfbrowser init # Download Playwright browsers
rfbrowser init
- name: Create variables.robot with secrets
run: |
echo "*** Variables ***" > tests/variables.robot
echo "\${testuser01} ${{ secrets.LOGIN_USERNAME }}" >> tests/variables.robot
echo "\${password} ${{ secrets.LOGIN_PASSWORD }}" >> tests/variables.robot
- name: Run Browser Tests
run: |
robot Tests/
robot tests/

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
Results/output.xml
Results/playwright-log.txt
Results/report.html
variables.robot
Results/log.html

View File

@@ -3,7 +3,7 @@ Library Browser
Resource ${CRED}
*** Variables ***
${CRED} C:\\Users\\thoma\\Documents\\Paypoint\\variables.robot
${CRED} ../variables.robot
*** Keywords ***
Open Browser And Set Context

View File

@@ -9,4 +9,4 @@ Nieuwe Afspraak Maken
[Documentation] Maakt een nieuwe afspraak aan
Enter Login Details ${testuser01} ${password}
Open Agenda Tab
Afspraak Maken Knippen Thomas Tuinman 20-05-2025 10:00 11:00
Afspraak Maken Knippen Thomas Tuinman 30-05-2025 10:00 11:00