BDD Resuable Script

What is BDD?

BDD stands for Behaviour Driven Development
BDD is an agile software development approach by which we can enhance our current project methodology by collaborating with both technical and business people in a team

What is the use of BDD Reusable?

BDD is mainly useful for the non technical person or client side team By Using BDD one can easily understand the process we are going through in a project BDD uses "Gherkin" Language by which one can understand easily using keywords - Given,When,And,Then,But. In such case, if we prepare the BDD steps in advance for the project we are working for, then it can be reused on any scenario or testcase which suits the bdd steps For this purpose we are use a feature called - Reusable BDD

BDD Script Import

QA Touch provides an option to do the bulk import of the BDD Test Cases.

  1. Login to QA Touch.
  2. Click Project - Test Cases.
  3. Click Import - BDD Script Import. image image
  4. Upload the BDD Script xml file.
  5. Click Import.
  6. The BDD Test cases are imported.

To import Test cases with BDD Scripts into QA Touch. The import file must be given in a specific XML format which is explained in this section. The XML format represents a tree of XML Tags. The basic format of an import file looks as follows:

<module_name> YOUR MODULE NAME </module_name>
<tags> TAGS </tags>
<featurescript>  NAME OF THE FEATURE
----- Followed by BDD keywords(optional) with its data ----
[Background, Scenario, Given, When, Then, And, But]




How to Create BDD Reusable

  1. Click on the Project in which you need reusable BDD
  2. CLick Testcases
  3. Then, CLick add - Reusable BDD Script
  4. Reusable BDD script window appears
  5. Click on Add script
  6. Enter a name for the reusable script
  7. Any BDD requires Feature field- so give a name appropriately in feature field
  8. Then click on (+) icon
  9. In the dropdown you can select any keywords which you need (In general any BDD script starts with "Given" apart from Feature and Background)
  10. Save after completing