GithubHelp home page GithubHelp logo

gusijia / webautomation-robot-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 2.15 MB

create a web autotest framework with docker-selenium and robotframework

Dockerfile 2.98% Shell 10.92% Python 73.05% RobotFramework 13.05%
robot docker-selenium robotframework python webautomation-robot-docker level-keywords

webautomation-robot-docker's Introduction

webautomation-robot-docker

create a web autotest framework with docker-selenium and robotframework

Setup Environment

  1. run sudo bash ./script/host_setup.sh on host to
    • install docker and docker-compose
    • install python and dependencies
  2. fill in properties file ./conf/main.properties

How to run

run python3.6 ./script/run_autotest.py

it will create three docker containers

  1. robot: based on a python3.6-apline docker image for running all the test cases written by robotframework and python
  2. se-node-ch: using selenium/node-chrome-debug image. docker-selenium node with chrome installed, needs to be connected to a grid hub. It has VNC installed which can be used as an debug method. You can access the UI using docker private ip and password is secret.
  3. se-hub: selenium grid hub image

Code Demo

Here is the demo

Code Structure

The robot docker container (under ./docker/robot) is running robot framework tests:

  • conf/: contains robotFramework arguments, test cases variables
  • lib/: all python code, low level keywords implementation
    • pages/: low level python keywords implemented for each web page.
  • res/: robot resource files. intermediate level keywords.
  • test/: all test cases written in robot.
  • script/: start point to run tests

Libraries

required libraries under ./docker/robot/conf/requirements.txt

Test Website

Test Cases are created to test the sample ecommerce website http://automationpractice.com/index.php

webautomation-robot-docker's People

Contributors

gusijia avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hashmonkey404

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.