How can I get out of Windows IoT reboot loop? - raspberry-pi2

So I have Windows IoT running on a RPi2, I deployed an app ( which was working fine in the debugger) and set it to run headless at startup. It seems to be throwing and unhandled exception on boot which is causing the Windows to then reboot. Is there anyway to prevent the app from starting and get out of the reboot loop to allow deployment of a new version? Seems Windows IoT is a bit unstable if it has to reboot because one startup app fails.

Use the Windows 10 IoT Core App to connect to the Admin Webpage of your page and change the default start app. Ok, you must be fast during the boot process to get to change it ;) HTH

Related

Testcafe testing IE on Windows Agent

What should I do with this error?
ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.
I got this error, when I try to run my test on ci on windows agent with that config:
I try to run tests using command testcafe ie ./src/*.spec.ts.
Locally on Windows 10/IE 11 everything works well. What can cause problem with browser connection on agent?
Microsoft browsers, especially IE, are known for memory leaks in large JS scripts. It can cause browser crashes and hangs. We have an issue to restart a browser that became unresponsive: https://github.com/DevExpress/testcafe/issues/1815, you can vote for it to show its importance and promote it for next development iteration.
UPDATE AUG 2019
Restarting browsers that don't respond was implement in a basic way.

Running tests on VM does not work unless window is open

We are attempting to do our testing remotely, so we set up some Virtual Machines to run our GUI tests and to free up our local machines. What we were hoping for was to have the tests run just like they would on a physical machine, however they seem to require an active Remote Desktop Connection up in order to run properly. These tests are written using LeanFT and it is a windows app so this is not mobile GUI testing.
Is there a certain way to configure this VM to set it up properly for automated GUI testing that does not require an active Remote Desktop Connection? It seems as if its sharing the controls on our physical machine..
Or am I completely wrong here.. Is a Remote Machine different than a Virtual Machine? Thanks!
It's possible to run a GUI test without an active Remote Desktop Connection
I achieved this with leanft through the following 2 steps:
Configure how you execute your tests
Whether you're running via a Jenkins slave or through another kind of "listener" (maybe ssh, or bamboo, etc.), you need to configure this listener to start after a specific user is logged on.
In my case I was running through the Jenkins slave, so I've configured the startup of the slave to launch as soon the user logged in.
Tell windows to login the user when the computer starts. You can achieve that via the following registry:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultDomainName"="DOMAIN"
"DefaultUserName"="USERNAME"
"AutoAdminLogon"="1"
"DefaultPassword"="PASSWORD"
The core requirement is that you need to have an active session (regardless of whether you are using Jenkins, TeamCity, Grid or other tools to launch the tests).
For your virtual machine, you will need to have access to the console. For VMWare vSphere, there is a native client or website. For VMWare Workstation or VirtualBox, these automatically display.
Using the console access, log into the system and set it up to never log out or sleep or hibernate. This is a variety of OS settings that you can look up.
Essentially, these boxes need to always be logged in. With this setup, you need to be sure access to these systems is controlled so that you don't have random people logging in / or logging out.

Universal Windows 10 Emulator not starting up OS

The Windows phone emulator running Windows 10 has been working since I've installed it and last time I used the emulator was a few days ago. Now for some reason when I load my application emulator does not load the OS.
here's the steps I go throuogh to run the app :
-Run "Mobile Emulator 10.0.10586.0 720p 5 inch 1GB (which is my usual emulator to run)"
Message box saying "Configuring Windows Phone for debugging ... "
Another message box appears saying "Click "Retry" to run the emulator in elevated mode. :
You do not have permission to modify internal Hyper-V network adapter settings, which are required to run the emulator
Click retry on the message box
"Are you sure you want to run Windows Phone Packages?" Click Yes
Configuring Windows Phone for debugging box still running
Phone emulator runs but stuck on "OS is starting..."
Message box appears after leaving it running for roughly 15 mins :
"The emulator is unable to connect t the device operation system :
Couldn't set up the UDP port. Some Functionality might be disabled.
will add this to the steps"
I've followed the instructions from forums to go to Hyper-V Manager and delete the virtual switches and virtual machines - which doesn't work. And I also have Hyper-V enabled on windows features.
Any other solutions would be appreciated, Thanks in advance!
UPDATE : so I've left it running just to see if it works eventually, now another message box appears saying :
The emulator is unable to connect to the device operation system : Couldn't set up the UDP port. Some functionality might be disabled.
UPDATE : So I managed to fix it .. a little. It works for the other apps I have as well as newly created universal windows projects. But this specific app doesn't . I notice that this specific one has the "Configuring Windows Phone for debugging" message pop up whereas the other ones don't.
Why not start fresh?
New OS, new install, everything from scratch.
And don't forget to not play with UAC, OS permissions, the firewall, and do not install anything which would install virtual network adapters. Like OpenVPN, USB modems (including an iPhone), etc.
This is a solution, because your problem could be anything.

Running selenium on Windows server 2008

I'm trying to automate some selenium tests.
I can run them locally in my machine, but when I try to run them in windows server 2008 (the server in which our CI server runs) the Firefox window only opens if I open the cmd line with admin privileges. I don't wan't this to run with admin privileges, so the question is: what do I need to do to be able to open Firefox window with a regular user?
There is nothing you can do about that. Starting with Windows Vista, Microsoft locked down the "interactable" sessions and so running WebDriver grid hub as a service which starts browsers in a desktop session will not work unless you are using Windows XP. So, what you need to do is have multiple grid nodes running in the foreground and leave those desktop sessions open in Windows 2008. Also, with Jenkins, running Selenium tests (without a grid) will exhibit the same problem where you'd have to run Jenkins in the foreground.
Windows says "By default, services use a noninteractive window station and cannot interact with the user. However, an interactive service can display a user interface and receive user input.". Also, "All services run in Terminal Services session 0. Therefore, if an interactive service displays a user interface, it is visible only to the user who connected to session 0. " See this site for this info.
The holy grail would be to write a Java program using SystemTray and then have the tray application auto-start a grid node session in the foreground when a desktop session starts. Just an idea since VisGrid cannot do this.
On Linux, there is a way to use xvfb to run grid as a service and run browsers in a headless session, but its a complex setup I think and I have never tried it. It's not very much different that the Windows situation anyway and I think the windows setup is easier.

Weblogic 10.3.5 Admin console Deployment page - Missing status of applications

I have an instance of Weblogic 10.3.5 running with a bunch of apps.
For some reason, the deployments page in the Admin console stopped showing the health (status) of the deployed apps (usually a green check icon). Just looks weird. Any ideas on how I can bring that back?
The apps are not running, possibly because their target machine isn't currently up. Find out what managed server they are targeted to and make sure it's running. If you want them to run on the Admin Server, you can change their targets via configuration.
some times it may happen...
First you have to make sure all the applications are running properly or not....
If any issues in deploying application or deployed application then it may show in this manner....
Exact solution to your problem is Restarting admin node
But it is better to do following steps...
Stop both admin and Managed nodes.
Start the Admin node then managed node.
Check the console...