I wanted to report if in case my application loads and hangs forever in any particular instance - hp-uft

There are some instances where application hangs and loads forever. How do i identify this and report using reporter event. I am stuck with this. Any help will be appreciated. Thanks in advance

Related

Xamarin.Forms Activity restarts on its own

This question is already asked here: https://forums.xamarin.com/discussion/32931/android-application-restarting, but no one has answered this yet.
I have a Xamarin.Forms application, and when the application starts, everything is okay, but sometimes, it restarts on its own after few minutes, this resets the current state of the app and goes to the main page.
My app has two activities: the first one is the MainLauncher and is the SplashScreen activity. The second activity is the one where my FormsApplication starts.
This is the second activity which restarts on its own on my Android 7.1.2 device in Debug mode (I didn't test in Release mode by the way).
The activity has the attribute LaunchMode.SingleTop attribute because I read in an other thread it would help, but with no luck.
I added breakpoints all over the activity to catch the process the activity is running through when the restart occurs, and it appears that the activity hits:
OnResume(), then
OnStop(), then
OnDestroy(), then
OnCreate(), then
OnStart()
But there is no reason for my activity to restart, and I hope somebody can help me or give me an hint because I am really stuck by this problem?
Thanks in advance.

Cypress freezing on multiple tests

When I run a suite of tests, Cypress is freezing on some tests. Different tests every time. At first I thought it was just tests that for some reason might take a while to run (like something that involves a timeout) but that doesn't seem to be the case. Running an individual test, with describe.only or it.only, does not freeze. Behavior is the same with cypress run in the command line.
When the test freezes, the spinner by the test in the Cypress pane still spins, but the app's UI is frozen -- for instance when my app's UI shows a spinner that spinner is frozen. Sometimes it even freezes on the VISIT / part of the test, before it even gets to any of the stuff that takes longer. Freezing happens in different spots, sometimes on different tests, on different cypress runs.
Also, even when a test file runs to completion, sometimes the Cypress UI (like the stop button at the top) doesn't respond.
This only started happening Friday, possibly coinciding with an update to 3.8.1. I've tried using 3.7.0 again, with no change.
Is anyone else experiencing this? I'm running on Windows 10 and the app is ReactJS.
If you are running Linux there is a bug related to Chrome 79 that freezes Cypress. Check here for more info: https://support.google.com/chrome/thread/24842699?hl=en
You can also update to latest Chrome version
How the problem was finally resolved ?
I encounter same problem but for some reason load event does not trigger even after 60.000ms; - I test app on different resolutions and sometimes, app doesn't load in some resolutions.

unable to launch application when lync is running?

I am working on some strange issue with my delphi application.
The scenario is as follows:
If microsoft Lync is running on my machine and if I want to launch my application, it does not getting displayed but the process was started for my application.
and when I close the lync, immediately my application gets visible.
Below are some points which you may need:
My application does not have any link with Microsoft Lync.
Application process is running when I close the lync
Form.Show() is the last statement called from my code.
This issue is not replicated on every machine.
I am not sure why this is happening.
Can anyone help me on this?
Any help or suggestion will be useful for me.
Thanks in advance.
Finally,
After a long checking of the code I came to know that this problem is due to the setting desktop as a parent window somewhere in the code.
Refer this link for SetParent().
When this problem has been discussed with the microsoft I came to know that the Lync is having some issue with some application when we call SetParent(Handle, 0) this will go for a long wait state.
Solution:
What I did is as the SetParentfunction call was important in my code I assign the SetParent property of the form to my application handle so this solves my problem.
The above step is done because in spy++ I found that every delphi application as 2 instances 1 is for TApplication and another is for MainFrom i.e. TForm of the same application.

Why does Selenium Webdriver start failing tests if I focus off its FireFox window?

I have some SeleniumWebdriver/TestNG tests that Im successfully running on FireFox. If I am watching the tests run, it is okay.
But If I start using another browser in the meanwhile, or skype for example, and I go back to the FireFox window that is running the tests, I always find out that some error has occurred - for example, the "User name" input hasnt been filled out.
Why does this happen, and how can I prevent it?
Try to use driver.switchTo().window(driver.getWindowHandle()); when filling out the form.

App crashes when being resumed

My wp7 app crashes when I come back from a task such as Map, Call or Web Browser. Infact, if i lock my phone and resume it again, still it crashes. Please tell me what could be the problem and how can I remove it?
There is a problem with you code.
Remove the application off the phone by starting a new emulator instance.
Open App.xaml.cs
Put a breakpoint in the method RootFrame_NavigationFailed and Application_UnhandledException
Now use the CallStack to find the root of the issue.
With no code posted (and in your case it could be ANYTHING in the project) you will be the best person to resolve your issue. If you can post a small reproduction on here we can take a look.
In application exit methods you probably should restore the data you dealt with last time before you quited

Resources