Skip to content

An exercise in automating search, filters, and verification of the displayed results for Redfin.

License

Notifications You must be signed in to change notification settings

iammike/acorns-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redfin Search Results Verification

An exercise in automating search, filters, and verification of the displayed results for Redfin.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Any modern machine and operating system should be able to run this project.

For simplicity's sake, the instructions will be catered to a Mac running OS X with Google Chrome installed.

Installing

Perform the following steps from your terminal of choice:

  1. Install Homebrew, a package manager for macOS:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Install rbenv, a Ruby version manager:

    brew install rbenv
    
  3. Configure rbenv in your shell:

    rbenv init
    
  4. Restart your shell:

    exec $SHELL -l
    
  5. Install Ruby 2.6.0:

    rbenv install 2.6.0
    
  6. Install Bundler, a Ruby gem manager:

    gem install bundler
    
  7. From a directory of your choice (a base level for Git repositories, clone the repository. Following this step, all subsequent steps should be performed from inside this cloned directory (./acorns-challenge):

    git clone [replace brackets and bracketed text with value provided by 'Clone or Download' button in link above']
    
  8. Install the required Ruby Gems:

    bundle install
    

Running the code

From inside the respository directory, run the following command:

cucumber

Output and results will follow.

Testing the code

  1. Open features/tests/search_filter_results.feature in your text editor or IDE of choice.
  2. Modify the values in the Then I set lines one at a time to something drastically different (to ensure the homes returned contain ones that will trigger failure when checking) while leaving the And I verify lines with their original values.
  3. Run the code.
  4. Observe a failure for the type of filter you modified.

Built With

  • Capybara - Web-based test automation software that simulates scenarios for user stories and automates web application testing for behavior-driven software development.
  • Cucumber - Allows for readable test specification.
  • Ruby - Dynamic, open source programming language with a focus on simplicity and productivity.
  • RubyMine - Ruby-specific Integrated Development Environment.
  • Site Prism - Page Object Model Domain-Specific Language (DSL) for Capybara.

Authors

  • Michael Collins - Initial work - iammike

License

This project is bound by The Unlicense. For more information, please refer to http://unlicense.org.

About

An exercise in automating search, filters, and verification of the displayed results for Redfin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published