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

A way to read custom properties set by the node itself #4

Open
Proryanator opened this issue Apr 13, 2021 · 0 comments
Open

A way to read custom properties set by the node itself #4

Proryanator opened this issue Apr 13, 2021 · 0 comments

Comments

@Proryanator
Copy link

Proryanator commented Apr 13, 2021

I'm using v1.2.1 right now, just a heads up!

I'm aware that you can set custom properties from the node, as seem here from selenium-server -role node -help:

...
-custom
      <String> : comma separated key=value pairs for custom grid extensions. 
      NOT RECOMMENDED -- may be deprecated in a future revision. Example: 
      -custom myParamA=Value1,myParamB=Value2
...

These would showup in a node GET request if you send one to it. Look about mid-way, you'll see a json bit with "custom": {}, which is blank but, if it were set, I don't believe that Talk2Grid supports reading these values.

{
  "id": "http:\u002f\u002f172.18.2.15:50396",
  "msg": "proxy found !",
  "request": {
    "class": "org.openqa.grid.common.RegistrationRequest",
    "configuration": {
      "browserTimeout": 360,
      "capabilities": [
        {
          "browserName": "AutomationLarge-android-27-2",
          "maxInstances": 1,
          "platform": "ANDROID",
          "platformName": "ANDROID",
          "seleniumProtocol": "WebDriver",
          "server:CONFIG_UUID": "58412cbf-8114-41a9-957c-f917ce6066d7"
        }
      ],
      "custom": {
      },
      "debug": false,
      "downPollingLimit": 2,
      "enablePlatformVerification": true,
      "host": "172.18.2.15",
      "hub": "http:\u002f\u002forg.openqa.grid.internal.utils.configuration.GridNodeConfiguration$HostPort@4356719b:4444",
      "hubHost": "172.18.2.15",
      "hubPort": 4444,
      "maxSession": 1,
      "nodePolling": 5000,
      "nodeStatusCheckTimeout": 5000,
      "port": 50396,
      "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
      "register": true,
      "registerCycle": 5000,
      "role": "node",
      "servlets": [
      ],
      "timeout": 360,
      "unregisterIfStillDownAfter": 60000,
      "withoutServlets": [
      ]
    },
    "description": null,
    "name": null
  },
  "success": true
}

I looked in the classes HubConfiguration and NodeConfiguration to see if it has some property like 'getCustom' but I did not see it.

Is this something that could be easily added in? Or if this feature exists, I wonder where it is? :)

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

No branches or pull requests

1 participant