Eerste Test waarmee het mogelijk is klanten toe te voegen.
This commit is contained in:
18
Resources/Open_Browser.resource
Normal file
18
Resources/Open_Browser.resource
Normal 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
|
||||
21
Resources/Tab_Klant.resource
Normal file
21
Resources/Tab_Klant.resource
Normal 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
|
||||
12
Tests/Klant_Toevoegen.robot
Normal file
12
Tests/Klant_Toevoegen.robot
Normal 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
BIN
requirements.txt
Normal file
Binary file not shown.
Reference in New Issue
Block a user