# Model-Based Testing Considered Useful

- Speaker: [Michael Bar Sinai](/wiki/speakers/michael-bar-sinai.md)
- Event: [Reversim Summit 2024](/wiki/years/2024.md)
- Video: https://www.youtube.com/watch?v=WWbdSvEr-Tg
- Transcript: [/transcripts/2024/42-WWbdSvEr-Tg.md](/transcripts/2024/42-WWbdSvEr-Tg.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Testing](/wiki/topics/testing.md), [Developer Experience](/wiki/topics/developer-experience.md), [Productivity](/wiki/topics/productivity.md), [Technical Debt](/wiki/topics/technical-debt.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores model-based testing as a powerful approach to automate software testing and reduce maintenance overhead. The speaker argues that instead of writing test scripts manually, developers can build a behavioral model and let a computer generate comprehensive test suites automatically. The audience learns how this methodology improves code quality, enhances team communication, and decouples test maintenance from software changes.

## Key points

- [0:13](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=13s) Model-based testing allows computers to automatically generate both test plans and full test suites from a given model.
- [1:23](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=83s) Good automated test coverage improves overall system quality by giving developers the confidence to refactor code and update dependencies without fear.
- [3:47](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=227s) Industry surveys show that developers spend only a fraction of their time writing code, while testing and quality assurance remain primary bottlenecks for engineering teams.
- [6:33](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=393s) Traditional testing pyramids require heavy maintenance effort, forcing teams to choose between moving fast and being fully protected against bugs.
- [8:52](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=532s) Models are useful, machine-friendly descriptions of application behavior or parameter spaces that enable the automated generation of infinite test scenarios.
- [21:04](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=1264s) Finding the optimal test suite is an NP-complete problem, so heuristics and combinatorial test design must be used to select the most effective subset of tests.
- [26:29](https://www.youtube.com/watch?v=WWbdSvEr-Tg&t=1589s) Beyond generating tests, model-based testing allows teams to mathematically verify requirements and catch design flaws before writing any code.

## Takeaways

- Use behavioral models to separate test creation from manual script writing, letting automation handle test generation.
- Adopt combinatorial test design principles to systematically cover parameter combinations without running every possible permutation.
- Refactor and update tests by modifying the central model rather than manually fixing hundreds of individual test scripts after a code change.

## Questions this talk answers

- How does model-based testing reduce the maintenance burden compared to traditional automated test scripts?
- Can model-based testing be used to catch design flaws in product requirements before implementation begins?
- How do you handle test automation integration when generating tests from abstract business models?

## Technologies

Selenium, XML

## Tags

combinatorial testing, developer productivity, model-based testing, refactoring, software quality, test automation
