Skip to main content
brian_thomas2
Adobe Employee
Adobe Employee
January 20, 2010
Question

Parameterized Requests

  • January 20, 2010
  • 1 reply
  • 978 views
I would like to be able to build Request objects that are coupled with a parameter. This parameter would then be provided to the constructor of the test class or as a parameter to the test method.

<br/>

Please correct me if I'm missing an alternate solution, but it looks to me that I'll need to extend FlexUnit in order to accomplish this. I am willing to do this work and try to contribute it back to the project. Before I start running amok in the code, has there been any discussion of adding a feature like this before? Is there an ideal implementation method I should use in order to make sure it can be contributed back?

<br/>

Thanks!
Brian Thomas
This topic has been closed for replies.

1 reply

Participating Frequently
January 22, 2010

Brian,

Just as a point of discussion, I was planning to allow people to instantiate their own test cases if they wanted and then pass an instance instead of a class into Requests. You can actually see a bit of this implementation in the code, but it is not fleshed out by any means. Thoughts on this type of solution?

Mike

brian_thomas2
Adobe Employee
Adobe Employee
January 22, 2010

Mike,

This sounds like it would be easily sufficient for my use case. Does this sit anywhere on the current FU4 roadmap? At the moment I've put together a workaround using our homebrew Parameterized implementation.

Thanks,

Brian

Participating Frequently
January 23, 2010

It isn't officially on the map, but let me refresh myself on the implementation and how far along it was. It might be a very easy addition