Instruments > Automation - stops with "Script was stopped by the user" - instruments

When running a script in the Automation tool of Instruments I'm starting to get these errors when I click Start:
Script was stopped by the user
Any idea why and how to fix?

This happened usually when your script is illegal.
I met this error once when I captured too much interactions at one time. I delete some of the lines then it worked.
Hope is helpful: )

Click the switch to enable UI Automation.

Related

Xcode test : clean up code, even when stopped

I am running some xcode test (with XCTest/XCUITest).
I need some clean up to be performed at the end of each test, even when the test is stopped manually (via the square stop button in xcode).
Unfortunately in that case, the tearDownWithError is not called.
How can I write a piece of code that I am guaranteed will always run, even when the test is manually stopped?
Have you already tried to override tearDown()? I think it will help
You most likely can't. The stop button basically sends SIGKILL to the running test suite. While you could maybe try installing a signal handler to intercept SIGKILL and do the cleanup, I expect this would be difficult to do reliably.
It would probably be more fruitful to focus your energy on re-designing the test suite to be resilient in the face of a missed cleanup. What exactly do you need to do in the clean up?

how to minimize DTAExecutionHost.exe for coded UI tests

We are using TFS2015 VNext Run functional tests tasks to run our coded UI tests in VMs.
Our Code UI tests click controls on UI, and somehow the command shell of DTAExecutionHost.exe was in "Select" state which prevent the test run from finishing.
We had to log into the VM and manually un-select the DTAExecutionHost.exe to let the test run finish.
Any idea how to minimize the windows to prevent it being clicked by UI tests? Or if any workarounds to avoid the issue?
Thank you!
Angel
I managed to work around the issue by minimize all windows right after Test Agent being configured.

Xojo says "Build Failed" and dies without further message

I am trying to Run a project in Xojo, which used to run okay previously.
Currently observed behavior:
Clicking "Run", has Xojo display various messages, including "Done Assembling Code".
Then, "Build Failed" dialog box flashes briefly. So briefly, I cannot even grab a screenshot.
And then it disappears, and no diagnostic error/warning messages are given.
I am new to Xojo. The project used to build okay. Something must have changed. Is there a way to somehow see what the problem is? Right now it looks like the IDE keeps on working but the Run process just dies, after barely flashing "Build Failed" Dialog Box.
I will consider it a successful answer if it helps or aids me in the direction of solving this issue.
Turns out the Debug folder was locked by another process. Releasing the lock, restored Run operation.
Where can I find crash reports?
Windows allows you to collect a Minidump when a crash occurs.
The procedure requires modifying a registry value using Regedit. You can also do so with the Xojo command Registry http://docs.xojo.com/index.php/Registry
See https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 for the exact procedure.

Build never terminate with jenkins

I have problems with creating a job in jenkins. At the "Build" step I select Build "execute windows batch command", where I want to start a browser such as opera, google chrome portable or firefox portable, the command never terminates.View screenshot
For IE, firefox and chrome I do not encounter any problems
If someone has a solution. thank you in advance
What do you expect? You have launched an executable that shows a form, albeit in a session that can never have a console session attached.
Jenkins, by design, will sit there until the executable terminates - which generally happens when the form is closed by a user interacting with it. Since there is no GUI, this process can only ever terminate if someone kills it with Task Manager.
What are you actually trying to achieve? There's almost certainly a reasonable way to do it.

Running Ant script in IntelliJ results in script opening in editor

I've got a custom ant script for building and other fun stuff. IntelliJ has very nice integration for handling Ant tasks. However, every time I run a task IntelliJ opens the script in my editor panel. It moves to the line of the task I'm running and then I close it; actually I now have it in its own panel, minimized to the max.
Is there anyway to disable this behavior? I just want the Ant script to run the task, pop up its own panel with some feedback (which it does) and then allow me to keep coding without having to close the script. Please tell me this is possible.
Man, I can't believe this only had 4 views, and two of those were me. Pretty weak.
Anyways, I've got a solution that might help someone else down the road. In the Messages window that pops up when the ant build starts there is an Auto Scroll to Source button. Make sure this button is unchecked.

Resources