Sharing step definitions across test suites (BDD)

Skip to end of metadata
Go to start of metadata

It is possible share BDD step definitions across test suite via collectStepDefinitions().

For this the file test.py/.js/.rb./etc. of the BDD test cases must be edited, to add an argument to the existing collectStepDefinitions() call,

test.py of a BDD test case

In addition, the Object Map entries that are used in these steps must also be shared between the test suites: Sharing an Object Map across test suites

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Dec 28, 2018

    If you want all newly created BDD test cases to have this, you can edit the template that is used to create new test.py files, and add your global scripts directory there.

    In Python, the template file is located under SQUISHDIR/scriptmodules/python/bdt_driver_template.py