stop/start a server in WTP programmatically [message #1281081] |
Mon, 31 March 2014 06:24  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.02570 seconds