automation changes
This commit is contained in:
@@ -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
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
Results/output.xml
|
||||
Results/playwright-log.txt
|
||||
Results/report.html
|
||||
variables.robot
|
||||
Results/log.html
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user