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

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu Apr 26 09:39:18 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688004#comment-12688004 ] 

Brian Stansberry commented on AS7-4535:
---------------------------------------

Just an aside -- don't use CLIWrapper etc unless part of the test's purpose is to test the CLI. If the only CLI capability being tested is the ability to parse and execute a low-level op and present the response, that's tested elsewhere so using the CLI as your client just adds overhead. See package org.jboss.as.test.integration.management.api for examples of tests that directly use the native management API.
                
> 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

        


More information about the jboss-jira mailing list