pip install -r requirements.txt
Program (bulk e-mail sender) allows user to upload excel file (.xlsx) which contains columns 'email' and 'message' and send them via gmail account.
My second project with use of Flask, HTML and CSS
Detailed informations are presented on HOW TO site
- Turn off google's 2-Step Verification and Less secure apps & your Google Account (therefore better not to use your private account)
- make sure your excel file contains 'email' and 'message' columns
- amount of mails per day is set by Google - 500 (https://support.google.com/a/answer/166852?hl=en#zippy=)
- Download project / clone git.
- Open cmd/powershell with project's directory.
- Make sure you made INSTALLATION step.
- Command: flask run
- Open shown address. REMEMBER TO CHECK 'HOW TO...' SITE (/how_to)
- Play around
To run tests install pip install -r requirements_test.txt
- Open terminal in main directory and type 'flask run'
- Type 'cd test' to change directory
- Type 'pytest .' to run all 12 tests or 'pytest modul_name.py' to run specific module tests
- To see each test in real time add '--demo' at the end of mentioned commends
Tests are performed with selenium-base (https://pypi.org/project/seleniumbase/).
Scope: Test upload file mechanism.
Action: User uploads file and submit it.
Test Notes and Preconditions: Open main page.
Verification Steps: There occurred redirection or not, depends on valid or invalid upload.
Scope: Verify uploaded data.
Action: Uploaded file.
Test Notes and Preconditions: Displays possible errors and data table.
Verification Steps: Checks if any possible errors and data table are shown.
Scope: Test send mechanism.
Action: User enter credentials and click SENT MAIL button.
Test Notes and Preconditions: File is uploaded and credential form is shown.
Verification Steps: There occurred redirection or not, depends on valid or invalid credentials. In addition, redirection may show fail or success message.