Now open explorer, and go to %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup and create a new shortcutīrowse to your TeamCity build agent folder, and select agent.bat Next, Next, Next, give it a good name ‘TeamCity Build Agent’, Finish Set to automatic startup ![]() ![]() Put in port 9090, or whatever you set your teamcity server to Once we have added the port on azure, we need to open the windows firewall for that port on the VM itself Now we go back into Azure Management, and add the port Open Filewall Ports reg file i.e DisableWER.reg then run Windows Registry Editor Version 5.00įill in your teamcity server URL, and note the port number the agent is running on Windows error reporting causes issues when running UI automation, if you app crashes (which is why we have UI automation, to find that sort fo thing) then you want it to exit straight away, not popup the Windows Error Reporting Dialog Now you are logged in, bump the screen resolution up to 1280x1024 (or whatever suites you). Reconnect using something other than remote desktop If using azure you need to open up the port (Manage VM, EndPoints, Add, Next). ![]() Install the DFMirage driver, available from the TightVNC download page.Set your passwords, I am happy to not have a separate administration password.Do a complete install, leave all options ticked when presented with them.Next we need to install VNC onto the server, we cannot use remote desktop because after you disconnect the desktop will lock, and your tests will start failing. The advantage of using this tool rather than just putting it in the registry, is that your password will be encrypted rather than plain text :) Once you have downloaded, extracted, run and accepted the EULA you can enter the credentials to login with. To do this, download Sysinternals Autologon for Windows from. Next, we need our VM to login automatically, if our VM restarts, it needs to come straight back up and logs in. Otherwise downloading everything will be rather painful (unless you just want to download firefox or chrome, then don’t worry. On first login, make sure you tell the initial configuration and server manager to not open on startīefore you close server manager you want to click on Configure IE ESC, then turn it off. Now we are ready to go, lets remote desktop into our VMĮnter your remote desktop credentials which we you setup when creating your VM This also means you don’t have to work around the fact that the 2012 start screen shows first, and we need to be on the desktop. I choose Windows Server 2008 R2 as the Operating System, it is preferable to use a client operating system, but server OS’s are all that are available in Azure. At least VM’s run on a locked desktop, or on the cloud and you need to remote in. I recommend using a VM, because otherwise you are leaving a desktop unlocked where anyone can come and use it. This blog post will show you how to setup a UI Test agent on Azure VM’s, but you can use your own vm infrastructure. This means that you need a fully unlocked desktop for things to work correctly. Note that you will need to modify the values for API_KEY, APP_PORT, GI_SUITE, and NGROK_TOKEN at the top of the script.Many UI automation frameworks automate not only using automation patterns, but also automate your mouse and keyboard. Here we've provided examples for both Linux (bash) and Windows (PowerShell). The script will download the Ghost Inspector CLI binary, start the local application, and then execute your suite against it using a temporary VPN tunnel. The following script will handle the actual work of executing the test suite in Ghost Inspector. From the Run: dropdown select "Custom Script".Īdd a Step Name of "Run Ghost Inspector Test Suite" and then add the script below to the Custom Script field. From the dropdown menu, select Command Line. Go to your project's build and select Edit Configuration Settings > Build Steps > Add Build Step. To execute a Ghost Inspector test suite within our project, we're going to add a new Command Line Build Step. ![]() You will need the auth token provided in your account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |