Specflow 3.1.82 Scenarios are retrying 2 times by default. How do I change retry count to 0

47 views
Skip to first unread message

sundresh

unread,
Feb 18, 2020, 2:05:19 PM2/18/20
to SpecRun
Specflow 3.1.82 Scenarios are retrying 2 times by default. How do I change retry count to 0

sundresh

unread,
Feb 18, 2020, 2:10:31 PM2/18/20
to SpecRun


On Tuesday, 18 February 2020 14:05:19 UTC-5, sundresh wrote:
Specflow 3.1.82 Scenarios are retrying 2 times by default. How do I change retry count to 0

Added Information:

I have set below in SpecRunTestProfile.xsd and SpecRunTestProfile_2011_09.xsd files
 
    <xs:attribute name="retryFor" type="RetryMode" use="optional" default="Failing" />
    <xs:attribute name="retryCount" type="xs:int" use="optional" default="0"  />
 

László Radnai

unread,
Feb 20, 2020, 5:38:29 AM2/20/20
to SpecRun
It's interesting idea to change the xsd but I would not recommend it.
I would create proper TestProfile instead.

Stephen McCafferty

unread,
Feb 20, 2020, 8:03:11 AM2/20/20
to SpecRun
As Laszlo correctly points out, you can set this in your profile. The documentation is here: https://specflow.org/plus/documentation/Execution/

There is a retryCount attribute that determines the number of retries, and a retryFor attribute that allows you to define the test results that should be retried (all tests, failing tests or none).

sundresh

unread,
Feb 20, 2020, 9:44:27 AM2/20/20
to SpecRun
Thank You!

sundresh

unread,
Feb 20, 2020, 9:44:39 AM2/20/20
to SpecRun
Thank you!
Reply all
Reply to author
Forward
0 new messages