Aidan Delaney
Python | Java | C# |
---|---|---|
pytest | JUnit | NUnit |
Scenario: Short password
Given a <short> password
And the password is less than 6 letters long
Then the password is unacceptable
Examples:
| short |
| a |
| ab |
It should be at least 6, and no more than 12 characters long The system must indicate that the password has failed and why...
Password strength can be assessed against simple criteria to assess its suitability; for example a password system using only upper and lower case alphabetical characters and numeric characters could assess the password strength as:
@given('a <short> password')
def step_input_password(short):
return PasswordCheck.check(short)