Selenium WebDriver Recipes in Python by Zhimin Zhan

Selenium WebDriver Recipes in Python by Zhimin Zhan

Author:Zhimin Zhan [Zhimin Zhan]
Language: eng
Format: epub
Publisher: leanpub.com
Published: 2015-05-03T00:00:00+00:00


I frequently use this in my test scripts.

15.7 Generate random person names, emails, addresses with Faker

Faker is a Python library that generates fake data.

from faker import Faker fake = Faker() fake.name() # => "Jeromy Erdman" fake.address() # => "514 Daugherty Plain
Nikolausburgh, DC 30871" fake.email() # [email protected]

You can find more examples at Faker website. By default, addresses and phone numbers are US format, however, you can switch to another locale.

15.8 Generate a test file at fixed sizes



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.