Hello,
What would be the best way to pass a collection of objects (both native data such as strings, ints, etc and custom objects) from one test to another?
I was considering using GetExtractedValue()/SetExtractedValue(). Since both of these take an 'object' as a parameter, I was wondering if I it would be possible to pass it a collection object (such as Array, List, etc) cast to 'object' if necessary - the called test would then 'uncast' it back to the collection object for use. Two issues with that approach:
a) Still researching how to cast and uncast
b) It is probably not type-safe
Please let me know if there is a better way to accomplish what I need.
Please note that I am on TS 2012.2.1420.0 and developing tests in VS 2010 (C#/.NET) with the Test Studio Addin.
Thanks,
Shashi
What would be the best way to pass a collection of objects (both native data such as strings, ints, etc and custom objects) from one test to another?
I was considering using GetExtractedValue()/SetExtractedValue(). Since both of these take an 'object' as a parameter, I was wondering if I it would be possible to pass it a collection object (such as Array, List, etc) cast to 'object' if necessary - the called test would then 'uncast' it back to the collection object for use. Two issues with that approach:
a) Still researching how to cast and uncast
b) It is probably not type-safe
Please let me know if there is a better way to accomplish what I need.
Please note that I am on TS 2012.2.1420.0 and developing tests in VS 2010 (C#/.NET) with the Test Studio Addin.
Thanks,
Shashi