How to use webdriver to run java code from remote server

Hi, I want to develop this structure.

server-client
server: has java code(test code)
client: has appium server

  1. client give http request to server
  2. server give test code(.java or .jar) to client
  3. client run this test code

Is this structure impossible?

Before, I have already develop similar structure.
server: have client start appium server(through ssh) and then do test command (through ssh)
client: has own test codes

These two structures differ depending on who has the test code.
I can develop a structure that client has test code, but a structure that server has test code is difficult.

I would appreciate it if you could let me know if there is a solution :slight_smile: !!