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 MySQLdb | |
from MySQLdb.cursors import DictCursor | |
from dbutils.pooled_db import PooledDB | |
from config.db_config import DbConfig | |
class Mysql(object): | |
# Connection pool object | |
__pool = 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
# Download BS Binary and store to | |
wget -q https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip && \ | |
unzip BrowserStackLocal-linux-x64.zip && \ | |
rm BrowserStackLocal-linux-x64.zip && \ | |
chmod +x BrowserStackLocal && \ | |
mv ./BrowserStackLocal /usr/local/BrowserStackLocal |
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
# Read gmail using python | |
from googleapiclient.discovery import build | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
from oauth2client.tools import argparser | |
import base64 | |
SCOPES = 'https://www.googleapis.com/auth/gmail.readonly' | |
args = argparser.parse_args() |
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
https://help.github.com/en/articles/splitting-a-subfolder-out-into-a-new-repository | |
https://help.github.com/en/articles/duplicating-a-repository | |
$ git clone --bare https://github.com/exampleuser/old-repository.git | |
Create a new repository | |
$ cd old-repository.git | |
$ git push --mirror https://github.com/trilogy-group/aurea-aes-edi-test-automation.git |
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
=IFERROR(IF(MATCH(D14,'#178 - 15.08.2018'!$D:$D,0),"YES",),"NO") |
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
curl https://www.python.org/static/apple-touch-icon-144x144-precomposed.png > example.png | |
xclip -selection clipboard -t image/png -i example.png |
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
urls.map((us)=>us.split('/').pop()).forEach((key)=>{ | |
var data = JSON.stringify({ | |
"custom_tc_status": 3, | |
"custom_validation": "Technical Limitation", | |
"custom_tc_desc": "It requires some desktop part like eclipse to automate which is not supported with current framework. Hence marking ManualExecution", | |
}); | |
var xhr = new XMLHttpRequest(); |
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
// Everything in helper | |
// Case IDs are exact ones as they are in testrail | |
// Disadvantages- | |
// StepId, Step/Verification language might not match in rare case | |
it('User is able to add new attribute of type TEXT - [15884549]', async () => { | |
stepLogger.caseId = 15884549; | |
const name = PageHelper.getUniqueId(); | |
const type = AttributePageConstants.typeOptions.text; |
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
// Everything in spec | |
// Case IDs are exact ones as they are in testrail | |
it('User is able to add new attribute - [15877509]', async () => { | |
stepLogger.caseId = 15884546; | |
const name = PageHelper.getUniqueId(); | |
const type = AttributePageConstants.typeOptions.checkBox; |