Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow starting program remotely #32

Closed
bhecquet opened this issue Oct 4, 2018 · 1 comment
Closed

Allow starting program remotely #32

bhecquet opened this issue Oct 4, 2018 · 1 comment

Comments

@bhecquet
Copy link
Owner

bhecquet commented Oct 4, 2018

Expose a way to start a program on grid node
Use cases are business applications, soap ui, ...

NodeTaskServlet will serve this action

On start, grid reads all environment variables and searchs for SELENIUM_TOOL_ prefixed variables.
Grid record the name (without prefix) which is the tool name that will be exposed to clients and the value which is the path to executable

These tools will be added as capabilities to slots
CustomCapabilityMatcher will have to take tools into account when selecting slot

Servlet exposes "startProgram" action with 2 parameters:

  • name: the name of the program to start (the one referenced in environment variables)
  • params: parameters to add to program start
    It also records program PID so that it can be killed
    It returns an ID

Servlet exposes "stopProgram" action with 1 parameter:

  • id: the id of the program to stop
    It uses the recorded PID to stop program

When stopping session, all remaining running programs are stopped

@bhecquet
Copy link
Owner Author

Won't be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant