Unable to launch Scenario after update to SpecFlow 3.1.62

66 views
Skip to first unread message

Annie Costa

unread,
Nov 22, 2019, 4:17:14 AM11/22/19
to SpecFlow
Hi all, 

I'm facing a problem on my solution after upgrading some nuget such as:
- SpecFlow  from 3.0.225 to 3.1.62  => automatically download nuget  Cucumber.Messages (7.0) /  Gherkin (6.0)
- SpecFlow.Tools.MsBuild.Generation from 3.0.225 to 3.1.62
- SpecRun.Runner from 3.0.391 to 3.1.33
- SpecRun.SpecFlow.3-1-0 (3.1.33)  (previously SpecRun.SpecFlow.3-0-0 (3.0.391))

When I try to launch the scenario in Visual Studio, they are not working and I have this following error message:
    System.MissingMethodException: Méthode introuvable : 'Void Io.Cucumber.Messages.TestCaseStarted.set_PickleId(System.String)'.


What should I change on my solution to make it works fine?
In attachment my specflow.json file

Thanks for your help
specflow.json

Andreas Willich

unread,
Nov 22, 2019, 5:52:41 AM11/22/19
to SpecFlow
There were some breaking changes in Cucumber.Messages 7.0 that SpecFlow doesn't support yet.
Please downgrade to version 6.0.

We will fix the dependencies in a future update.

Regards
Andi

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specflow/93288bd1-31e4-42db-8751-a1506730d8e7%40googlegroups.com.

Annie Costa

unread,
Nov 22, 2019, 5:57:47 AM11/22/19
to SpecFlow
I think I found the problem.
In the class CucumberMessageFactory, the implementation of the method  BuildTestCaseStartedMessage(Guid pickleId, DateTime timeStamp, Platform platform)
contains the following lines:

"    var testCaseStarted = new TestCaseStarted
            {
                Timestamp = timeStamp.ToCucumberMessagesTimestamp(),
                PickleId = ConvertToPickleIdString(pickleId),
                Platform = platform
            };
"

But When we go to the implementation of the class "TestCaseStarted" available in Cucumber.Message version 7.0 there is no PickelId element.

Annie Costa

unread,
Nov 22, 2019, 5:59:32 AM11/22/19
to SpecFlow
I tried to go down to 6.0 but seems to have same pb.. or maybe my solution didnt see my change...
I decide to go down all my upgraded nugets :(

Will try to do the upgrade another time when having less Testing project on pipeline :S


Le vendredi 22 novembre 2019 11:52:41 UTC+1, Andreas Willich a écrit :
There were some breaking changes in Cucumber.Messages 7.0 that SpecFlow doesn't support yet.
Please downgrade to version 6.0.

We will fix the dependencies in a future update.

Regards
Andi

On Fri, Nov 22, 2019 at 10:17 AM Annie Costa <girlys...@gmail.com> wrote:
Hi all, 

I'm facing a problem on my solution after upgrading some nuget such as:
- SpecFlow  from 3.0.225 to 3.1.62  => automatically download nuget  Cucumber.Messages (7.0) /  Gherkin (6.0)
- SpecFlow.Tools.MsBuild.Generation from 3.0.225 to 3.1.62
- SpecRun.Runner from 3.0.391 to 3.1.33
- SpecRun.SpecFlow.3-1-0 (3.1.33)  (previously SpecRun.SpecFlow.3-0-0 (3.0.391))

When I try to launch the scenario in Visual Studio, they are not working and I have this following error message:
    System.MissingMethodException: Méthode introuvable : 'Void Io.Cucumber.Messages.TestCaseStarted.set_PickleId(System.String)'.


What should I change on my solution to make it works fine?
In attachment my specflow.json file

Thanks for your help

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spec...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages