Personal Project to search for prices on GoldCar site using the UI Test Tool Node.JS + WebDriver.IO
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Node.JS and NPM installed on your machine.
- Install Node.JS and NPM on your machine (using Homebrew).
brew install node
- Clone the repository (using git)
git clone https://github.com/jontavd/rentcar-io.git
- Install dependencies (using npm)
npm install
- Enjoy!
Running the tests will open a Chrome browser run the scripts, use all available dates from 3 days from now and last day of the next month respecting the car rental rules (minimum 3 days, maximum 28 days).
npm run alldates
- Advanced (Optional)
You can limit the range of dates and put them on the scenario 'specificdates' on features/login.feature
file. and run the command:
npm run specificdates
- As this is a very small project done in a couple of hours there are a lot of bad practices as sleeps, hardcodes and more.
- It will be evolving on demand ( for each new car rent contract ).
- Feel free to use and improve