I have the following situation:
Given I can execute a Test Case individually or as part of a Test Suite or as part of a Test Collection
When I call some method to retrieve the top-level Test Case name
Then I get the top-level Test Case name
I have the following project structure:
Test Cases
\---- My App
\---- Test
|---- MA-1 Login Steps
\---- MA-2 Create Customer
The MA-2 Create Customer
Test Case Calls MA-1 Login Steps
I would like to call some method similar to RunConfiguration.getExecutionSourceName();
inside of the MA-1 Login Steps
to get the top-level test name.
This is to create a filename with the top-level test case name instead of the executing test case name for screenshots or log files at runtime.
Are there any quick solutions to this?