[jboss-jira] [JBoss JIRA] (WFLY-902) Test framework for CLI-based tests can be very slow

Ondrej Zizka (JIRA) issues at jboss.org
Wed Feb 10 03:25:02 EST 2016


     [ https://issues.jboss.org/browse/WFLY-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Zizka reassigned WFLY-902:
---------------------------------

    Assignee:     (was: Ondrej Zizka)


> Test framework for CLI-based tests can be very slow
> ---------------------------------------------------
>
>                 Key: WFLY-902
>                 URL: https://issues.jboss.org/browse/WFLY-902
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: David Bosschaert
>            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 was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list