Time is the one thing of which everyone gets the same amount. Whether we are the CEO of a company or we are the intern, we all have 1440 minutes in a day. I've often heard testers talk about how they don't have enough time to test, and that can certainly happen when deadlines are imposed without input from everyone on the team. I've written a blog post about time management techniques for testers, but today I'm going to tackle the question:
Is it worth my time to automate this task?
Sometimes we are tempted to create a little tool for everything, just because we can. I usually see this happen with developers more than testers, but I do see it with some testers who love to code. However, writing code does not always save us time. When considering whether to do a task manually or to write automation for it, ask yourself these four questions:
1. Will I need to do this task again?
Recently my team was migrating files from one system to another system. I ran the migration tool manually and did manual checking that the files had migrated properly. I didn't write any automation for this, because I knew that I was never going to need to test it again.
Contrast this with a tester from another team who is continually asked to check the UI on a page when his team makes updates. He got really tired of doing this again and again, so he created a script that will take screenshots and compare the old and new versions of the page. Now he can run the check with the push of a button.
2. How much time does this task take me, and how much time will it take me to write the code?
Periodically my team's test data gets refreshed, and that means that the information we have for our test users sometimes gets changed. When this happens, it takes about eight hours to manually update all the users. It took me a few hours to create a SQL script that would update the users automatically, but it was totally worth my time, because now I save eight hours of work whenever the data is refreshed.
But there have been other times where I've needed to set up some data for testing, and a developer has offered to write a little script to do it for me. Since I can usually set up the data faster than they can create the script, I decline the offer.
3. How much time will it take to maintain the automation I'm writing?
At a previous job, I was testing email delivery and I wanted to write an automated test that would show that the email had actually arrived in the Gmail test account. The trouble was that there could be up to a ten minute delay for the email to appear. I spent a lot of time adjusting the automated test to wait longer, to have retries, and so on, until finally I realized it was just faster for me to take that assertion out of the test, and manually check the email account from time to time.
However, my team's automated API smoke tests take very little time to maintain, because the API endpoints change so infrequently that the tests rarely need to change. The first API smoke test I set up took a few days; but once we had a working model it became very easy to set up tests for our other APIs.
4. Does the tool I'm creating already exist?
At a previous company, the web team was porting over many customers' websites from one provider to another. I was asked to create a tool that would crawl through the sites and locate all the pages, and then crawl through the migrated site to make sure all the pages had been ported over. It was really fun to create this tool, and I learned a lot about coding in the process. However, I discovered after I made the tool that web-crawling software already exists!
But in that particular month I did have the time to create the tool, and the things I learned helped me with my other test automation. So sometimes it may be worth "reinventing the wheel" if it will help you or your team.
The Bottom Line: Are you saving or wasting time?
All of these questions come down to one major consideration, and that is whether your task is saving or wasting time. If you are a person who enjoys coding, you may be tempted to write a fun new script for every task you need to do; but this might not always save you time. Similarly, if you don't enjoy coding, you might insist on doing repetitive tasks manually; but using a simple tool could save you a ton of time. Always consider the time-saving result of your activities!
Email Subscription Form
Subscribe to:
Post Comments (Atom)
New Blog Location!
I've moved! I've really enjoyed using Blogger for my blog, but it didn't integrate with my website in the way I wanted. So I...
-
It's never fun to start your work day and discover that some or all of your nightly automated tests failed. It's especially frustra...
-
It's book review time once again, and this month I read Unit Testing Principles, Practices, and Patterns by Vladimir Khorikov. I thoug...
-
I've moved! I've really enjoyed using Blogger for my blog, but it didn't integrate with my website in the way I wanted. So I...
Nice article Kristin. Unfortunately many people start writing without thinking about the time.
ReplyDeleteThank you, Soma!
DeleteGood post, Kristin! I know the guy you talking about :)
ReplyDeleteBeen there, done that - and it applies even in non-testing situations.
ReplyDeleteIn my last role, we were in a situation where the dev manager wanted to migrate some reports from one tracking tool to another. But all the devs were busy, and in any case, he reckoned that it would take one of the devs three days to write and test the script.
When he talked about his problem, I said "I can do that for you." With application one on one screen, and application two on the other, simple cutting and pasting meant I was able to do the job in 40 minutes.
"Mr Day, you are a Force of Nature!" was the manager's comment. I think it just goes to show that sometimes, when your only tool is a hammer, every problem looks like a nail.
The people who didn't waste a minute in their life will become successful and it is sure. People buy many time devices to byt scheduling software maintain their time properly but I don't think so right now they need this. Because team calendar has made our every work very easy and simple. So, noe if you want then you can connect with that.
ReplyDeleteHey Guys !
ReplyDeleteUSA Fresh & Verified SSN Leads with DL Number AVAILABLE with 99.9% connectivity
All Leads have genuine & valid information
**HEADERS IN LEADS**
First Name | Last Name | SSN | Dob | DL Number | Address | City | State | Zip | Phone Number | Account Number | Bank Name | Employee Details | IP Address
*Price for SSN lead $2
*You can ask for sample before any deal
*If anyone buy in bulk, we can negotiate
*Sampling is just for serious buyers
==>ACTIVE, FRESH CC & CVV FULLZ AVAILABLE<==
->$5 PER EACH
->Hope for the long term deal
->Interested buyers will be welcome
**Contact 24/7**
Whatsapp > +923172721122
Email > leads.sellers1212@gmail.com
Telegram > @leadsupplier
ICQ > 752822040
Thanks for Sharing a very Nice Information & It’s really helpful for us.
ReplyDeletesoftware testing course
The Best Apps and Games For Android ·https://apkmodule.com/mini-militia-mod-apk-hack/
ReplyDeleteThe new and wonderful Apk for doodle Army 2
ReplyDeleteAbsolutely right, you've hit the nail on the head! The true value of time is often realized after it's lost, and managing time effectively is not easy for everyone. Like when I missed the time I had set aside to write my dissertation, and later I regretted it. Eventually, I sought help from a cheap business dissertation service to get my dissertation completed.
ReplyDeleteIntriguing title, 'A Question of Time'! The exploration of time can lead to profound insights, much like how tsoHost helps businesses save time with efficient and reliable hosting solutions.
ReplyDelete