Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Case: Handle multiple Features in one test codeunit #84

Open
lvanvugt opened this issue Jan 29, 2021 · 0 comments
Open

Use Case: Handle multiple Features in one test codeunit #84

lvanvugt opened this issue Jan 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request version B Next to be picked up (but needs probably some detailing)

Comments

@lvanvugt
Copy link
Contributor

lvanvugt commented Jan 29, 2021

This issue is to get clearance (and eventually implement) on how TestScriptor should handle test codeunits with multiple FEATURES.

Current Situation

When creating a new FEATURE this leads to a new test codeunit that complies with the implicit principle that one codeunit contains only one FEATURE. The FEATURE tag will (only) be stored in the OnRun trigger.
But existing test codeunits can contain multiple features (with each SCENARIO, i.e. test function, having the applicable FEATURE tag placed within the realm of the test function).
TestScriptor page does list them nicely, but creating new scenarios in such a codeunit does not work right.

Issues:

  • selecting last scenario in test codeunit in TestScriptor and creating new one will create indeed a new SCENARIO/test function, but only store FEATURE tag in OnRun, making the SCENARIO an orphan (as it is not clear to what FEATURE it belongs
  • selecting a non-last scenario and creating a new one will indeed create a SCENARIO entry in TestScriptor, but no test function

Wanted situation

  1. A function that can split up existing test codeunit with multiple FEATUREs into multiple test codeunits with each of the holding only one FEATURE (with its related SCEANRIOs)
  2. Allow test codeunits to (keep) contain(ing) multiple FEATURES and
    • place with each test function (SCENARIO) the FEATURE it belongs to
    • add new scenario with FEATURE based the existing scenario selected in the TestScriptor
@lvanvugt lvanvugt added enhancement New feature or request version B Next to be picked up (but needs probably some detailing) labels Jan 29, 2021
@lvanvugt lvanvugt self-assigned this Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request version B Next to be picked up (but needs probably some detailing)
Projects
None yet
Development

No branches or pull requests

1 participant