• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call a target after start tomcat

 
syruss kumar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have written a build file. I have a scenario that i have to start tomcat ,selenium server and once they are started i have to execute the testcase.I have written the script but the problem is if i started the server from ant using



The target StartSeleniumServeris not executing .


please suggest me to resolve this
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you see this sentence in the documentation on the parallel task:

Ant docs wrote:While the tasks within the parallel task are being run, the main thread will be blocked waiting for all the child threads to complete.


This means that <parallel> will not exit until everything within it exits. That means in your case that the antcall for selenium will not start until Tomcat exists. Try placing the antcall for selenium within parallel.
 
syruss kumar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi peter,

Thanks a lot i have solved the problem. its working fine.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic