Any suggestions on how to structure instrument drivers that are used in tests?
Should I create instances of the driver in the setup portion and then pass them into the tests as parameters?
for example:
setup:
Create TemperatureSensorObject step // Locals.TemperatureSensor
main:
Test1 step (send Locals.TemperatureSensor to the .net test module)
.net module call:
public result runTest(TemperatureSensorObject tempSensor, other parameters....)
{
double temp = tempSensor.getReading();
.
. // do other parts of the test
.
return result;
}
what do most developers do?
thanks,
Bryan