Technology1 min read

Recycle your tests: many shades of green

By · Published by Everything Blog

In short

Rather than altering test logic, trivago teams use Cucumber tags within their Selenium-based framework, trupi, to designate existing suites for operational use cases. For synthetic monitoring, automated routines evaluate live production sites like trivago.com every 10 minutes from three distinct cloud regions. The setup utilizes local proxies to replicate real visitors while simultaneously filtering synthetic visits out of internal analytics systems.

Key points

  • Existing end-to-end test suites can be repurposed for production monitoring to offset hig…: Existing end-to-end test suites can be repurposed for production monitoring to offset high maintenance and development expenses.
  • Automated testing alerts route directly to site reliability engineers through Slack to ad…: Automated testing alerts route directly to site reliability engineers through Slack to address platform incidents quickly.
  • Automation identifiers isolate synthetic testing visits from core analytics platforms to…: Automation identifiers isolate synthetic testing visits from core analytics platforms to preserve search intelligence data integrity.

Sources checked by our analysis pipeline: 1

”Our environment is under constant pressure, and all we want is to see more green.” I say this sentence quite often at work, and it has never had anything to do with the planet.

In a previous article, I mentioned that test failures pile up when the environment has a bad day. This time, the environment is the topic, in both senses. Here’s how we took a small subset of the end-to-end tests we already maintain and gave them three new jobs:

- monitoring our live platforms

- collecting performance data after each release

- checking stage stability after backend changes

All three run on scenarios we had already written and were maintaining anyway.

The hidden waste of single-purpose tests

End-to-end tests are expensive. They are expensive to write, to keep stable, and to run. A scenario that searches for a destination, applies a filter and checks the results can take several iterations to get right and make as bulletproof as possible. Then it lives the life of a jam jar that only ever holds jam: useful, refilled on every…

Technology