|
| 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 | +Two Calls To Faker With Same Seed Should Give Same Results |
| 19 | + FakerLibrary.Seed 5 |
| 20 | + ${name}= FakerLibrary.Name |
| 21 | + Should Not Be Empty ${name} |
| 22 | + FakerLibrary.Seed ${5} |
| 23 | + ${name2}= FakerLibrary.Name |
| 24 | + Should Not Be Empty ${name2} |
| 25 | + Should Be Equal As Strings ${name} ${name2} |
| 26 | + |
| 27 | +Can Seed Faker |
| 28 | + FakerLibrary.Seed ${5} |
| 29 | + FakerLibrary.Seed seed |
| 30 | + FakerLibrary.Seed |
| 31 | + |
| 32 | +Can Seed Faker with str integer arguement |
| 33 | + FakerLibrary.Seed 5 |
| 34 | + |
| 35 | +Can call Words with integer argument |
| 36 | + ${WordsList}= Words nb=${10} |
| 37 | + Log ${WordsList} |
| 38 | + Length Should Be ${WordsList} 10 |
| 39 | + |
| 40 | +Can call Words with str integer argument |
| 41 | + ${WordsList}= Words nb=10 |
| 42 | + Log ${WordsList} |
| 43 | + Length Should Be ${WordsList} 10 |
| 44 | + |
| 45 | +Can call SHA-1 |
| 46 | + SHA1 |
| 47 | + SHA1 ${True} |
| 48 | + SHA1 ${False} |
| 49 | + SHA1 True |
| 50 | + SHA1 False |
| 51 | + |
| 52 | +Can Lexify |
| 53 | + ${lexed}= Lexify blah??? |
| 54 | + Length Should Be ${lexed} 7 |
| 55 | + Should Start With ${lexed} blah |
| 56 | + |
| 57 | +Can call Password |
| 58 | + ${pass}= Password |
| 59 | + Length Should Be ${pass} 10 |
| 60 | + ${pass}= Password ${5} |
| 61 | + Length Should Be ${pass} 5 |
| 62 | + ${pass}= Password 5 |
| 63 | + Length Should Be ${pass} 5 |
| 64 | + ${pass}= Password special_chars=${False} |
| 65 | + ${pass}= Password special_chars=${True} |
| 66 | + ${pass}= Password digits=${True} |
| 67 | + ${pass}= Password digits=${False} |
| 68 | + ${pass}= Password digits=True |
| 69 | + ${pass}= Password digits=False |
| 70 | + ${pass}= Password upper_case=${True} |
| 71 | + ${pass}= Password lower_case=${True} |
| 72 | + ${pass}= Password digits=${False} |
| 73 | + ${pass}= Password 5823 ${True} ${False} ${True} ${True} |
| 74 | + Length Should Be ${pass} 5823 |
| 75 | + ${pass}= Password ${5823} ${True} ${False} ${True} ${True} |
| 76 | + Length Should Be ${pass} 5823 |
| 77 | + |
| 78 | +*** Keywords *** |
0 commit comments