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.
Thanks.
Adam.
7 Answers, 1 is accepted
0
Zach
Top achievements
Rank 1
answered on 12 Jan 2015, 07:21 PM
I use the testing framework with windows forms and that works for me.
0
Adam
Top achievements
Rank 1
answered on 12 Jan 2015, 07:35 PM
Hmmmm, I am having trouble navigating to a URL with a button click, could you navigate to a tutorial or reference documentation?
0
Adam
Top achievements
Rank 1
answered on 12 Jan 2015, 07:46 PM
I solved the issue..it appears that not running VS as an adminstrator was causing the issue I was running into.
0
Zach
Top achievements
Rank 1
answered on 12 Jan 2015, 07:52 PM
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...
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...
0
Zach
Top achievements
Rank 1
answered on 12 Jan 2015, 07:54 PM
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.
well you can ignore my post mostly, but take a look into the multithreaded stuff if you're gonna be using winforms.
0
Adam
Top achievements
Rank 1
answered on 12 Jan 2015, 08:09 PM
Thanks! I will!
0
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
@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
Test Studio Trainings