I am currently working on an automation script wherein it needs to start up the Tomcat server and then generate requests to the web application which gets loaded, and log the responses.
Until the point of start up all goes fine, but I am having some difficulty figuring out when the Tomcat server is actually up and ready to receive requests, through the batch (win32) file I have written. Is there some mechanism by which one can detect the ON state of a Tomcat server through a batch file?
Any all assistance will be much appreciated. Thanks!
posted 8 years ago
Hi, Try to check the port what tomcat uses is able to listen,normally 8080. If yes then the Tomcat is ready to accept request.