Giter VIP home page Giter VIP logo

Comments (6)

marcusoftnet avatar marcusoftnet commented on June 12, 2024

Hmmm - I not sure I follow you, but I had another bug around references that I've just updated to NuGet.

Install the 1.0.1 version and see if this is resolved.

from specflow.assist.dynamic.

marcusoftnet avatar marcusoftnet commented on June 12, 2024

And of course I messed that up.
Get 1.0.2 that is now the most recent.

from specflow.assist.dynamic.

radicalgeek avatar radicalgeek commented on June 12, 2024

lol. Thank you. Same problem persists though. Let me try and explain it better now I am not on the train!

Basically I am trying to build a solution that tests a range of browsers, and is easy for new developers / testers. In an attept to support all the browser I have fond and am happy with the functionality of the Baseclass.contrib.SpecFlow.Selenium.NUnit package. I had some issues at fist, but after posting on that project site I am happy they have been resolved, part of which was they guy who wrote it also had to update the references. However, I am seeing issues when I try and add in SpecFlow.Assist.Dynamic as well.

The first issue was that after adding SpecFlow.Assist.Dynamic, the custom tool that generates the feature file class failed to run, and reported an error with the Baseclass.contrib.SpecFlow.Selenium.NUnit dll causing the project not to build. After doing a diff before and after I add SpecFlow.Assist.Dynamic I noticed that the hint path for the specFlow dll in the project file had changed from ..\packages\SpecFlow.1.9.0\lib\net35\TechTalk.SpecFlow.dll to ..\packages\SpecFlow.Assist.Dynamic.1.0.0\lib\40\TechTalk.SpecFlow.dll. After I manually changed that back to the original path the project built again, and the custom tool ran.

Thinking that I had solved the issue, I went back to my step file where I wanted to use the CreateInstance() extension method to instantiate a class that represents a form on the page I am testing. However, it now seems unable to find the extension method. I have the using statement, and the assembly reference looks good, but when I add the call to CreateInstance in my code and try and compile I get this error:

'TechTalk.SpecFlow.Table' does not contain a definition for 'CreateInstance' and no extension method 'CreateInstance' accepting a first argument of type 'TechTalk.SpecFlow.Table' could be found (are you missing a using directive or an assembly reference?)

I have tried this again with the new versions of both SpecFlow.Assist.Dynamic, Baseclass.contrib.SpecFlow.Selenium.NUnit which have had their respective references updated within 24 hours of each other. I have done this by adding SpecFlow.Assist.Dynamic first followed by Baseclass.contrib.SpecFlow.Selenium.NUnit, and by adding them in the reverse order. It now seems the hintpath issues has not re-occurred, but I get the same error when I try to make the call to CreateInstance().

Hope that is a little clearer. thank you for your assistance.

from specflow.assist.dynamic.

marcusoftnet avatar marcusoftnet commented on June 12, 2024

So sorry that it took me a day to get back to you.

I've tried really hard and I cannot reproduce the problem. Here you'll find an example project (https://dl.dropboxusercontent.com/u/2408484/ClassLibrary4.zip) where I've tried to but failed.

I now understand your problem and that the Hint-path is a project file (csproj) element. And I've checked and I don't see the behavior you describe.

For awhile I thought that it might have to do with the order that packages (Baseclass.contrib.SpecFlow.Selenium.NUnit and SpecFlow.Assist.Dynamic) were installed into the project but I've tried and it still works.

Have look through my demo code and see if there's simplifications or misunderstandings that I've made that you don't have.
And if you have the time try to simplify your project (or send me the whole thing) to the simplest scenario where you still see the problem.

I really want to help you out but right now I cannot repo. Sorry.

from specflow.assist.dynamic.

radicalgeek avatar radicalgeek commented on June 12, 2024

Thanks for getting back to me. I have not seen that hint path thing twice, it seems to be resolved (or I caused it somehow the first time) I will have a look at your project and try it again my self (though I did try it in a new solution 3 or 4 times) Thank you for your efforts.

from specflow.assist.dynamic.

marcusoftnet avatar marcusoftnet commented on June 12, 2024

Hey - great!

Thanks for using my framework - I hope it continues to behave!

from specflow.assist.dynamic.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.