David Bosschaert created AS7-4535:
-------------------------------------
Summary: Test framework for CLI-based tests can be very slow
Key: AS7-4535
URL:
https://issues.jboss.org/browse/AS7-4535
Project: Application Server 7
Issue Type: Bug
Components: Test Suite
Affects Versions: 7.1.2.Final-redhat1
Reporter: David Bosschaert
Assignee: Ondrej Zizka
Priority: Minor
The org.jboss.as.test.integration.management.base.AbstractCliTestBase provides a suitable
API for testing CLI-based operations. However, running tests with a relatively large
number of CLI operations can take a *long* time, seemingly much longer than necessary.
This is probably related to the fact that CLIWrapper.readAllAsOpResult() method always
seems to wait until the lineTimeout has expired.
Typically the WAIT_LINETIMEOUT value is used for this argument. Shortening the timeout is
not an option as I have seen cases where a test would fail when run on a slow machine, but
this only happens occasionally.
It would be *much* better if a timeout was not needed for this and the test would wait
until a certain operation was finished.
This can be observed in org.jboss.as.test.integration.management.cli.JmsTestCase and I
also experienced it when writing the
org.jboss.as.test.integration.osgi.management.OSGiManagementTestCase.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira