Giter VIP home page Giter VIP logo

helmi's Introduction

helmi

A Robot Framework test project.

Schools in my area use Helmi Oppilashallinto -web application for communication between school and parents. I wanted to receive new messages from school to my email for convenience during working days:

  • log in to Helmi web page
  • read list of recent messages in inbox
  • compile an email of messages that have not been emailed yet
  • send email via Gmail API

Tested on Linux, Python3.6, Firefox and Gmail account for sending email:

  1. Make sure Firefox and Python 3.6 or newer are installed

  2. Turn on Gmail API

  3. Open a browser and login to Google API console

    • check that Gmail API is enabled in Dashboard
    • go to Credentials and create OAuth client ID for type Other and choose a name
    • download the created credentials file, place it in project directory and rename it to credentials.json
    • open global_variables.py and edit in your Helmi credentials, Google account id and target email
    • leave browser open for the first test run
  4. Setup virtualenv and webdrivers and start test for the first time

    ./setup.sh
    ./run.sh
    • you should see a new browser window open
    • click through the warnings and give the app permissions to compose and send email.
    • If all goes well, browser should display: The authentication flow has completed, you may close this window.
  5. See ./Report/log.html for test results

Repeating tests should now be possible just by ./run.sh

helmi's People

Contributors

m1kaj 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.