On 06/09/2011 04:01 PM, George Niculae wrote:
On Wed, Jun 8, 2011 at 12:27 PM, David Becker<[email protected]>  wrote:
While running my automated tests for the microsite stuff I'm getting
some rerrors that only appear when a full ant test-ui is executed
(instead of ant test-all -Dtest.name=bla).

The user phonebook pages complain about existing entries even though I
use phonebookReset in SetUp, the call forwardings also don't seem to be
entirely reset by resetCallForwarding either.

Sometimes I get a Click Failed error at random with no apparent cause,
re-running the test will often solve it or at least make it appear at a
different time.

After a while all tests will error out with XmlRpc Cannot Close
URLConnection exceptions.
Yes, I can confirm several UI tests failing on maater-4.2 as well, will look at

George
_______________________________________________
Random UI test failures are there since I've known sipXecs. I've seen "Click failed", "Address in use", Xpath problems, and many more. So far nobody has found a cure, then again no one has really put major effort into it.

Note that running ant test-ui or ant test-all from the web project will not clear/rebuild the DB. I suggest running ant precommit from sipXconfig project, or, if you don't want to wait after the integration and DB tests you can do the following:
in ant-targets.xml you have:

<!-- Default patterns for unittest naming schema -->
<patternset id="test.src" includes="**/${test.name}Test.java" />
<patternset id="test-db.src" includes="**/${test.name}TestDb.java" />
<patternset id="test-integration.src" includes="**/${test.name}TestIntegration.java" />
<patternset id="test-ui.src" includes="**/${test.name}TestUi.java" />
<patternset id="test-performance.src" includes="**/${test.name}TestPerformance.java" />

Go ahead and rename all test patterns except UI tests (like: <patternset id="test-integration.src" includes="**/${test.name}TestIntegration_.java" />, etc). And then run ant precommit. You can also disable GWT compilation (which takes a lot of time) by commenting this line in sipXconfig/gwt/build.xml: <antcall target="gwt.compile.module.userportal" /> (<!--antcall target="gwt.compile.module.userportal" /-->).

Hope that helps.
C
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to