Giter Site home page Giter Site logo

robotframework-bdd-example's Introduction

Web Test Automation using Robot Framework


What's this?

This is automated web testing for any web application. Its using page object model as a pattern structure and BDD (Behavior Driven Development) framework as a testing approach with single gherkin language and data-driven style. Its using 4 folders and 1 file in the root directory.

  • pages folder
    • This folder contain some files that initiate all of page elements, also their action as objects.
  • steps folder
    • This folder contain some files that initiate any reusable steps.
    • Its steps should have direct relations to specific test files.
  • tests folder
    • This folder contain some files that test cases executed.
    • Its can also contain some reusable steps for specific test cases that use data-driven or gherkin language on the same test files.
  • resources.robot file
    • This is file for global setup or any reusable logic or steps that used all of steps or tests file.
  • result folder
    • This folder for saving result file of report that generate after tests execute has finished.

What's you need?

Homebrew

  1. Install Homebrew in Terminal using the following command
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Follow the instructions until Homebrew installing success

Chromedriver

  1. Install Chromedriver using brew in Terminal using the following command
$ brew install chromedriver --cask
  1. Follow the instructions until chromedriver installing success

Python

  1. Install Python using brew in Terminal using the following command
$ brew install python
  1. Follow the instructions until python installating success

Setup Python Path

  1. Create and open your .bash_profile or .zshrc from Terminal
$ cd
$ touch .bash_profile
$ open -e .bash_profile
  1. Set the python PATH in .bash_profile file
PATH="/usr/local/opt/python/libexec/bin:${PATH}"
export PATH;
  1. Save and exit your bash_profile

Pip

  1. Install Pip using easy_install command
$ sudo easy_install pip
$ sudo pip install --upgrade pip
  1. Follow the instructions until pip installing success

Robot Framework

  1. Install Robot Framework using pip in Terminal using the following command
$ pip install robotframework
  1. Follow the instructions until robot framework installing success

Selenium Library

  1. Install Selenium Library in Robot Framework using pip in Terminal using the following command
$ pip install robotframework-seleniumlibrary
  1. Follow the instructions until selenium library in robot framework installing success

Go... run, run, run, burn, fire!

  1. From your Terminal, go to the project directory
  2. Run the test cases using the following command
$ robot -d result/ tests/
  1. Wait until tests executing has finished
  2. See the output of tests result in the result folder then open log.html or report.html using your browser
  3. See the log of tests result
  4. See the report of tests result

What's next?

See general guidelines for good or standarization test cases from robot framework

robotframework-bdd-example's People

Contributors

yazidisme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.