This is a migrated thread and some comments may be shown as answers.

Testing Framework Driver

7 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 12 Jan 2015, 04:57 PM
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. 

7 Answers, 1 is accepted

Sort by
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...
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.
0
Adam
Top achievements
Rank 1
answered on 12 Jan 2015, 08:09 PM
Thanks! I will! 
0
Boyan Boev
Telerik team
answered on 15 Jan 2015, 12:58 PM
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
 
Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Zach
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or