Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 10:24 Go to next message
Gunther Valkom is currently offline Gunther ValkomFriend
Messages: 3
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 13:39 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
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: Thu Apr 25 14:11:36 GMT 2024

Powered by FUDForum. Page generated in 0.03459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top