Coder Social home page Coder Social logo

test-gmail's Introduction

test-gmail

This application provides two tests for Google Mail service (gmail.com) functional testing.

Set up TestMail.exe.conf file - modify TestMail.exe.conf.sample and save as TestMail.exe.conf. Configuration file must be stored in the same folder where .exe file is.

Parameters (key values) to be set:

driverPath = Path to chromedriver.exe

browser = one of two predefined names of browsers - Firefox or Chrome (Default browser to be run is Firefox)

username = email address for Gmail

password = password

test_to_run = name of test to run or ALL

logging = type 'true' to enable logging or 'false' to disable

test_message = the last received message subject

Available tests to run:

  • send_email: Login to the email account using predefined user credentials Send a new email to the same account Logout from the account;
  • receive_email: Login to the email account using predefined user credentials Verify the delivery of the message (the newest one) - message specified with key <test_message> or received from "send_email" test run Logout from the account;

To run tests via Chrome browser key should be specified.

To run tests - use CLI: E.g.: C:\Users\Liubov\Documents\TestRun>TestMail.exe TestMail.exe.config

If logging is enabled test run is logged to file test-log.txt

Known issues: when both tests are run sequentially in one Test Run and "send_email" fails - we are unable to run "receive_email" (do not know which email to expect).

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.