>Sounds like a timing issue with the tests. eg They need to wait for
>undateComplete event?
In the test case below (which was one of the failing), after the DP has been
reset, it's waiting for the next frame:
<RunCode code="FlexGlobals.topLevelApplication.dataGrid.resetDP()"
waitEvent="enterFrame" waitTarget="stage"/>
And after that, it's waiting for two more frames before comparing the bitmaps...
<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
So maybe I should change to waitEvent="updateComplete" so that it wait until
the udateDisplayList ?
<TestCase testID="requireSelection_test15"
keywords="[GridSelection,property,requireSelection ]"
description="Test selection is on first row/cell,reset
dataprovider,verify first row/cell is still selected">
<setup>
<ResetComponent target="dataGrid"
className="components.DataGrid_comp3" waitEvent="updateComplete" />
<WaitForEvent target="stage" eventName="enterFrame"
numExpectedEvents="2"/></setup>
<body>
<RunCode
code="FlexGlobals.topLevelApplication.dataGrid.selectionMode=GridSelectionMode.MULTIPLE_CELLS"/>
<AssertMethodValue
method="value=FlexGlobals.topLevelApplication.dataGrid.selectionContainsCell(0,0)"
value="true"/>
<RunCode
code="FlexGlobals.topLevelApplication.dataGrid.resetDP()"
waitEvent="enterFrame" waitTarget="stage"/>
<AssertMethodValue
method="value=FlexGlobals.topLevelApplication.dataGrid.selectionContainsCell(0,0)"
value="true"/>
<WaitForEvent target="stage" eventName="enterFrame"
numExpectedEvents="2"/>
<CompareBitmap numColorVariances="20"
maxColorVariance="20" url="../Properties/Baselines/$testID_cell.png"
target="dataGrid"/>
</body>
</TestCase>
Maurice
-----Message d'origine-----
De : Justin Mclean [mailto:[email protected]]
Envoyé : mardi 15 octobre 2013 01:34
À : [email protected]
Objet : Re: Build failed in Jenkins: flex-sdk_mustella #470
HI,
Sounds like a timing issue with the tests. eg They need to wait for
undateComplete event?
Justin