This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I am facing a typical behabiour when trying to run
I have written the above code in a jsp file. Running the jsp file it is not executing the batch file.
But if I put the below code after above code in jsp the batch is executed.
Also I have checked that the batch is executing while run from command promt.
Also can somebody confirm me whether the code written after Runtime.exec() will be executed after the exec finished its work or not?
Thanks in Advance,
posted 6 years ago
So you've learned that you need to handle the I/O streams when using Runtime.exec ... for further information, read this article.
As to the second part of the question, that's easy to test, no?