I have created a coded UI test using visual studio , I got the code in VB and I need it in c# ,is there a way to convert it to c# using visual studio? or that I must do the coded UI process all over again ?

有帮助吗?

解决方案

I had a similar problem last year where I was asked to recode a project from VB to C#. I ended up re-recording the entire project in C# since the Designer Files are computer generated, they can't be editted by the UI Tools if they're VB then converted to C#. It also gave the opportunity to redesign the tests in a more functional way.

其他提示

I don't have VB test handy to check this, but you could try using a web based converter and go from there. Might be better than starting from scratch.

http://www.developerfusion.com/tools/convert/vb-to-csharp/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top