PROBLEM: [Test(dataProvider=dp)] public function checkColumnWidthOnGapChangeTest(dpData:Object):void { } >If I add my data provider to the test above it will launch 100 times, but only >two cases from this xml file is for this test.
This is just not how you are supposed to use this feature. It's supposed to run every line of the dataProvider like its doing. 1) Follow the approach of doing your own dependency loader (later in the link you reference) and filter the results down to what you want. You could make the constructor take an argument indicating the filter or something similar. That's the only method that is going to work reliably. Something like: public static var dataRetriever1:ParamDataHelper = new MySuperSpecialParamDataHelperWithFilter( "PurelyFakeExample.xml" , 'a=1'); //Please note this class (MySuperSpecialParamDataHelperWithFilter) doesn't exist, you would need to write it per the docs you reference 2) This _might_ work, I am honestly not sure, you could try to make your public variable a getter/setter instead and, in the setter, filter the data.... again, not sure that will work. I don't remember if I take setters into account in the code. Mike