Explore more about the basic Test Case Fragments feature here |
A Test Case Fragment (TCF) in TF Automate is a sequence of test steps written using the Gherkin specification. In addition to the standard Gherkin specification, TCFs include TCF-specific Gherkin sentences. You can refer to the complete Gherkin specification here.
Gherkin TCFs follow a modular approach to testing, simplifying test maintenance and encouraging the reuse of common test components. By leveraging TCFs effectively, you can enhance test coverage while minimizing duplication and reducing maintenance overhead.
Execution context
A test case in TF Automate operates within an execution context, which includes several key components:
- Local Variables: Local variables defined within a test case. These cannot be reused in TCFs.
- Selector Aliases: These cannot be reused in TCFs.
- Remembered iframes: References to specific iframes remembered during test case execution. These are not reusable in TCFs.
- Data repository - Can be reused
-
Drivers (Browser, Shell, HTTP, Mobile):
- Currently, only a single instance per driver is supported.
TCF-specific sentences are not supported in test cases, and test case-specific sentences are not allowed in TCFs. |
Comments
0 comments
Please sign in to leave a comment.