|
| 1 | +*** Settings *** |
| 2 | +Force Tags faker |
| 3 | +Test Timeout 1 minute |
| 4 | +Library FakerLibrary |
| 5 | + |
| 6 | +*** Test Cases *** |
| 7 | +Can Get Fake Name |
| 8 | + ${name}= FakerLibrary.Name |
| 9 | + Should Not Be Empty ${name} |
| 10 | + |
| 11 | +Two Calls To Faker Should Give Different Results |
| 12 | + ${name}= FakerLibrary.Name |
| 13 | + Should Not Be Empty ${name} |
| 14 | + ${name2}= FakerLibrary.Name |
| 15 | + Should Not Be Empty ${name2} |
| 16 | + Should Not Be Equal As Strings ${name} ${name2} |
| 17 | + |
| 18 | +Can call Words with integer argument |
| 19 | + ${WordsList}= Words nb=${10} |
| 20 | + Log ${WordsList} |
| 21 | + Length Should Be ${WordsList} 10 |
| 22 | + |
| 23 | +Can call Words with str integer argument |
| 24 | + ${WordsList}= Words nb=10 |
| 25 | + Log ${WordsList} |
| 26 | + Length Should Be ${WordsList} 10 |
| 27 | + |
| 28 | +Can call SHA-1 |
| 29 | + SHA1 |
| 30 | + SHA1 ${True} |
| 31 | + SHA1 ${False} |
| 32 | + SHA1 True |
| 33 | + SHA1 False |
| 34 | + |
| 35 | +Can Lexify |
| 36 | + ${lexed}= Lexify blah??? |
| 37 | + Length Should Be ${lexed} 7 |
| 38 | + Should Start With ${lexed} blah |
| 39 | + |
| 40 | +Can call Password |
| 41 | + ${pass}= Password |
| 42 | + Length Should Be ${pass} 10 |
| 43 | + ${pass}= Password ${5} |
| 44 | + Length Should Be ${pass} 5 |
| 45 | + ${pass}= Password 5 |
| 46 | + Length Should Be ${pass} 5 |
| 47 | + ${pass}= Password special_chars=${False} |
| 48 | + ${pass}= Password special_chars=${True} |
| 49 | + ${pass}= Password digits=${True} |
| 50 | + ${pass}= Password digits=${False} |
| 51 | + ${pass}= Password digits=True |
| 52 | + ${pass}= Password digits=False |
| 53 | + ${pass}= Password upper_case=${True} |
| 54 | + ${pass}= Password lower_case=${True} |
| 55 | + ${pass}= Password digits=${False} |
| 56 | + ${pass}= Password 5823 ${True} ${False} ${True} ${True} |
| 57 | + Length Should Be ${pass} 5823 |
| 58 | + ${pass}= Password ${5823} ${True} ${False} ${True} ${True} |
| 59 | + Length Should Be ${pass} 5823 |
| 60 | + |
| 61 | +*** Keywords *** |
0 commit comments