Forum Discussion

GiantDad's avatar
GiantDad
New Contributor
9 years ago

Can Win32API for TestComplete not access windows services with calls like OpenService?

I am now trying to use Win32API calls that are inbuilt to TestComplete to manage the services on one of the  test machines of our test environment but it doesn't appear that any of the function calls like OpenService or OpenSCManager for the Win32API are supported in TestComplete. How with a Python project am I supposed to be able to start and stop services for a distributed test environment?

  • TestComplete isnt meant to give full WINAPI coverage - in fact thats pretty much impossible since the WINAPI is humongous and consists of several (!) large frameworks, each of which has several thousand functions, methods and/or properties

     

    If you want to stop and start services from within usermode you can use sc.exe - which is of course shipped with every version of windows.

  • TestComplete isnt meant to give full WINAPI coverage - in fact thats pretty much impossible since the WINAPI is humongous and consists of several (!) large frameworks, each of which has several thousand functions, methods and/or properties

     

    If you want to stop and start services from within usermode you can use sc.exe - which is of course shipped with every version of windows.