I'm attempting to run a TestComplete automated test project on a Microsoft Azure Hosted agent using the windows-latest image. The test never finishes and eventually the 60 minute job timeout kicks in.
I have reduced my test timeout to 5 minutes and uploaded the Test Visualiser screenshots to a pipeline artifact and I can see that my tests are failing because Chrome is showing a first-time "Turn on an ad privacy feature" dialog box over the top of my application.
Is there a command line I can call to disable this ahead of running my tests? Or do I need to code in specific checks in my test-suite to manually clear this dialog?
Check first if a
--no-first-runflag to disable the first-time run experience in Chrome would work better in your case:Add this flag to the
TestCompletesettings, where you configure the browser for automated tests.Another approach is to set up a Chrome user profile that has already dismissed this dialog. You can then launch Chrome with that user profile using the
--user-data-dirflag.You would upload this Chrome profile to the Azure Pipeline's workspace, and reference it when running your tests.
While that is a valid approach, it may introduce unnecessary complexity and maintenance overhead to your test suites. Still, it is a good fallback option if the dialog cannot be disabled through other means.
In your Azure Pipeline YAML, you may include a step that configures Chrome appropriately before your tests run:
Or if using a pre-configured profile: