Windows 11 O.S. - Test Execute not correctly running

Originally posted by simonaferrara on March 27, 2025

Hi,

with Windows 11 O.S. I’m falling within some issues for the Azure DevOps release pipeline execution, that randomically fails with an “Unable to connect to TestExecute error”.

This error happens when TestExecute is sometimes not correctly started, that is: it is shown within the Task Manager but is not appearing within the running programs:

The issue can be resolved after several attempts, by trying to kill the process and then rerun it but, in the meanwhile, the automatic tests within the release pipeline cannot be executed since the “Unable to connect” error is raised.

Note that the machine contains only the Administrator user, so there are no other users connected.

This issue had never happened by using Windows 10.

Has anyone encountered this issue and how do you have resolved it?

Thanks!

Simona

Originally posted by rraghvani on March 27, 2025

I’m not sure how your TestExecute is launched, but are you using the /exit parameter? This parameter will ensure that TestExecute is fully closed once all tests are completed.

Originally posted by simonaferrara on March 27, 2025

From release pipeline, I’m using VSTest task, as this example:

If I run it manually (and the issue is replicated also manually), I simply double click TestExecute.exe by running it as administrator.

Originally posted by rraghvani on March 27, 2025

In the task you have shown, is there a way of adding command line parameters, which can be used for TestExecute?

For example (not sure if it will work!),

- task: VSTest@2
  displayName: 'Run TestExecute tests'
  inputs:
    testSelector: 'testAssemblies'
    testAssemblyVer2: '**\*TestExecute*.exe'
    searchFolder: '$(System.DefaultWorkingDirectory)'
    runSettingsFile: '$(System.DefaultWorkingDirectory)\TestRunSettings.runsettings'
    otherConsoleOptions: '/param1 value1 /param2 value2'
    diagnosticsEnabled: true

or

- task: CmdLine@2
  displayName: 'Run TestExecute with Parameters'
  inputs:
    script: '"C:\Program Files (x86)\SmartBear\TestExecute\TestExecute.exe" /Project:"$(Build.SourcesDirectory)\MyTestProject.pjs" /run /exit /param1 value1 /param2 value2'

Originally posted by Marsha_R on March 27, 2025

Do your TestComplete and TestExecute versions still match?

Originally posted by simonaferrara on March 28, 2025

I’ve got only TestExecute version installed on that machine (no TestComplete installed) and it is the following: 15.68.8.11 x64 .

Originally posted by simonaferrara on March 28, 2025

I think that the /exit parameter will not solve anyway, since the issue happens on TestExecute activation action, not at closure action.

Originally posted by rraghvani on March 28, 2025

Check that you are not running TestExecute in silent mode. Which prevents the system tray icon from appearing.

TestExecute might be running as a non-interactive session, which also prevents the system tray icon from appearing. Check your pipeline is set up correctly and is set as interactive.

Ensure Windows 11 is not hiding the system tray icon for TestExecute.

Finally, ensure the same account is used for everything i.e. Azure Pipeline, active session etc. UAC is disabled.

Originally posted by simonaferrara on March 31, 2025

Hi,

TestExecute in not runned in silent mode. As per issue description, the issue happens also by running manually TestExecute, and not only through a release pipeline.

Windows 11 configuration is not hiding the system tray icon for TestExecute.

The same account is used for everything. The machine has got only an account.

UAC is disabled.

Regards,

Simona

Originally posted by simonaferrara on March 31, 2025

Marsha_Rdid you have further suggestions?

Originally posted by Marsha_R on March 31, 2025

I asked about versions because of this

https://support.smartbear.com/testexecute/docs/index.html?ga_source=TC_Help&ga_campaign=ipm_TE

We recommend using a TestExecute version that matches the TestComplete version you used to create the test. Projects created in later TestComplete versions may fail in earlier versions of TestExecute. For example, TestExecute ver. 12.60 may fail to run a test created in TestComplete ver. 14.0.

Originally posted by simonaferrara on April 16, 2025

Marsha_R​ I’ve installed the same TestExecute version: 15.66.7.11 x64 , and automatic tests are developed with the same TestComplete version: 15.66.7.11 x64

but I’m still falling within the same issue.

Originally posted by Hassan_Ballan on April 16, 2025

Hello Simona,

Since the problem is intermittent it makes it hard to address. To help isolate the root cause, systematically let’s test starting outside the pipeline.

A) After a reboot follow these steps:
1-validate in “Task Manager” that TestExecute is not running (it is not expected after reboot)
2-using windows shortcut run TestExecute (should run)
3-select a sample test and run it, view results, and exit TestExecute
Repeat these steps until you reproduce the problem. Could you reproduce? if yes, I suggest you contact SmartBear support providing such details.

B) If you could not reproduce, proceed with testing:
1-validate in “Task Manager” that TestExecute is not running
2-using windows console issue TestExecute command line to run a sample test
[start /wait “TestExecute” TestExecute.exe “C:\Work\My Projects\MySuite.pjs” /run /exit]
Repeat these steps until you reproduce the problem. Could you reproduce? if yes, I suggest you contact SmartBear support providing such details.

Note: TestExecute waits until the specified project suite, project, test and so on is executed. However, the command line is ready to receive new commands right after TestExecute has been launched. If you want the command line to wait until the test (project and so on) execution is over, you can use the START command.

C) If you could not reproduce, proceed with testing:
Using windows scheduler perform the same above steps of command line
Repeat these steps until you reproduce the problem. Could you reproduce? if yes, I suggest you contact SmartBear support providing such details.

D) If you could not reproduce, proceed with pipeline testing:
1-validate in “Task Manager” that TestExecute is not running
2-in VSTest run the task (first try without start /wait “TestExecute”)
Repeat these steps until you reproduce the problem. Could you reproduce? if yes, add start /wait “TestExecute” to your configuration to try again.

If still you reproduced the problem we would have narrowed it down. What is the exact error message you get? Screen shot also helps. Intermittent connection issues can stem from various factors, including CPU usage causing timeout, network problems, firewall restrictions, proxy server hiccups, or conflicts with other applications example antivirus.

Originally posted by Marsha_R on April 17, 2025

You’ve probably already done this, but after a successful run, could you check and see if 1) TE is still in the task manager 2) is it still shown as “running”?