Wpf and specflow

2 posts, 0 answers
  1. Peter
    Peter avatar
    17 posts
    Member since:
    Mar 2017

    Posted 13 Apr 2017 Link to this post


    Do you have some documentation how to run WPF application and use Specflow?

        class dTrackingTTF :BaseWpfTest
            [Given(@"I run the application UK Risk Analyzer")]
            public void GivenIRunTheApplicationUKRiskAnalyzer()

                Manager.ActiveApplication.Manager.ActiveApplication.MainWindow.Find.ByTextContent("Daily monitoring").User.Click();         


    I get an error: 

    System.NullReferenceException: Object reference not set to an instance of an object.




  2. Elena Tsvetkova
    Elena Tsvetkova avatar
    941 posts

    Posted 17 Apr 2017 Link to this post

    Hello Peter,

    Thanks for contacting us. 

    Could you please elaborate more on what kind of tool is Specflow and how you would like to integrate with Test Studio? 

    Additionally I would like to note that you have two Manager.ActiveApplication in the Click method in the provided code - could you please leave the line like this: 

    Manager.ActiveApplication.MainWindow.Find.ByTextContent("Daily monitoring").User.Click();

    Please let me know if there is anything further I could be helpful with. Thanks! 

    Elena Tsvetkova
    Telerik by Progress
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top