BDD Framework

BDD Framework (ODC)

Stable version 1.4.0 (Compatible with ODC)
Uploaded on 04 November 2024 by OutSystems Labs
BDD Framework

BDD Framework (ODC)

Details
Detailed Description

This component was made by OutSystems Experts

Main Highlights:

  • Create test scenarios and steps that conform to Behavior Driven Development principles.

  • Enable test-driven development, in which you define scenarios and steps early in the app design process and write test code when the features are implemented.

  • Easily add scenarios and steps by dragging and dropping web blocks (Scenario + Given / When / Then clauses).

  • Enhance test maintenance, as test outputs are identical to the ODC Studio design, making it easy to pinpoint and troubleshoot step failures.

  • Supports multiple tests in the same page and evaluates final results (that is, the number of successful / failed tests).

  • Includes dedicated setup/teardown steps for complex test scenarios.


Main Benefits:

  • The test code is developed in the same way as the Business code
  • It’s based on the Gherkin syntax
  • Works like a live documentation



Limitations

Execute one step multiple times inside a scenario

Though an edge case, note that iterating a BDDStep block with a ListRecords widget inside the BDDScenario block is not supported. Unpredictable results, including interrupting test execution, may occur. Here’s an example of the unsupported structure:

| BDDScenario

| - BDDStep

| - BDDStep

| - | ListRecords <= Not Supported

| - | - BDDStep

| - BDDStep


Mixing data-driven and simple scenarios in a single screen is not supported

You can’t have one test screen with both simple and data-driven scenarios. If you create a test with a data-driven scenario, it should have its own screen.

Release notes 
  • The layout of the BDD Step block was modified to increase the width of the step description placeholder providing more space to add text.
  • A new setting called "DisableScreensAuth" was added to disable the screens auth token, for retro compatibility with O11 BDD test code migrated and to make the test execution simpler in very specific use cases. By default, the auth token on screens is enabled.
    Important: Use it only when your tests don't affect business data, or work with mock data or your applications are running inside private networks.