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
Using Specflow steps defined in another dll
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
  3 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
 
vladimir boyarkin  
View profile  
 More options Apr 10 2012, 6:33 am
From: vladimir boyarkin <vladmir....@gmail.com>
Date: Tue, 10 Apr 2012 03:33:04 -0700 (PDT)
Local: Tues, Apr 10 2012 6:33 am
Subject: Using Specflow steps defined in another dll

Good day, colleagues.

I faced with some trouble when using specflow.
I have some projects which should be tested and i Have some common steps
for all of them (NavigationHelpers, Element interaction helpers)
I want to define them in some framework with forbidden commit compiled in a
dll and included to specfiic test projects as a reference.

But, as I understood Specflow can only find step definitions in another
projects  in the solution but no in dlls. It is completely inappropriate
for me, because the testing framework is placed in separate repository
(SVN), so I am forbidden by our system architect to mix projects from
different repositories in one solution.

Is there any solution how to include step definitions from a dll not from a
project?

Thanks a lot


 
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.
Roman Gavrilov  
View profile  
 More options Apr 10 2012, 1:17 pm
From: Roman Gavrilov <roman.gavri...@gmail.com>
Date: Tue, 10 Apr 2012 11:17:13 -0600
Local: Tues, Apr 10 2012 1:17 pm
Subject: Re: [specflow] Using Specflow steps defined in another dll
there is a way to use configuration to point to bindings defined
outside of the project.

https://github.com/techtalk/SpecFlow/wiki/Configuration

<specFlow>
  <stepAssemblies>
    <!-- <stepAssembly assembly="{name-of-assembly-containing-bindgins}" /> -->
  </stepAssemblies>
</specFlow>

--roman

On Tue, Apr 10, 2012 at 4:33 AM, vladimir boyarkin


 
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.
vladimir boyarkin  
View profile  
 More options Apr 10 2012, 1:58 pm
From: vladimir boyarkin <vladmir....@gmail.com>
Date: Tue, 10 Apr 2012 10:58:42 -0700 (PDT)
Local: Tues, Apr 10 2012 1:58 pm
Subject: Re: [specflow] Using Specflow steps defined in another dll

            if (specFlowProject != null)
            {
                foreach (var assemblyName in
specFlowProject.RuntimeConfiguration.AdditionalStepAssemblies)
                {
                    string simpleName = assemblyName.Split(new[] { ',' },
2)[0];

                    var stepProject =
VsxHelper.FindProjectByAssemblyName(project.DTE, simpleName);
                    if (stepProject != null)
                    {
                        function = FindCodeFunction(stepProject,
bindingMethod);
                        if (function != null)
                            return function;
                    }
                }
            }

When I try to got this binding by IntelliSense, I have nothing and even I
always have "steps being populated 0%" message, that means the IntelliSense
failed with internal error.
Probably the solution you have provided works in test runtime, but I know
this feature and l know that it is not working in test generation. But
intellisense in writing ATDD tests is the key feature for us, if it is not
working - specflow is useless for us despite of its fascinating
possibilities.

So, I clarify, I need to make IntelliSense work with steps defined in
another compiled dll, sorry for inconvinience

вторник, 10 апреля 2012 г., 21:17:13 UTC+4 пользователь Roman V. Gavrilov
написал:


 
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 »