List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Check If an Process is already running

  • Subject: Re: [QF-Test] Check If an Process is already running
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Wed, 24 Jun 2015 18:22:04 +0200

Hi Lukas,

for an SUT client that connects to QF-Test, the preferred method for
checking for the client is a 'Wait for client to connect' node,
possibly inside a Try/Catch.

In your case, the JBoss server is probably a plain sub-process that
does not connect, so the 'Wait for client' will never succeed. The
easiest way for your "check and probably stop" function is a construct
like the following:

+ Try
  + Stop client <client name of JBoss>
  + Wait for process to terminate <client name of JBoss>
+ Catch NoSuchClientExcption

If JBoss was never started it's go right into the (empty) Catch,
otherwise the 'Stop client' should succeed. 'Wait for process to
terminate' is always a good idea because killing the process happens

Best regards,

Eichner Lukas VIB-AZ311 <Eichner.Lukas@?.de> writes:

> Hi all,
> is there any way to check if a specific process / client has already been started and is running
> atm.?
> In the test I'm building up a JBoss with Maven, which fails, if there is an JBoss running.
> Sometimes the test doesn’t run until the end, so I forget to stop the JBoss. When I restart the
> test, the Maven build fails, because the JBoss is already running.
> I want to make an If-Condition before the Maven-Build to check and probably stop the JBoss
> process.
> Best regards,
> Lukas
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de

Gregor Schmid

E: gregor.schmid@?.de
T: +49 (0)8171 38648-11
F: +49 (0)8171 38648-16

Quality First Software GmbH |
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Karlheinz Kellerer
HRB München 140833