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

Resolve node hostname/IP #8

Open
Shnitzelil opened this issue Jul 24, 2016 · 1 comment
Open

Resolve node hostname/IP #8

Shnitzelil opened this issue Jul 24, 2016 · 1 comment

Comments

@Shnitzelil
Copy link

Shnitzelil commented Jul 24, 2016

On previous build (1.0) we used this API /api/selenograph/map/HubBrowserState (thanks to @smecsia ) to get the hub hostname and then we used code very like the one in this link to extract the node hostname/ip

After moving to 1.1 we saw that the API above moved out...

Any alternative?

@smecsia
Copy link
Member

smecsia commented Jul 25, 2016

@Shnitzelil
Unfortunately, the only alternative for now is to make a query directly to db collection named sessions. It contains all the session info, including the selected route (hub):

selenograph:PRIMARY> db.sessions.find({_id: "ac84a55cf536a89dc8ed89b1f559da9fa3ba3311-ef05-2519-d037-311e54f9193c"})
{  
   "_id":"ac84a55cf536a89dc8ed89b1f559da9fa3ba3311-ef05-2519-d037-311e54f9193c",
   "object":[  
      "ru.qatools.selenograph.gridrouter.StartSessionEvent",
      {  
         "timestamp":NumberLong("1469449038415"),
         "browser":"android-999",
         "version":"19.0",
         "user":"serp",
         "route":"http://android-x86-999.vm.com:4444",
         "sessionId":"ac84a55cf536a89dc8ed89b1f559da9fa3ba3311-ef05-2519-d037-311e54f9193c"
      }
   ]
}

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

2 participants