qspin / qtaste

[NEW RELEASE VERSION 3.0.0] The QTaste is an open-source functional and non-functional test environment offering services to developers and testers. It has been implemented following a data driven testing philosophy.
http://www.qtaste.org
GNU Lesser General Public License v3.0
6 stars 11 forks source link

QTaste error popup window opened by qtaste_campaign_start.sh #198

Closed pguermo closed 8 years ago

pguermo commented 8 years ago

Using QTaste 2.3.0, I'm launching the command ../install/bin/qtaste_campaign_start.sh TestCampaigns/QTASTE_V_and_V.xml. Sometimes, the following popup windows is then displayed on the screen: "Couldn't stop test thread! QTaste will now exit because system state is unstable".

The script qtaste_campaign_start.sh is not exiting until we click on the OK button. A popup is not expected when the test campaign is launched in command line.

Here is the latest lines of the qtaste.log file 2016-01-13 17:03:20,687 INFO com.qspin.qtaste.testsuite.TestScript - TestScript.java:120 - Executing test script: QTASTE_REPORT_03 (row 4) 2016-01-13 17:03:20,687 INFO com.qspin.qtaste.testsuite.TestScript - TestScript.java:137 - Using test timeout of 5 seconds 2016-01-13 17:03:20,749 INFO com.qspin.qtaste.testsuite.impl.JythonTestScript - ?:? - Begin of step 1 (Step1) 2016-01-13 17:03:20,751 INFO com.qspin.qtaste.testsuite.impl.JythonTestScript - ?:? - End of step 1 (Step1) - status: SUCCESS - elapsed time: 0.001 seconds 2016-01-13 17:03:20,753 INFO com.qspin.qtaste.testsuite.impl.JythonTestScript - ?:? - Begin of step 2 (Step4) 2016-01-13 17:03:25,701 INFO com.qspin.qtaste.testsuite.TestScript - TestScript.java:318 - Task thread timed out! 2016-01-13 17:03:25,702 INFO com.qspin.qtaste.testsuite.TestScript - TestScript.java:330 - Aborting test thread! 2016-01-13 17:03:55,703 FATAL com.qspin.qtaste.testsuite.TestScript - TestScript.java:345 - Couldn't stop test thread 2016-01-13 17:03:56,010 INFO com.qspin.qtaste.testsuite.impl.JythonTestScript - ?:? - End of step 2 (Step4) - status: FAIL - elapsed time: 35.255 seconds

dergo commented 8 years ago

It can indeed happen that the test thread cannot be stopped (see https://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html), but the error pop-up shouldn't be displayed if GUI is not started, which has been fixed.