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
View restore_sql_sb.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Configuration;
using System.Data.SqlClient;
namespace Nvm.Web.FunctionalTests.Support
{
[TestClass]
public class Init
{
@lazytesting
lazytesting / readme.md
Last active Jul 21, 2016
run selenium grid
View readme.md

install JDK

1.install chocolatey

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

2.open new cmd window and run

@lazytesting
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
lazytesting / notify.ps1
Created Aug 17, 2016
notify slack on failed teamcity build
View notify.ps1
function Test-TeamCityBuildStatus
{
param
(
[string] $ServerUrl ="[TC server url]",
[string] $UserName = "[tc user]",
[string] $Password = "[TC password]",
[string] $BuildTypeId = "[build id]"
)
View recursive NPM install.sh
#!/bin/bash
DIRS=$(find . -maxdepth 3 -name "package.json" -printf "%h\n")
for d in $DIRS
do
( cd $d && NPM i )
done
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
$i=0
while($i -ne $instances)
{
@lazytesting
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",
You can’t perform that action at this time.