This file contains 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; |
This file contains 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 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 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 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 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 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
{ | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.minimap.enabled": false, | |
"terminal.integrated.rendererType": "dom", | |
"editor.renderWhitespace": "none", | |
"files.autoSave": "afterDelay", | |
"editor.wrappingIndent": "none", | |
"window.zoomLevel": 0, | |
"vsicons.dontShowNewVersionMessage": true, |
This file contains 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
{ | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.minimap.enabled": true, | |
"terminal.integrated.rendererType": "dom", | |
"editor.renderWhitespace": "none", | |
"files.autoSave": "afterDelay", | |
"editor.wrappingIndent": "none", | |
"window.zoomLevel": 0, | |
"vsicons.dontShowNewVersionMessage": true, |
This file contains 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 copy | |
import os | |
from importlib import import_module | |
from importlib.util import find_spec as importlib_find | |
import inspect | |
def import_string(dotted_path): | |
""" | |
Import a dotted module path and return the attribute/class designated by the |
This file contains 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
package com.ibm.robot.web.testrules; | |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.rules.TestWatcher; | |
import org.junit.runner.Description; | |
import org.openqa.selenium.OutputType; |
NewerOlder