My goal is to have a more complex test step based on a set of simpeler test steps. I programmatically add the simple steps as children and want to link their inputs/outputs.
The API refference mentions the following:
https://doc.opentap.io/api/class_open_tap_1_1_input_output_relation.html
InputOutputRelation.Assign(ITestStepParent inputObject, IMemberData inputMember, ITestStepParent outputObject, IMemberData outputMember)
When trying to apply this i cant find the IMemberData of the outputMember.
Example
I created a teststep called MessageCreator with the following output:
[Output]
public string Message { get; set; }
I created a teststep called MessageReceiver with the following Input:
[Display("Message")]
public Input<string> Message { get; set; }
Then i make a teststep where i programatically add those steps as children, this all works fine
var creator= new MessageCreator();
ChildTestSteps.Add(creator);
var receiver = new MessageReceiver();
ChildTestSteps.Add(receiver);
Now i want to assign the creator output to the receiver input but i can’t figure out to get the IMemberData of an output:
InputOutputRelation.Assign(receiver, receiver.Message.Property, creator, ??? );
Apart from the API doc on this i can’t find anything on this topic in the documentation/forum.