Skip to content

Instantly share code, notes, and snippets.

Maarten Groeneweg lazytesting

  • Mirabeau
  • Netherlands, the
Block or report user

Report or block lazytesting

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lazytesting / package.json
Last active Nov 23, 2016
Quick webdriver script
View package.json
"name": "wd",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"author": "",
"license": "ISC",
View run-chromedriver-cluster.ps1
param (
[string]$instances = 10
docker rm -f selenium-hub
docker run --restart=always -d -p 4444:4444 --name selenium-hub selenium/hub:3.0.0-dubnium
while($i -ne $instances)
View recursive NPM
DIRS=$(find . -maxdepth 3 -name "package.json" -printf "%h\n")
for d in $DIRS
( cd $d && NPM i )
lazytesting / notify.ps1
Created Aug 17, 2016
notify slack on failed teamcity build
View notify.ps1
function Test-TeamCityBuildStatus
[string] $ServerUrl ="[TC server url]",
[string] $UserName = "[tc user]",
[string] $Password = "[TC password]",
[string] $BuildTypeId = "[build id]"
lazytesting / check-site-alive.ps1
Created Jul 21, 2016
ping site until it is alive (usefull to warm up your site after a deploy)
View check-site-alive.ps1
param (
[string]$url = "",
[int]$maxRetries = 5
$SecondsDelay = 10
$retrycount = 0
$completed = $false
lazytesting /
Last active Jul 21, 2016
run selenium grid

install JDK

1.install chocolatey

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin new cmd window and run

View restore_sql_sb.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Configuration;
using System.Data.SqlClient;
namespace Nvm.Web.FunctionalTests.Support
public class Init
You can’t perform that action at this time.