[AHK_Java_6.25]

Stop the Quick Starter service after the tests.
While running normally, this service emits debug and breaks rosautotest diagnostics.

svn path=/trunk/ahk_tests/; revision=2318
This commit is contained in:
Sylvain Petreolle 2016-12-04 12:39:31 +00:00
parent 7efacf441a
commit 43c4433e38
2 changed files with 36 additions and 0 deletions

31
Java/6.25/stop_jqs.ahk Normal file
View File

@ -0,0 +1,31 @@
/*
* Designed for Java 6.25
* Copyright (C) 2016 Sylvain Petreolle
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
TestName = 3.stop_jqs
Process, Exist, jqs.exe
if ErrorLevel
{
TestsTotal++
Run sc.exe stop JavaQuickStarterService
Process, WaitClose, jqs.exe, 30.0
If ErrorLevel
TestsFailed("Unable to stop JavaQuickStarterService")
Else
TestsOK("Successfully stopped JavaQuickStarterService")
}

View File

@ -25,6 +25,7 @@ params =
1.install
2.run_java_gui_app
3.stop_jqs
)
@ -44,6 +45,10 @@ if CheckParam()
{
#include run_java_gui_app.ahk
}
else if 1 = 3.stop_jqs
{
#include stop_jqs.ahk
}
}
}
}