Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
'Go To Definition' Not Finding Bound Step
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason Evans  
View profile  
 More options Mar 29 2011, 11:38 am
From: Jason Evans <testms...@hotmail.com>
Date: Tue, 29 Mar 2011 08:38:04 -0700 (PDT)
Local: Tues, Mar 29 2011 11:38 am
Subject: 'Go To Definition' Not Finding Bound Step
Hi there.

Using version 1.3.5.33 of the VS 2010 features MSI. I spotted
something that I'm unsure how easy it would be to resolve.

When I right-click on the following line in a feature file:

Then the webpage will contain the text "Daily Community Spotlight"

and choose 'Go To 'Definition' I get a message saying:

'No matching binding found for this step'

Here is the step:

[Then(@"the webpage will contain the text ""(.*)""")]
public void ThenTheWebpageWillContaingTheText(string text)
{
   Assert.IsTrue(ActiveBrowser.ContainsText(text), "Webpage did not
contain expected text.");

}

I think that because the method name is generic (in other words, we're
using (.*) to capture the text), it seems that SpecFlow is unable to
match the feature file 'Then' to it's step binding.

Cheers.
Jas.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gáspár Nagy  
View profile  
 More options Mar 30 2011, 3:56 am
From: Gáspár Nagy <gaspar.n...@gmail.com>
Date: Wed, 30 Mar 2011 00:56:24 -0700 (PDT)
Local: Wed, Mar 30 2011 3:56 am
Subject: Re: 'Go To Definition' Not Finding Bound Step
No. Theoretically this should work. I'll check.

On Mar 29, 5:38 pm, Jason Evans <testms...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gáspár Nagy  
View profile  
 More options Mar 30 2011, 8:07 am
From: Gáspár Nagy <gaspar.n...@gmail.com>
Date: Wed, 30 Mar 2011 05:07:59 -0700 (PDT)
Local: Wed, Mar 30 2011 8:07 am
Subject: Re: 'Go To Definition' Not Finding Bound Step
I did a quick test and it worked for me, so my questions are:

- Is it possible that you had some [StepScope] on the class?
- Was the project in a compilable state?
- Do you have the [Binding] attribute on the same file as the step
binding?
- Could you make a small repro project?

On Mar 30, 9:56 am, Gáspár Nagy <gaspar.n...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Evans  
View profile  
 More options Mar 30 2011, 9:43 am
From: Jason Evans <testms...@hotmail.com>
Date: Wed, 30 Mar 2011 06:43:47 -0700 (PDT)
Local: Wed, Mar 30 2011 9:43 am
Subject: Re: 'Go To Definition' Not Finding Bound Step
Hi there.

Ahhh, yes, your right.

I have my steps split into 3 separate files:

- StepsGiven.cs
- StepsWhen.cs
- StepsThen.cs

I use one partial class defined across those three files, but only
StepsGiven has the [Binding] attribute.

StepsGiven.cs:
[Binding]
public partial class Steps : BaseTest    { //

StepsThen.cs:
public partial class Steps { //

So I guess my splitting of the class is causing a problem with the 'Go
To Definition'. It works fine for steps found in the StepsGiven.cs
file, but not if the steps are stored in either of the other two
files.

Cheers.
Jas.

On Mar 30, 1:07 pm, Gáspár Nagy <gaspar.n...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gáspár Nagy  
View profile  
 More options Mar 30 2011, 1:43 pm
From: Gáspár Nagy <gaspar.n...@gmail.com>
Date: Wed, 30 Mar 2011 10:43:50 -0700 (PDT)
Local: Wed, Mar 30 2011 1:43 pm
Subject: Re: 'Go To Definition' Not Finding Bound Step
the strange thing is, that when I did this simplification, I was sure
that nobody uses partial classes as bindings. assumptions are always
dangerous... :)

not in 1.6, but I'll fix it. could you register an issue for this
please?

On Mar 30, 3:43 pm, Jason Evans <testms...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Evans  
View profile  
 More options Mar 30 2011, 3:48 pm
From: Jason Evans <testms...@hotmail.com>
Date: Wed, 30 Mar 2011 12:48:48 -0700 (PDT)
Local: Wed, Mar 30 2011 3:48 pm
Subject: Re: 'Go To Definition' Not Finding Bound Step
Hi there.

I've created an issue for this (ID: 53) on GitHub for you.

Cheers.
Jas.

On Mar 30, 6:43 pm, Gáspár Nagy <gaspar.n...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »