The ministry of testing have a bloggers club, and each month they post a different prompt. I’ve not written anything for the bloggers club for a while, and decided to give this months prompt a go.The prompt: How do you reduce Scope? Disclaimer: The first part of this post is an example of a bad […]
Continue reading 'Reducing Scope (Let’s Test Less!!!)'
I came across the following tweet, which really got me thinking about my experiences learning to code, my career and why I made certain decisions in my career. I found I had a lot more to say than can be said in a single tweet, so here is my next blog post. What was your […]
Continue reading 'Should Testers Learn To Code?'
I’ve started commuting to work again, which means I’ve also started started listening to podcasts again. Last night, I was listening to the latest episode of the Testing Peers podcast which was focused on the Testing Mindset. It was an interesting discussion, and prompted me to write down my own thoughts about the topic. I […]
Continue reading 'My Thoughts On The Testing Mindset'
Over the weekend I released rst2pdf 0.99. The list of changes is quite long as it's been over a year since the last release. There are some key things in this release that I'm particularly pleased about including Python 3.9 and 3.10 & Sphinx 4 support, multiple styles in the class directive and the ability to specify background images in the raw:: pdf directive. There's also a number of bug fi
Continue reading 'Background images and multiple styles in rst2pdf'
2021 is over! A very strange year where I have been vaccinated against COVID-19, with an additional booster, yet I caught it and took months to recover. Fortunately, I continued to take a photo every day though my Project 365 which allows me to appreciate what happened during this year of my life. January January started out quietly with a hint of snow. I did a lot of walking, presented at The Onli
Continue reading '2021 in Pictures'
I was revisiting my code from Day 21 of the 30 Days of Tools challenge. This involved clicking the button on the following website: ministryoftesting.github.io/the-button/# In my code, I used GetAttribute(“src”) to check if the src attribute contained the words red or green to indicate the current colour of the button. Because it took about […]
Continue reading 'Waiting vs. Sleeping – Stop wasting time'
A couple of years ago, I decided to write another song based on the song Stop the Cavalry by Jona Lewie. After seeing the post on the Ministry of Testing forum asking us to write a song or poem, I decided to have another go at song writing. This time, I’ve based my song on […]
Continue reading 'A Testers Christmas Song!'
Challenge: Setup a locator using Xpath or CSS Selector that can be used to identify the tip on the worlds worst website. To make the challenge a little more difficult, you must not use the index or position number to identify the element. Answer the this weeks challenge can be found here: louisegibbstest.wordpress.com/2021/12/06/weekly-xpath-css-selector-challenge-ministry-of-testing-website-6th-de
Continue reading 'Weekly XPath/CSS Selector Challenge (Worlds Worst Website – 29th November 2021)'
Challenge: Setup a locator using Xpath or CSS Selector that can be used to identify the 2nd item in the On This Day list on WikipediaI discuss the answer to this challenge in next weeks blog post: louisegibbstest.wordpress.com/2021/11/29/weekly-xpath-css-selector-challenge-29th-november-2021/ The Wikipedia home page includes a series of daily featured articles, facts and events that happened on [
Continue reading 'Weekly XPath/CSS Selector Challenge (22nd November 2021)'
Now that I have a TouchID enabled Mac, I want to be able use TouchID for sudo access. There's a pam module available, so it just needs enabling: Edit /etc/pam.d/sudo Add a new line under line 1 (which is a comment) containing: auth sufficient pam_tid.so (Leave all other lines in this file.) That's it. Now, whenever you use sudo, you have the option of using TouchID to authenticate. Scripting it It
Continue reading 'Add TouchID authentication to sudo'
When working on rst2pdf, I use pyenv as I've written about before. Recently, I've found myself needing to recreate virtualenvs for various Python versions and then recreate them to easily reset the list of packages installed into them via pip. To my my life easier, I created a script that I can run from the command line: $ newenv rst2pdf-dev-py3.9 3.9.5 This creates a new virtualenv called rst2pdf-
Continue reading 'Quick script to (re)create my python virtualenv'
For many years now, I've been using Matthew Weier O'Phinney's changelog_generator script to generate an easy-to-read list of changes for a given milestone. Time has moved on; the Laminas project now uses Laminas Automatic Releases and Matthew hasn't updated his script since 2013. Since PHP 8, warnings have started appear, so it's clear updates were required. While I fully intend to see if I can use
Continue reading 'Changelog generator for GitHub milestones'
One thing that's quite convenient is to be able to throw an exception with a valid HTTP code set and have that code sent to the client. For example, you may have: throw new \RuntimeException("Not Found", 404); With the standard Slim 4 error handler, this response is sent to the client: $ curl -i -H "Accept:application/json" localhost:8888 HTTP/1.1 500 Internal Server Error Host: localhost:8888 Cont
Continue reading 'Setting HTTP status code based on Exception in Slim 4'
I don't do that much that's clever with git, but I've found the following helpful. Automatically prune When you do a git fetch or git pull, you can ask it to remove remote tracking branches for a branch that has been removed on the remote by using the --prune flag. This can be automated globally with: git config --global fetch.prune true and if you only want it for a specific repository, you can us
Continue reading 'A few Git tips'
One of my clients has recently moved to AnyConnect VPN and I've been having routing problems with the official Mac client. As my colleagues on Linux on the project have not had these issues, I investigated and installed the OpenConnect client. These are my notes after scouring the Internet to set it up how I want it. Installation I used Homebrew: $ brew install openconnect OpenConnect is a CLI tool
Continue reading 'OpenConnect on Mac'
When writing PHP for AWS Lambda, Bref is the way to do it. One thing I like about Bref is that you can use PSR-15 Request Handlers to respond to API Gateway HTTP events as documented in the API Gateway HTTP events section of the Bref docs. The request handler is the same as used in PSR-7 micro-frameworks like Slim or Mezzio and can be thought of as a controller action. As such, it's really… continu
Continue reading 'Dependency injection in Serverless PHP with Bref'