When executing Pipelines in Azure DevOps the error "Class not registered" occurs

  • KM03569906
  • 10-Dec-2019
  • 10-Dec-2019

Summary

Using the UFT Azure DevOps Server extension then executing pipelines in Azure DevOps the error "Class not registered" occurs

Error

2019-12-09T17:50:14.4821400Z Starting test set execution
2019-12-09T17:50:14.4821643Z Test set name: TestForCreateContract, Test set id: 8092
2019-12-09T17:50:14.4822787Z Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
2019-12-09T17:50:14.4825667Z Scheduler is null
2019-12-09T17:50:14.4826195Z Could not create scheduler, please verify ALM client installation on run machine by downloading and in installing the add-in form: https://<alm_host>:<port>/qcbin/TDConnectivity_index.html

Cause

The service account for the "Azure Pipelines Agent" is a non-admin account.

Fix

The UFT Azure DevOps Server extension creates a service on the host machine named "Azure Pipelines Agent".

The service account for the "Azure Pipelines Agent" service will be set to "NETWORK SERVICE" which is a non-admin account.

Add the "NETWORK SERVICE" user to the local "administrators" group on the host machine then restart the “Azure Pipelines Agent” service.

Alternatively use the Local service or an AD user who has admin credentials.

The key is to specify a service account with full admin credentials