Is it possible to pass command line arguments in coded ui test ? in normal C# programs we just pass the arguments along with the exe file eg: filename.exe “2” “7” in command prompt.
but can something like this be done in coded ui tests?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you can do that.
CodedUitests are executed through command line throughMSTestwhich does not support it. Check here to see the available command-line options ofMSTest.However, you can create another
Project(e.g. console application) to achieve that. The second project has a reference to yourCodedUI Project. Then pass the parameters through the .exe file of this Project which calls the appropriateCodedUI Test Method. But I think that this will not work likeMSTestdoes (it will not create Test Results).