Hi Guys,

I have started to working on our TLF unit tests - loading configuration data
from existing xml for every test method (path in repository:
test\testCases\).
Almost every test unit class in TLF has his own xml file with tests method
configuration. For example:

ContainerAttributeTest.as has:

https://paste.apache.org/8O4X

As you can see test method "checkColumnWidthOnGapChangeTest" will launch
with different set of parameters. Currently most of the tests are lanuching
with default values.

In my ContainerAttributeTest I'm loading xml [1] using two lines of code:

https://paste.apache.org/d4gR

Once data has been loaded in my "dp" Array I will have for example 100
"TestCase".

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.

Does anyone have an idea how can I say to my test method - "Hey launch only
couple of times and pickup only data suits to you from the data provider" ?
:)

[1] http://bit.ly/1EEEzHp

Piotr







-----
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FLEXUNIT-TLF-Problem-with-applying-appropriate-data-for-tests-tp45201.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to