Skip to content

Instantly share code, notes, and snippets.

View jaffamonkey's full-sized avatar
🏠
Working from home

Paul Littlebury jaffamonkey

🏠
Working from home
View GitHub Profile
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Paul Littlebury",
"label": "Quality Engineering | Test Architect | Test Management | Lead SDET | Mentor | Team Protection",
"image": "",
"email": "paullittlebury@gmail.com",
"phone": "",
"url": "https://thegreenapp.nl",
"summary": "Detail-oriented, reliable, and forward-thinking, with over 20 years experience in the field of Quality on many Agile projects. I combine the disciplines of test engineering, DevOps, exploratory testing, test management and quality assurance to provide a more rounded contribution to project quality.\n\nKEY SKILLS:\n* Project Quality Assurance \n* Quality Engineering\n* Test Management\n* Test Architect\n* Test coaching\n* Remote working\n\nSOME CAREER HIGHLIGHTS:\n\n2002/2003: Test management on O2 rollout of MMS and Mobile video, during surge of smartphone development and advent of 3G. Frenetic, anti-social hours, but also a lot of fun.
wait for element input[type=text] to be visible
set field input[type=text] to username
set field input[type='password'] to password
wait for element button[type=button] to be visible
click element button[type=button]
screen capture example.png
wait for url https://xyz.com/dashboard
wait for element h3[class='headline font-weight-light text--primary'] to be visible
screen capture example2.png
@jaffamonkey
jaffamonkey / mp3-to-aac.md
Last active April 25, 2020 11:57
How to set up older mobile as music player (FAT(16) formatted sd card + AAC music format)

Get list of disks

$ df
Filesystem      512-blocks Used      Available  Capacity iused  ifree               %iused Mounted on
/dev/disk1s1    468452448  265627424 191018320  59%      961439 9223372036853814368 0%     /
devfs           381        381        0         100%     666    0                   100%   /dev
/dev/disk1s4    468452448  10485848   191018320 6%       2      9223372036854775805    0%  /private/var/vm
map -hosts      0          0          0         100%     0      0                   100%   /net
map auto_home   0          0          0         100%     0      0                   100%   /home
/dev/disk6s1    4193536    2998720    1194816   72%      512    0                   100%   /Volumes/SD CARD MUSIC
// An example of running Pa11y programmatically
// To setup: npm install -g pa11y
// To run: node pa11y.js
const pa11y = require('pa11y');
runExample();
// Async function required for us to use await
async function runExample() {
// Filename: mocha-chai-nightmare.js
// To setup: npm install -g mocha chai nightmare
// To run: mocha mocha-chai-nightmare.js
const Nightmare = require('nightmare');
let assert = require('chai').assert;
describe('Check the DuckDuckGo search results page title', function () {
this.timeout('60s');
// Filename: nightwatch-chromedriver.js
// To setup: npm isntall -g nightwatch chromedriver
// To run: nightwatch --config nightwatch.json --test nightwatch-chromedriver.js
module.exports = {
'Check the DuckDuckGo search results page (one step)': function (browser) {
var home = browser.page.Homepage();
home.performSearch();
},
// Filename: jest-webdriver.js
// To setup: npm install -g jest selenium-webdriver chromedriver
// To run: jest jest-webdriver.js
var webdriver = require('selenium-webdriver'),
By = webdriver.By;
var browser = new webdriver
.Builder()
.usingServer()
// Filename: mocha-zombie.js
// To setup: npm install -g zombie mocha
// To run: mocha mocha-zombie.js
var Browser = require('../node_modules/zombie');
Browser.visit('https://duckduckgo.com');
describe('User visits signup page', function () {
const browser = new Browser({
// Filename: webdriver-javascript.js
// To setup: npm install -g selenium-webdriver chromedriver
// To run: node webdriver-javascript.js
// The easiest way to look at this, is it's creating an object that's webdriver.
var webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until;
var errorMessage = 'Could not locate the correct ';
let chrome = require('selenium-webdriver/chrome');
@jaffamonkey
jaffamonkey / mocha-puppeteer
Last active April 10, 2020 17:54
Mocha and Puppeteer UI test
// Filename: mocha-puppeteer.js
// To setup: npm install -g mocha puppeteer
// To run: node mocha-puppeteer.js
describe('Check the DuckDuckGo search results page', function () {
before(async function () {
page = await browser.newPage();
await page.goto('https://duckduckgo.com');
});