Alle testen behalve Klant Toevoegen API werken nu. Testen zijn klaar voor het automatisch laten draaien.
This commit is contained in:
@@ -11,9 +11,10 @@ Nieuwe Klant Toevoegen
|
||||
[Documentation] Voegt een nieuwe klant toe met behulp van random data. Hiervoor wordt API gebruikt in plaats van de GUI.
|
||||
${voornaam}= FakerLibrary.First Name Nonbinary
|
||||
${achternaam}= FakerLibrary.Last Name
|
||||
${body}= Create Dictionary firstName=${voornaam} lastName=${achternaam} email=jejim33876@barodis.com
|
||||
${body}= Create Dictionary firstName=${voornaam} lastName=${achternaam} email=jejim33876@barodis.com phone=0612345678
|
||||
${response}= POST ${BASE_URL}${CUSTOMERS} json=${body}
|
||||
Status Should Be 200 ${response}
|
||||
Should Be Equal As Strings ${voornaam} ${response.json()}[firstName]
|
||||
Should Be Equal As Strings ${achternaam} ${response.json()}[lastName]
|
||||
Should Be Equal As Strings jejim33876@barodis.com ${response.json()}[email]
|
||||
Should Be Equal As Strings jejim33876@barodis.com ${response.json()}[email]
|
||||
Should Be Equal As Strings 0612345678 ${response.json()}[phone]
|
||||
Reference in New Issue
Block a user