Skip to main content

Posts

Using Coded UI library in VS2012 Express Windows Desktop

Pre-requisites: Visual Studio 2012 Express Windows Desktop Agents for Visual Studio 2012 Update 1 ( link ) Steps: Install VS2012 Express Windows Desktop Install Test Agent from "Agents for Visual Studio 2012 Update 1 Download a copy cuitemplate from https://apisamplecode.codeplex.com/. This link goes directly to the source location ( link ) Sample code below uses ApplicationUnderTest class. For it to work, you need to reference the following assemblies: C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\11.0\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Framework.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualS

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

When I try to restart Apache using sudo service apache2 restart I am getting the following message: * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName To get rid of it, I have to add the following in my /etc/hosts file: 127.0.1.1 ubu1210minib.com ubu1210minib Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve.  Also need to modify /etc/apache2/sites-enabled/000-default  to have a line like: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ubu1210minib.com DocumentRoot /var/www Note the line that contains ServerName , that should match with the name prov