Podcast

236: Sleeping Is Not Your Best Friend in Automation with Michelle Macdonald

By Test Guild
  • Share:
Join the Guild for FREE
Michelle Macdonald

Have you ever watched SpongeBob SquarePants? If so, this episode is for you as we Test Talk with Michelle Macdonald about the SpongeBob-themed talk she gave at last year’s SeleniumConf titled “Sleeping is not your best friend in automation.” Discover why “sleeping” is not optimal, and learn better ways of using waits in Selenium. Are you ready? If so, listen up!

About Michelle Macdonald

MichelleMacdonald

Michelle is a Selenium and Appium Test Automation Engineer (Senior Developer) at Pronto Software Limited. Known as the Automation Evangelist in the workplace, she has been passionate about all things Selenium for over 5 years. With support and assistance from her manager, she has been actively involved in the training of traditional non-technical QA staff to write automation. She lives in Australia, about 45 mins drive away from Melbourne.

Quotes & Insights from this Test Talk with Michelle Macdonald

  • So what we did was we built some sort of overall general page objects and methods to sort of interact with anything and everything in our ERP. So we don't have tests that cover everything because that would mean we'd have an infinite number of tests. First of all, I had to build a test to make sure that all the functionality was intact. In the browser that all the data tables were navigatable, all the buttons could be clicked. All those sorts of things, dialogue's and pop up to work as an expected. That was it was pretty easy actually. And we just decided to make sure that we had explicit waits used all throughout our test suite.
  • I set up a framework in that allowed them to rather than write a fully fledged selenium command I would create little routines and methods that allowed them to do things like click buttons and closed dialogues and write to input fields. So the scripts that they actually write are a little bit more simplified.
  • The first thing I did was I bought a book. We went to New York for a holiday in July and I thought I'm going to buy a book about giving presentations and read it on the plane. And I did it and it was a great book. And it just really helped me sort of to think about the talk it's not about me it's about the audience and I don't want to alienate the audience by saying you should do this and that it should be more conversational.
  • In any particular language you can actually put in a pause, a delay or a fixed time out in your script so that it doesn't do anything say for a period of time you can specify the time say five seconds one second one hour if you want and it will just put the script to play and pause or activity until that time is over. It's a little bit dangerous because it could be that that time could vary obviously for that page to load.
  • So talk had a bit of a sponge bob square pants sayings because I'm a little bit childish and I also wanted to entertain a little bit because I've been to some conferences and the talks are sometimes pretty dry. I wanted to have a bit of a theme and because I had an afternoon talk I want the bright colors to keep everyone away. So I thought What's one way of talking about sleep's that's a little bit more interesting less dry and I thought I can create my own episodes called mishmash sleep rants. Instead of sponge bob square pants. And I just thought I'd talk about four examples of where I found it hard to not use sleeps.

Connect with Michelle Macdonald

Automation Guild 2019 Ad

Rate and Review TestTalks

Thanks again for listening to the show. If it has helped you in any way, shape or form, please share it using the social media buttons you see on the page. Additionally, reviews for the podcast on iTunes are extremely helpful and greatly appreciated! They do matter in the rankings of the show and I read each and every one of them.
SponsoredBySauceLabs

Powered By SauceLabs

Test Talks is sponsored by the fantastic folks at Sauce Labs. Try it for free today!

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

267: Smart Test Execution with Eran Sher

Posted on 08/25/2019

Do you run an entire automation test for every build because you don’t ...

266: Automation Journey and TestNG with Rex Jones II

Posted on 08/18/2019

In this episode we’ll test talk with Rex Jones about his automation testing ...

265: TestProject a Community Testing Platform with Mark Kardashov

Posted on 08/11/2019

In this episode, we’ll talk to Mark Kardashov, CEO and Co-Founder of TestProject, ...