I'm starting "playing" with FlexUnit and I'm very excited with its features and power.
My tests will run in a remote device, and it will use only plain ActionScript applications (no Flex UI stuff). For that, I'm thinking on using the TraceListener to capture the test output. My preliminary tests have worked fine, however I'm confused about user's custom metadata.
I was thinking to retrieve a testId metadata so I can post-process the results adding them to my TestLink database. My problem is that I couldn't find a way to trace those custom metadata. Actually I couldn't make the "description" metadata being output to the trace.
Could someone here give me an idea how to do it?
You would need to extend TraceListener or make your own listener to do this.
As a clue though, methods of the IRunListener interface (which TraceListener implements) almost all receive an IDescription of each test. The IDescription has a method named getAllMetaData() which will return all metadata on a given test.
Thanks, that's exactly what I needed. I checked the TraceListener implementation and it is very easy to extend it, indeed.
I was looking for that method getAllMetaData(), but I didn't know its name or where to look for.