My Simple Approach to App Health Check with Automation

Scripting + Cron.

Zhimin Zhan

--

Image credit: https://pixabay.com/illustrations/blood-pressure-monitor-check-test-3934879/

This is included in the “My Innovative Solution to Test Automation and Continuous Testing” series.

Below is a definition of “App (software) Health Check”:

“Health Checks give you the ability to monitor the health of your application by writing a small tests which returns either a healthy, degraded or un-healthy result. This is useful not only to test the internal health of your application but also it’s external dependencies such as an third party api which your application relies on to function correctly.” — source

There are two ways to implement App Health Check.

  • Using a commercial service, such as AppDynamics.
    Besides cost, it is usually complex and over-engineered. Most apps don’t need that.
  • Self-created utility
    and run it regularly.

I prefer the latter because it is usually quite easy if adopting correct approaches. Sadly, most software companies did not do that well, commonly either over-engineered or not reliable.

During test automation consulting, there have been a few cases where someone requested me to write automation scripts for health check purposes. This article shows my (simple yet effective) approach and shares an app-health-check…

--

--

Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.