Can we use Gradle for Testing application on system image (I mean after building an android image, can we automate the test using Gradle)

Can we use Gradle for Testing application on system image (I mean after building an android image, can we automate the test using Gradle).

I want to know if gradle can be used for automating test cases after image is build ?

Since gradle has a UI and understands programming language.

Does gradle has any library or plugin which can be used for automation testing ?

Can we use emulator in Android Studio for automating our complete image testing ?

Please help me in this.

Is Gradle useful only for developers, can Verification or Validation team can use it for verifying images or automating tests ?

Gradle is a general automation/execution tool, with some out of the box support for building software.

You could definitely use it for what you want to do but you are going to have to develop a lot of the code to plug in to Gradle yourself.