Testing Framework Driver

8 posts, 0 answers
  1. Adam
    Adam avatar
    6 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 Link to this post

    Am I correct in understanding that the only way to run tests created by the testing framework is with MbUnit, NUnit, VS Team Test, or XUnit? It would be more beneficial for me to be able to run a test using a windows forms. 

    Thanks. 

    Adam. 
  2. Zach
    Zach avatar
    33 posts
    Member since:
    Sep 2014

    Posted 12 Jan 2015 in reply to Adam Link to this post

    I use the testing framework with windows forms and that works for me.
  3. Adam
    Adam avatar
    6 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 in reply to Zach Link to this post

    Hmmmm, I am having trouble navigating to a URL with a button click, could you navigate to a tutorial or reference documentation? 
  4. Adam
    Adam avatar
    6 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 Link to this post

    I solved the issue..it appears that not running VS as an adminstrator was causing the issue I was running into. 
  5. Zach
    Zach avatar
    33 posts
    Member since:
    Sep 2014

    Posted 12 Jan 2015 in reply to Adam Link to this post

    Well I don't know how much I can help, but if you're going to be using windows forms with the testing framework, you should be doing your tests on a separate thread from your UI thread.

    maybe give this a read --> http://msdn.microsoft.com/en-us/library/ms951089.aspx

    The way I have my code set up, my form opens and the user chooses which tests are to be run, and then they just do their own thing on the separate thread. If you're attempting to control each action of the browser automation from the winform I'm not sure if I can help.

    UITestInterface = new Thread(() => TestRunner.runTests(myArgs));
    UITestInterface.Start();

    Once my test begins it runs just like you were running the testing framework from a console app...
  6. Zach
    Zach avatar
    33 posts
    Member since:
    Sep 2014

    Posted 12 Jan 2015 in reply to Adam Link to this post

    Oh yeah I had that same issue myself!

    well you can ignore my post mostly, but take a look into the multithreaded stuff if you're gonna be using winforms.
  7. Adam
    Adam avatar
    6 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 in reply to Zach Link to this post

    Thanks! I will! 
  8. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 15 Jan 2015 Link to this post

    Hi,

    @Adam, I am glad to hear you have resolved your issue.
    @Zach, thank you for helping others. We really appreciate it.

    Should you have any issues please do not hesitate to contact us again.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top