Hide IE instance when executing Coded-UI tests - coded-ui-tests

I'd like to be able to run my Coded-UI tests on a headless browser. Is there some way for me to hide the IE browser instance when executing my tests?

You are asking two questions.
Can you run Coded UI tests on a headless browser?
Can you hide the IE browser instance when executing tests?
Coded UI tests can be run on a Virtual Machine (VM) (or even a physical computer) where no display is connected. To do this both the application under test and the Visual Studio that runs the tests must be running on that VM. The application under test could be a browser. Visual Studio also has an "agent" software that can run a test under the control of Visual Studio, or MTM or programs like mstest.exe.
Coded UI runs tests by running the application under test. If that application is a browser then that browser must be running and must be displaying its output on a screen. The screen may on a remote physical or virtual computer and does not need to be shown on any real screen. It is common to have a remote desktop to access the computer running the tests, but to have that desktop not in focus while the tests run. If the remote desktop is minimised or if it starts running a screensaver then the test will fail.

Related

Unable to run android emulator in build agent connected to my local machine in TFS

I am stuck with an issue which I dont seem to find any way to fix it.
I have created a batch file to launch the android emulator
emulator -avd myEmulator -gpu swiftshader
adb wait-for-device
when I open cmd and run the batch file manually in my machine, I am able to launch the emulator.
Now, I have a Batch Task added in TFS which points to the above batch file in the repository.
Whenever I run the task, I see the below information
The emulator seems to be running in the backgroud because when I try and start the same emaulator manually when the build is running, it gives me the error Emulator is already running. How do I fix this. i want the emulator to launch and be visible. I didnot add any script to run in the background because if I run the batch file manually it seems to be working. Please help
Update:
As an interactive process with auto-logon enabled. In some cases, you
might need to run the agent interactively for production use - such as
to run UI tests. When the agent is configured to run in this mode,
the screen saver is also disabled.
Try to run your build agent under Interactive mode. More details please refer our official doc here: Interactive vs. service
According to your description, TFS seems succeed creates and starts emulator in background, and waiting for full android loading on emulator.
To get a workaround, could you try to run the emulator directly on the build agent machine instead of your local machine.
You could setup your own agent and instance on a local machine that runs an emulator. Check if this do the trick.

virtual studio code gui launches fine from my two x-render options [mobaxterm and x-win32/ssh] but fails on Gnome gui remote graphics

Latest rpm version of virtual studio code gui launches fine from my two x-render options [mobaxterm and x-win32/ssh] but fails to launch gui from either of my remote graphics Gnome Desktop solutions [x-win32 LIVE and NICE DCV], aside from --disable-gpu, which failed to help, what else would cause this topic when DISPLAY environment variable is set in all cases?

Run Web automation tests on Jenkins Build Server

I have the following setup:
Windows Server 2016 VM in Azure with Jenkins and .NET.
The nighlty job fetches the repo and runs the automated E2E tests using Specflow and xUnit. The web-related steps run silently (i.e. without displaying the browser window). How can I configure the job to display the browser during test run?
P.S. When I run the same suite using xunit console runner the window gets displayed.

How to make my windows7 based application run or set notification on windows8.1

all
I'm working on my windows7 pc with Visual Studio 2013. Windows8 sdk is installed.
I do not want to change a lot to port my project to a windows-store based program but I want my program can send notification while my windows8.1 tablet pc is sleeping.
I don't need my app actually running after entering sleep. I just want to setup an alarm-like (with defined alarming time) notification when I push some button in my app, before entering sleep mode.
Alternatively, I want my app keep playing sound in sleep mode (and the app is still running without rendering)
Is there a workaround without changing too much codes?
P.S. My project uses qt.
P.S.2 I can remote debug on my windows8.1 tablet but it is difficult to code on that tablet..

WebTests in VS2012 not running

We use VS Ultimate for web tests and load tests, but since moving to VS 2012 from VS 2010, the web tests don't seem to run anymore. We used to be able to do ctrl-r ctrl-t to debug specific tests, but that doesn't work anymore. I then found out about the issue with running tests in context, so I just tried running all tests, but that didn't work either. VS2012 is acting like it doesn't see WebTest as real tests anymore.
Even when I try to view the tests in the test explorer, nothing shows up. I know my tests are correct because I can go back in to VS 2010, and everything still works like it should.
Is anyone else having this issue?
Visual Studio 2012 dropped the "Test View" window that we used to use to run tests in VS 2010. The new "Test Explorer" window only recognizes Unit Tests and Coded UI Tests, as you've discovered. This totally threw me off too.
To run web and load tests (besides the obvious but tedious method of actually opening them and clicking "Run" in the editor window) you have to select the tests you want to run in the Solution Explorer, then Load Test (menu) > Run > Selected Test. Or alternatively "All Tests in Solution".
You also have the option of running the individual Web Tests that are contained in any open Load Test. Right-click on the Test Mix node (in Scenario) or any of the tests in the Test Mix.
For completeness here is the authoritative source: http://msdn.microsoft.com/en-us/library/ms182541.aspx
By the way, here is another gotcha: although you still choose testsettings for a Load Test from the Load Test menu, you now set the testsettings for Web Test execution separately, under the Test menu:

Resources