Answered by:
Can I run multi-threading for CUIT on single Application?

Question
-
Hi all,
I use CUIT from VS2010 Premium Edition, I aims to implement ~400-500 test methods based on one application. I have concern on the execution time if we run regression test (all 400-500 test methods) for one round...
Hence I want to ask can I do the following
1. start and login the application by single thread
2. multi thread to execute different test method list but on same target application
3. after all test method thread complete, trigger logout and close application step
*** I also have question, since CUIT treat the mouse and keyboard action, what's happen if for step 2 that we have multiple threads that testing application by CUIT
Thanks in advanced!
Saturday, March 30, 2013 1:59 AM
Answers
-
Hello,
Thank you for your post.
I did a research and find that the Coded UI Test is running in Single Thread Apartment (STA) mode of COM. In this mode, all the playback calls should happen from the TestMethod thread only.
Based on Rajeev's reply in this following thread, the MTA(multithreaded apartment) is not supported by Coded UI Test.
http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/4debe4df-6e5e-40b6-ad60-b04f3d93dea7
Best regards,
Amanda Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Amanda Zhu Monday, April 1, 2013 1:50 AM
- Marked as answer by Amanda Zhu Thursday, April 4, 2013 12:44 AM
Monday, April 1, 2013 1:21 AM -
Noted and thx a lot your information
- Marked as answer by TungLee Wednesday, April 3, 2013 3:09 AM
Wednesday, April 3, 2013 3:09 AM
All replies
-
Hello,
Thank you for your post.
I did a research and find that the Coded UI Test is running in Single Thread Apartment (STA) mode of COM. In this mode, all the playback calls should happen from the TestMethod thread only.
Based on Rajeev's reply in this following thread, the MTA(multithreaded apartment) is not supported by Coded UI Test.
http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/4debe4df-6e5e-40b6-ad60-b04f3d93dea7
Best regards,
Amanda Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Amanda Zhu Monday, April 1, 2013 1:50 AM
- Marked as answer by Amanda Zhu Thursday, April 4, 2013 12:44 AM
Monday, April 1, 2013 1:21 AM -
Noted and thx a lot your information
- Marked as answer by TungLee Wednesday, April 3, 2013 3:09 AM
Wednesday, April 3, 2013 3:09 AM