# Valid Email -
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
-
[email protected]
# Invalid Email - test.io.com - test@
[email protected]
- test(io"epam)example]com - test"io"epam.com - .test... io\
[email protected]
- mysite.ourearth.com (@ is not present) -
[email protected]
( tld (Top Level domain) can not start with dot "." ) - @you.me.net (No character before @) -
[email protected]
(".b" is not a valid tld) -
[email protected]
(tld can not start with dot ".") -
[email protected]
(an email should not be start with ".") - mysite()*@gmail.com (here the regular expression only allows character, digit, underscore, and dash) -
[email protected]
(double dots are not allowed) # Gherkin Scenario ```gherkin Functionaliteit: E-mail validatie Als gebruiker wil ik dat het systeem alleen geldige e-mailadressen accepteert, zodat ik geen onjuiste gegevens kan invoeren. Abstract Scenario: Valideer het e-mailadres Gegeven ik heb het e-mailadres "<email>" ingevoerd Als het systeem het e-mailadres valideert Dan moet het e-mailadres "<validiteit>" zijn Voorbeelden: | email | validiteit | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | |
[email protected]
| geldig | | test.io.com | ongeldig | | test@
[email protected]
| ongeldig | | test(io"epam)example]com | ongeldig | | test"io"epam.com | ongeldig | | .test... io\
[email protected]
| ongeldig | | mysite.ourearth.com | ongeldig | |
[email protected]
| ongeldig | | @you.me.net | ongeldig | |
[email protected]
| ongeldig | |
[email protected]
| ongeldig | |
[email protected]
| ongeldig | | mysite()*@gmail.com | ongeldig | |
[email protected]
| ongeldig | ``` # Bronnen https://academy.test.io/en/articles/6741787-testing-email-validation https://www.w3resource.com/javascript/form/email-validation.php https://www.geeksforgeeks.org/how-to-write-email-validation-test-cases/