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

Brian Stansberry (JIRA) issues at jboss.org
Wed Feb 10 10:31:00 EST 2016


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

Brian Stansberry moved WFLY-902 to WFCORE-1367:
-----------------------------------------------

        Project: WildFly Core  (was: WildFly)
            Key: WFCORE-1367  (was: WFLY-902)
    Component/s: CLI
                 Test Suite
                     (was: Test Suite)


> Test framework for CLI-based tests can be very slow
> ---------------------------------------------------
>
>                 Key: WFCORE-1367
>                 URL: https://issues.jboss.org/browse/WFCORE-1367
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI, 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