This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding: utf-8 | |
| import smtplib | |
| import config | |
| import urllib.request as urllib2 | |
| import time | |
| import base64 | |
| last_email_sent_time = None | |
| error_info = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding: utf-8 | |
| #author: Reed Xia([email protected]) | |
| import smtplib | |
| import config | |
| import requests | |
| import time | |
| import base64 | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from lxml import etree | |
| import xml.dom.minidom as mmd | |
| xml_root = etree.parse(xml_fiel_path, etree.XMLParser()) | |
| def print_xml(xml_root): | |
| s = etree.tostring(xml).decode('utf-8') | |
| urgly_xml = ''.join(s.split()) | |
| good_xml = mmd.parseString(urgly_xml) | |
| print(good_xml.toprettyxml(indent=' ',)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python3 -m venv ./venv | |
| source ./venv/bin/activate | |
| pip3 install -r requirements.txt | |
| pytest -vs --color=yes --disable-warnings --junitxml=result.xml --suppress-tests-failed-exit-code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.chrome.ChromeDriver; | |
| import org.openqa.selenium.support.ui.ExpectedConditions; | |
| import org.openqa.selenium.support.ui.WebDriverWait; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.ExecutionException; |
OlderNewer