It's problematic that both a scenario condition (Given/And) and the expected result (Then) use the same step definition.
Not sure how it is in other languages, but in Java you cannot use the same step definition for different keywords.
If the intention is that both steps will check the span/transaction outcome, then this doesn't work as well because, at least in the Java agent, the outcome is only set when the span/transaction is ended (it would return unknown before).
Applying this change should resolve this problem.
It's problematic that both a scenario condition (
Given
/And
) and the expected result (Then
) use the same step definition. Not sure how it is in other languages, but in Java you cannot use the same step definition for different keywords. If the intention is that both steps will check the span/transaction outcome, then this doesn't work as well because, at least in the Java agent, the outcome is only set when the span/transaction is ended (it would returnunknown
before). Applying this change should resolve this problem.