sudo pip install pytest pytest-xdist selenium
curl http://selenium.googlecode.com/files/selenium-server-standalone-2.14.0.jar -o selenium-server-standalone-2.14.0.jar
:⌉ | |
=⌉ | |
¦-) as opposed to | | |
☺ | |
☹ | |
☻ | |
⍣ | |
⍤ | |
⍥ om nom nom | |
⍨ |
#!/bin/bash | |
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) | |
if [ -z "$GIT_DIR" ]; then | |
echo >&2 "fatal: hooks/functions: GIT_DIR not set" | |
exit 1 | |
fi | |
read oldrev newrev refname |
# SUMMARY | |
# This gist shows a performance test between a few different variations of Selenium, | |
# running against Rsel's unit-test sinatra site (https://github.com/a-e/rsel) | |
# It repeats these steps 20 times: | |
# | |
# - Click "About this site" link | |
# - Go back to the homepage | |
# - Click "Form test" link |
#!/bin/bash | |
HUB_HOST="hostname" | |
HUB_PORT="4444" | |
LOCAL_IP="ip" | |
SOCAT_PORT="8081" | |
JSON="{'configuration': {'registerCycle': 5000, 'hub': 'http://<HUB_HOST>:<HUB_PORT>/grid/register', 'host': '<LOCAL_IP>', 'proxy': 'org.openqa.grid.selenium.proxy.DefaultRemoteProxy', 'maxSession': 1, 'port': <SOCAT_PORT>, 'hubPort': <HUB_PORT>, 'hubHost': '<HUB_HOST>', 'url': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'remoteHost': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'register': true, 'role': 'node'}, 'class': 'org.openqa.grid.common.RegistrationRequest', 'capabilities': [{'seleniumProtocol': 'WebDriver', 'platform': 'ANDROID', 'browserName': 'android', 'version': null, 'maxInstances': 1}]}" | |
JSON=${JSON//<HUB_HOST>/$HUB_HOST} | |
JSON=${JSON//<HUB_PORT>/$HUB_PORT} |
var http = require('http'), | |
jsdom = require('jsdom'), | |
nodemailer = require('nodemailer'); | |
smtpTransport = nodemailer.createTransport('SMTP', { | |
service: 'Gmail', | |
auth: { | |
user: 'username@gmail.com', | |
pass: 'password' | |
} |
package com.google.android.apps.common.testing.testrunner; | |
import android.app.Instrumentation; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.test.AndroidTestRunner; | |
import android.test.InstrumentationTestRunner; | |
import android.test.TestSuiteProvider; | |
import android.util.Log; |
#!/usr/bin/env bash | |
# | |
# Copyright (c) 2013 Jonathan Penn (http://cocoamanifest.net) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
import jenkins.model.Jenkins | |
build = Jenkins.instance.items[0].builds[0] | |
println build | |
println("Available actions on the build: " + build.actions) | |
def analysisCoreActions = [] | |
// All static analysis actions based on static analysis core can be handled uniformly | |
analysisCoreActions.addAll(build.actions.findAll{it.class.name =~ "hudson.plugins.checkstyle.CheckStyle.*ResultAction"}) |