Eerste Test waarmee het mogelijk is klanten toe te voegen.

This commit is contained in:
2025-03-15 14:17:05 +01:00
commit 7a43252069
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
*** Settings ***
Library Browser
*** Variables ***
${CRED} C:\\Users\\thoma\\Documents\\Paypoint\\variables.robot
*** Keywords ***
Open Browser And Set Context
[Documentation] Set Browser settings and page to load
New Browser chromium headless=false
New Context viewport={"width": 1920, "height": 1080}
New Page https://test-paypoint.melvanveen.nl/#/login
Enter Login Details
[Arguments] ${username} ${password}
Type Text id=username ${username}
Type Text id=password ${password}
Click id=inloggen

View File

@@ -0,0 +1,21 @@
*** Settings ***
Library Browser
Library FakerLibrary locale=nl_NL
*** Variables ***
${EMAIL} jejim33876@barodis.com
*** Keywords ***
Open Klant Tab
[Documentation] Opent het Tabblad Klant
Click id=klanten
Klant Toevoegen
[Documentation] Voegt een nieuwe klant toe met behulp van random data
${VOORNAAM}= FakerLibrary.Name Nonbinary
${ACHTERNAAM}= FakerLibrary.Last Name
Click id=klantToevoegen
Type Text id=input-voornaam ${VOORNAAM}
Type Text id=input-achternaam ${ACHTERNAAM}
Type Text id=input-email ${EMAIL}
Click id=opslaanKlant

View File

@@ -0,0 +1,12 @@
*** Settings ***
Library Browser
Resource ../Resources/Open_Browser.resource
Resource ../Resources/Tab_Klant.resource
Resource ${CRED}
Test Setup Open Browser And Set Context
*** Test Cases ***
Nieuwe Klant Toevoegen
Enter Login Details ${testuser01} ${password}
Open Klant Tab
Klant Toevoegen

BIN
requirements.txt Normal file

Binary file not shown.