Giter Club home page Giter Club logo

sal-test's Introduction

Selenium tests for SAL
======================
Goal: Decrease time for integration testing through the magic of code!

Prerequisites
-------------
You will need a test user that is already set up on the target server. 

Installation
------------
Set up your virtualenv as usual and pip install ``requirements.txt``. For the purpose of these instructions, I'm going to assume that the name of your env is "saltest".

Download geckodriver (the headless driver for Firefox) from https://github.com/mozilla/geckodriver/releases. Unzip it and move it to ``~/.virtualenvs/saltest/bin/``.

Add the TeacherUser username and password to your virtualenv env (don't put this in the code!)::

    echo "export TUSER=username" >> "$VIRTUAL_ENV/bin/postactivate"
    echo "export TPASS=password" >> "$VIRTUAL_ENV/bin/postactivate"

Running the code
----------------
You can either run the files on their own, or you can copy and paste them into the shell. The latter is a good option if you want to further play around with the driver, since ``main()`` returns it.

Good to know
------------

* Pausing is good. It can sometimes take a bit for elements to get onto the page.
* None of the scripts shut down the browser after they run. We should keep it this way for now, so testers can poke around more if needed.
* Use TODO liberally in the comments. 

Documentation
-------------
I have mostly been using the unofficial docs:

http://selenium-python.readthedocs.io/

The official docs are here:

http://www.seleniumhq.org/

sal-test's People

Contributors

kcunning avatar luisjorge129 avatar

Watchers

Rajat Verma 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.