Search code examples
phpgoogle-mapswebdriverselenium-rcstreet-address

Generate real US street addresses for Selenium RC script


I have some Selenium RC tests (written in PHP) testing an application in a sandbox where users need to type in their physical addresses. Addresses have to be real, otherwise application displays an error message. I'd like the scripts to input a new real US address every time the test runs. Any ideas how to implement this? Thanks!


Solution

    1. Get a batch of fake names and addresses at: Fake Name Generator.

    2. Process the list through a CASS-Certified service such as LiveAddress for Lists. This will identify all the real and valid US addresses that happened to be generated.

    3. Extract only the valid addresses (see the simple-mailable file that comes with the download) for your testing purposes.

    If you generate a few thousand random addresses on that website, you should get plenty of valid ones to test with, purely by chance.

    I do work at SmartyStreets, and this is how we get "fake" data for showcasing our service or for help and instructional purposes (without exposing actual private information).