The SQA2 Blog:
Behavior Based Testing (BBT) framework is an idea with business, developers, and QAs in mind. Its an approach that does not require expert knowledge in programming to cover a small area of testing. Instead, its a simple approach into generating a full test coverage without any technical skills.
The core of BBT is a set of business requirements, a specification of the functionality or behavior of a unit. Requirements, or outcomes, are what drives BBT and allows it to generate full coverage of specified requirements, without the knowledge of a programming language.
What is the BBT framework?
The Behavior Based Testing framework provides the visibility of test coverage when generating all possible permutations for requirements. Using the BBT tool will provide you with additional reporting and the framework to execute and schedule test suites.
BBT Graphing Tool
As mentioned, the graphing tool BBT provides allows us to quickly create the behavior of a system, in this example, we are graphing the behavior of a web service in which passing these parameters will return a 200 status code and a response of a top 10 artist will be recommended. By graphing the positive flow, BBT tool will generate all permutations of test coverage for this behavior. See my blog on Test Case Optimization for generating test coverage manually.
How to graph on BBT:
Creating contexts and/or outcomes:
Utilizing the BBT tool, we can create outcomes and contexts in our graph by selecting the grid or the two buttons located in the tool bar. Within the pop-up, we will define the node type (contexts or outcome) and provide it the needed information regarding the node.
Adding in Event:
In order to generate valid test coverage, we add an event to determine the relations between the contexts and outcomes. To add an event, we select the event button located right of context/outcome button in the tool bar. This will display a pop-up allowing us to create a relation between context and outcome.
After identifying the relationship between our contexts and outcomes we can move on. We are now able to generate the coverage for this behavior by hovering over File -> Generate.
For the following graph:
We generated two positive test cases:
and 256 negative test cases which is generated by BBT engine all with one graph:
Reporting Tool – BBT
BBT tool provides reporting for each run via email in PDF format or metrics of automation coverage and executions.
Scheduling tool – BBT
BBT tool allows us to manage and schedule test suites for all generated test cases.
You can see this for yourself. Go to the BBT Portal at bbt.sqasupport.com