Skip to content

Instantly share code, notes, and snippets.

View sri85's full-sized avatar
🤖

Sri π sri85

🤖
  • United Kingdom
View GitHub Profile
@remcowesterhoud
remcowesterhoud / behave-parallel.py
Last active December 23, 2024 09:50
All credit goes to s1ider https://gist.github.com/s1ider/f13c2f163282dbec7a61. All I did was fix it up, made it work in Python3 and added Behave Userdata support
"""
Behave runner for running features asynchronously.
"""
from multiprocessing import Pool
from subprocess import call, Popen, PIPE
from glob import glob
import logging
import argparse
import json
from functools import partial
@javierarques
javierarques / protractorAPICheatsheet.md
Last active December 9, 2025 08:09
Protractor API Cheatsheet
@axemclion
axemclion / README.md
Last active September 7, 2019 14:41
Angular E2E Tests (Protractor) - Performance Measurement

Protractor and Performance Test

Protractor is the end to end test case runner for AngularJS. These end to end test cases can be repurposed to record performance metrics when the scenario is being run. This is a sample repository with an example of how this can be done.

Usage

Step 0 - Setup

Install all dependencies using npm install

Step 1 - Prepare configuration

@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@billtaichi
billtaichi / new_gist_file.py
Last active December 18, 2015 21:58
Set incognito mode on selenium webdriver. (Extracted from a class)
def SetBrowserObj(self):
try:
if self.browserdriver.strip().upper() == "CHROME":
options = webdriver.chrome.options.Options()
options.add_argument("-incognito")
browser = webdriver.Chrome(chrome_options=options)
if self.browserdriver.strip().upper() == "FIREFOX":
browser = webdriver.Firefox()
self.driver = browser
@justlaputa
justlaputa / jenkins-api.md
Last active February 4, 2026 13:12
Jenkins Json API

jobs

jenkins_url + /api/json?tree=jobs[name,color]

builds

jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

@DazWorrall
DazWorrall / Output
Created February 9, 2012 13:06
Testing file upload handling in Flask
in upload handler
in file close
..
----------------------------------------------------------------------
Ran 2 tests in 0.021s
OK