Selenium Grid Request Log

13 views
Skip to first unread message

Dylan Reichstadt

unread,
Jan 2, 2019, 8:16:33 PM1/2/19
to Selenium Users
Hi All,

Does anyone know if it's possible to get the Request Logs for Selenium Grid, with log latency included?

I've reviewed Configuring Jetty Request Logs, which looks like I would have to fork Selenium Grid and add the NCSARequestLog code, probably somewhere in Hub.java#L216.

Curious if there was a custom implementation of Request Logs added somewhere in Grid, and perhaps a parameter where I can pass to get these logs enabled and where to dump them.

⇜Krishnan Mahadevan⇝

unread,
Jan 3, 2019, 2:56:29 AM1/3/19
to Selenium Users
Dylan,

Thanks for sharing information on the presence of something like this. I wasn't aware of this.

Now to come back to answering your question, there is no easy way of doing it. The server object is embedded within the Hub and gets initialized only when the Hub actually boots up. So if you would need this, you would need to do the following:

1. Add a dependency to the selenium grid library 
2. create a package called "org.openqa.grid.web"
3. Duplicate Hub.java into your test project.
4. Make your changes.
5. Transform your project into an uber jar.
6. Run it just as how you would run the selenium standalone for Hub/Node modes.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ http://rationaleemotions.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/df89e85c-4dfb-487e-8d63-8aaa92c2c318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages