Saturday, July 28, 2018

Using the behave Framework for Selenium BDD Testing: A Tutorial

Let's say you have a task to automate the testing of an application. Where should you start? The first step is to choose an approach to test automation, which will be the basis for your test development. When you are searching for possible options, you will find out that there are many of them, like unit testing, test-driven development, keyword-driven development, behavior-driven development and so on. In this article, we are going to talk about one of the most popular approaches to test automation - BDD or behavior-driven development. Follow the examples here on GitHub.

Explaining BDD

I suspect you might have a question here: "There is nothing about testing in the technique's name, so how it can be used for testing?". BDD originates from the test-driven development technique (TDD). This technique defines that before any functionality is implemented, tests should be created first. Usually, TDD is useful for short-term iterations when you need to keep your functionality safe from regression for a single unit that is under development.



from DZone.com Feed https://ift.tt/2LYnVwu

No comments:

Post a Comment