{"id":77,"date":"2019-06-17T19:22:11","date_gmt":"2019-06-17T19:22:11","guid":{"rendered":"https:\/\/www.bddtesting.com\/?page_id=77"},"modified":"2019-06-17T19:22:12","modified_gmt":"2019-06-17T19:22:12","slug":"how-to-test-behavior-driven-development-bdd-with-practitest","status":"publish","type":"page","link":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/","title":{"rendered":"How to Test Behavior Driven Development (BDD) with PractiTest"},"content":{"rendered":"\n

Managing BDD testing with PractiTest<\/h2>\n\n\n\n

With more and more companies shifting from waterfall to Agile or Agile-like approaches testing<\/a>and quality has become a more integral element in all phases of the project and not just at the end of it.<\/p>\n\n\n\n

One of the oldest and better known premises of QA is that it is easier to develop a product right using a quality driven approach than by fixing all the bugs at the end, and here is where approaches such as BDD come into play.<\/p>\n\n\n\n

Behavior-driven development or BDD, which was first written by Dan North<\/a>, is a method for a more accessible and effective way for teams new to agile software delivery that aims at testing human behavior rather than a computer function.<\/p>\n\n\n\n

The approach, using the basic concepts of \u201cgiven, when, then\u201d to describe various user scenarios, offers an improved communication method between product owners, developers, testers and users with or without a tool. A common usage of this approach is with automation using Gherkin and combining it with unit testing.<\/p>\n\n\n\n

Managing your BDD requirements using PractiTest will allow you to get end-to-end coverage for your user stories, starting from requirements, connecting them to relevant tests and runs, reporting issues in case such arises and reporting results via real time updating dashboards.<\/p>\n\n\n\n

Combining manual, automation and exploratory testing within PractiTest will enable you to get a comprehensive picture of your testing status and ensure that you are providing your stakeholders the right information at the right time to make smarter project and product decisions.<\/p>\n\n\n\n

What BDD tests look like in PractiTest?<\/h3>\n\n\n\n

Creating user stories \u2013<\/h4>\n\n\n\n

Because BDD testing is based on user stories, it is best to start in PractiTest Requirements\u2019 module, where you can create and manage all your project requirements. [see more on how to create Requirements<\/a>]<\/p>\n\n\n\n

\"new<\/figure>\n\n\n\n

Your requirement for any scenario should be written in BDD common phrasing: \u201cGiven \u2013 When \u2013 Then\u201d. In this example we display a simple \u201cLogin\u201d scenario with a full description in BDD format \u2013

<\/p>\n\n\n\n

Creating and Running Tests \u2013<\/h4>\n\n\n\n

The next step is to create a test for the requirement. To create a related test, go to the Traceabilityin the new Requirement and create a new test for the requirement<\/strong> (notice that it is possible to connect the requirement with an existing test from the test library as well). The new Test created will be linked to the requirement throughout PractiTest, which will make tracking the user story status clear, simple and reportable. The new Test just created will have the same title and full description as it\u2019s originating Requirement.<\/p>\n\n\n\n

The next phase is to add the test steps.<\/h4>\n\n\n\n

When testing using BDD methodology with PractiTest, it is best to define the first step \u201cSTEP 1\u201d as your \u201csunny day scenario\u201d \u2013 your primary scenario to be tested. And then you can subsequently use the following steps (2, 3, 4, etc.) to test alternative scenarios based on the primary scenario. Be sure to mention the title of the scenario, and full expected results. Be sure to SAVE CHANGES.<\/p>\n\n\n\n

\"test<\/figure>\n\n\n\n

Once the test is ready add it to an existing Test Run<\/strong> (of course a new Test Run can be created as well). And proceed to Run.<\/p>\n\n\n\n

In the Test Instance window, mark the Pass\/Fail etc. for each step. In this example the last step on my test, scenario 4 has failed. I can update the actual results description for further handling and documentation. The status of my Test can also be seen in the Test Library as well. (Note: with PractiTest, if any one step is marked as \u201cFail\u201d the entire test status will be flagged as \u201cFailed\u201d)<\/p>\n\n\n\n

\"last<\/figure>\n\n\n\n

Exporting and Viewing Results \u2013<\/h4>\n\n\n\n

The Test results can be exported in the Reports section and you can also create a useful Dashboard representation of your BDD Testing Results.
[
Read more about PractiTest Dashboards<\/a>]<\/p>\n\n\n\n

\"practitest<\/figure>\n\n\n\n

https:\/\/www.practitest.com\/qa-learningcenter\/best-practices\/bdd-testing\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Managing BDD testing with PractiTest With more and more companies shifting from waterfall to Agile or Agile-like approaches testingand quality has become a more integral element in all phases of the project and not just at the end of it. One of the ….  Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"class_list":["post-77","page","type-page","status-publish","hentry"],"yoast_head":"\nHow to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing\" \/>\n<meta property=\"og:description\" content=\"Managing BDD testing with PractiTest With more and more companies shifting from waterfall to Agile or Agile-like approaches testingand quality has become a more integral element in all phases of the project and not just at the end of it. One of the ....  Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/\" \/>\n<meta property=\"og:site_name\" content=\"BDD Testing\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-17T19:22:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.practitest.com\/assets\/img\/learning-center\/new-requirementBDD.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/\",\"url\":\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/\",\"name\":\"How to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing\",\"isPartOf\":{\"@id\":\"https:\/\/www.bddtesting.com\/#website\"},\"datePublished\":\"2019-06-17T19:22:11+00:00\",\"dateModified\":\"2019-06-17T19:22:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.bddtesting.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Test Behavior Driven Development (BDD) with PractiTest\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bddtesting.com\/#website\",\"url\":\"https:\/\/www.bddtesting.com\/\",\"name\":\"BDD Testing\",\"description\":\"Behavior-driven development testing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bddtesting.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/","og_locale":"en_US","og_type":"article","og_title":"How to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing","og_description":"Managing BDD testing with PractiTest With more and more companies shifting from waterfall to Agile or Agile-like approaches testingand quality has become a more integral element in all phases of the project and not just at the end of it. One of the ....  Read More","og_url":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/","og_site_name":"BDD Testing","article_modified_time":"2019-06-17T19:22:12+00:00","og_image":[{"url":"https:\/\/www.practitest.com\/assets\/img\/learning-center\/new-requirementBDD.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/","url":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/","name":"How to Test Behavior Driven Development (BDD) with PractiTest • BDD Testing","isPartOf":{"@id":"https:\/\/www.bddtesting.com\/#website"},"datePublished":"2019-06-17T19:22:11+00:00","dateModified":"2019-06-17T19:22:12+00:00","breadcrumb":{"@id":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bddtesting.com\/how-to-test-behavior-driven-development-bdd-with-practitest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bddtesting.com\/"},{"@type":"ListItem","position":2,"name":"How to Test Behavior Driven Development (BDD) with PractiTest"}]},{"@type":"WebSite","@id":"https:\/\/www.bddtesting.com\/#website","url":"https:\/\/www.bddtesting.com\/","name":"BDD Testing","description":"Behavior-driven development testing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bddtesting.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/pages\/77"}],"collection":[{"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":1,"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/pages\/77\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/pages\/77\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/www.bddtesting.com\/wp-json\/wp\/v2\/media?parent=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}