Launch encoded UI as VS2012 windows
I am having a problem connecting my coded UI on a button click. I seem to keep getting errors like
"'Microsoft.VisualStudio.TestTools.UITest.Common.UITestLogWrapper' threw an exception."
I was wondering if there is a link that I was missing or if I need to change the initialization code?
Here is my code so far '
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize();
CodedUITestProject.CodedUITest1 coded = new CodedUITestProject.CodedUITest1();
coded.Method();
Microsoft.VisualStudio.TestTools.UITesting.Playback.Cleanup();
}
}
}'
Noting that Microsoft.VisualStudio.TestTools.extension.Uia Microsoft.VisualStudio.TestTools.extension.ie are not in private or open assemblies (is this something in 2012?)
Both projects are in .NET Framework 4
Any help would be greatly appreciated.
source to share
add link from. \ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ PrivateAssemblies. i means just adding a link from PrivateAssemblies and PublicAssemblies is enough. don't forget to check Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll, this is stated in the debug folder
source to share