Closed SiarheiDubovik closed 6 years ago
@SiarheiDubovik do you have ideas for workaround?
@DzmitryHumianiuk So, at the current moment we just exclude all Feature instead of Scenario.
Example:
@excludedTag
Feature: Feature1
Background:
Given step1
And step2
When step3
Scenario: Scenario1
And step4
Then step5
But I think it will be better if this situation will be covered in the Agent's code
@SiarheiDubovik can you send a pull request in a while?
@DzmitryHumianiuk I have no resolution right now, because feature object cannot provide exact number of enabled Scenarios. So I will try to define some Solution for this
@SiarheiDubovik this one consider is fixed?
@DzmitryHumianiuk Yes, I verified this on my project and issue is not reproducing now
In Cucumber we can exclude some tags from execution. Example:
-Dcucumber.options="--tags ~@excludedTag"
In case if feature files has only scenarios, which marked by this tag:
we receive situation when Test Item will be start in beforeFeature method
but then execution will immediately goes to after feature method and we will try to finish empty Test Item
As result I got following message:
Error Message: Test item status is ambiguous. There is no status provided from request and there are no descendants to check statistics for test item id '5b617cba8a7f7107c4a5d56c' Error Type: AMBIGUOUS_TEST_ITEM_STATUS