Git Product home page Git Product logo

srpa's Introduction

srpa

Practice simple test automation with python. sample/ Folder contains examples that use UNAPEC's website in json and yaml.

Dependencies

Install Dependencies

Python 3.8

Just Download the python installer for your OS and install. In windows you might have to add the python installation dir to the PATH environment variable

selenium

Once python 3.8 is installed then run:

python -m pip install -U selenium

PyYAML

python -m pip install -U pyyaml

Webdrivers

Download the webdriver (For this example just downloading the chrome webdriver will be OK) and put the executable in an easy to find directory. These executables must be added to the PATH on windows.

Package

You need to have pyinstaller installed. If it's not installed install it with:

python -m pip install -U pyinstaller

Now just run the 'package.bat' script in windows or the 'package.sh' script for linux. Or, for the same effect run:

python -m PyInstaller main.py --onefile -n srpa.exe

Usage

srpa -i ./sample.json -b chrome

CLI arguments

    [ srpa ]

        -h, --help
            Muestra este texto de ayuda
        -i, --input
            Especifíca la ruta del archivo que contiene el script de automatización (requerido)
            Tipos de entrada soportados: ['json', 'yml']
        -b, --browser
            Indica cual navegador se desea utilizar (default chrome)
            Navegadores soportados: ['chrome', 'firefox', 'opera']
        -d --driver
            Indica cual librería se desea usar para manejar la automatización
            Drivers soportados: ['selenium']
        -p, --path
            Indica la ruta de los binarios de webdriver
            Por default se utilizan los encontrados en el PATH

Script syntax

See the sample scripts in sample/

srpa's People

Contributors

allfre2 avatar

Watchers

 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.