Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » stop/start a server in WTP programmatically(stop/start a server in WTP programmatically)
stop/start a server in WTP programmatically [message #1281081] Mon, 31 March 2014 06:24 Go to next message
Gunther Valkom is currently offline Gunther Valkom
Messages: 2
Registered: June 2012
Junior Member
Hi,

In my project (kepler), I have defined several TC servers in WTP.
All works very well.

For some test conditions I need to restart a TC server, un/deploy instances, etc ...
Now I do this manually.

My question:
Can you stop/start a server in WTP programmatically?
If yes, an exapmle or link to an example would be appreciated.
The idea is to add in junit 'start server' in @BeforeClass and 'stop server' in @AfterClass



Re: stop/start a server in WTP programmatically [message #1281184 is a reply to message #1281081] Mon, 31 March 2014 09:39 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1295
Registered: July 2009
Senior Member
On 3/31/2014 6:24 AM, Gunther Valkom wrote:
> Hi,
>
> In my project (kepler), I have defined several TC servers in WTP.
> All works very well.
>
> For some test conditions I need to restart a TC server, un/deploy
> instances, etc ...
> Now I do this manually.
>
> My question:
> Can you stop/start a server in WTP programmatically?
> If yes, an exapmle or link to an example would be appreciated.
> The idea is to add in junit 'start server' in @BeforeClass and 'stop
> server' in @AfterClass
>

The ServerTools tests include starting and stopping a server. The main
repository is found here[1]. The
org.eclipse.wst.server.core.tests.ext.AbstractServerTestCase includes
tests that run and stop the server.

Cheers,
Larry

[1] http://git.eclipse.org/c/servertools/webtools.servertools.tests.git/
Previous Topic:How to install a WSDL model in Luna?
Next Topic:After Kepler Upgrade: javax.servlet.jsp.tagext.SimpleTagSupport not found
Goto Forum:
  


Current Time: Wed Jul 23 08:12:05 EDT 2014

Powered by FUDForum. Page generated in 0.01957 seconds