Forum Discussion

Gayatripenub's avatar
Gayatripenub
Occasional Visitor
11 days ago

Testcomplete is running really slow on Azure Virtual Machine

I have been running Testcomplete and testexecute on Virtual Machines for my windows application. Sometime a month ago, my execution time was around 7-8 hours but now the execution has increased drastically up tp 13-14 hours. I have been running Virtual Machine on Windows 11 with 16GB RAM, 4 vCPUs, 8 Data Disk and standard SSD. I have not noticed much lag in Virtual Machine if used otherwise only when I start the testcomplete or testexcute I see slowness with the execution of my windows application. Any leads on this will be appreciated, happy to provide more information.

4 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    .... This lead me to ProcessMon from SysInternals to get a clearer picture of the issue from outside of TC the check to see if TestComplete was eating the memory or at least contributing to the problem...

    https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

    The previous monitoring was using counters from the System not specific to the process. Using ‘ProcessMon’ I was able to see a clearer picture of the issue and confirm Blake’s finding that the app is 32 bit and will struggle at the 2 gig point, I have duplicated this without TestComplete just plugging line items in from the keyboard and the memory use is the same. TestComplete is just faster and doesn’t make Order Entry mistakes like me. 😉


    As always, ... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎 

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    Hi Gayatripenub,

    There are a couple of simple things I do in these cases.  I setup performance counters in my project.  I will also setup the performance counters in Windows.  You need to know what you are looking for so it will take some research into which counters to use.

    Adding Performance Counters
    https://support.smartbear.com/testcomplete/docs/testing-with/advanced/monitoring-performance/adding-counters.html

    Performance Counter Options
    https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/performance-counters.html

    Use images from a bug report...

     

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    If your execution time jumped from ~8 hrs to 13–14 hrs, something in the environment, configuration, or application has likely changed. Here are a few things worth checking:

    1. Application Updates
    • Has the AUT been updated recently? Even small UI or control changes can affect how quickly TestComplete identifies objects.
    • If possible, run tests against an older build to confirm whether the slowdown originates in the app.
    1. Environment / VM Setup
    • Any recent Azure VM changes (size, SKU, region, or storage type)?
    • Windows updates or patches installed around the time the issue began?
    • Any new antivirus, endpoint protection, or background processes?
    • Note: Azure Standard SSDs have IOPS caps — heavy read/write during logging or screen capture can trigger throttling and extend test times.
    1. TestComplete/TestExecute Configuration
    • Check your project’s Log settings — excessive screenshots or detailed event logging can add significant overhead.
    • Review SmartWait and NameMapping behavior. If objects take longer to resolve, small delays multiply across long test suites.
    1. Resource Monitoring
    • During execution, use Task Manager, PerfMon, or Azure Monitor to track CPU, memory, and disk usage.
    • Sustained high utilization often points to throttling or contention at the VM level.
    1. Baseline Comparison
    • Run a small subset of tests on a local workstation or a freshly created VM with identical specs.
    • If those runs complete in normal time, the slowdown is most likely tied to Azure infrastructure or resource configuration.

    If you can share:

    • TestComplete/TestExecute version numbers
    • Azure VM SKU (e.g., D4s_v3)
    • Whether the AUT or OS was updated recently

    For reference, you might also review: 

    🤖 AI-assisted response
    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution