[BeforeFeature] //MUST be static public static void BeforeFeature() { //Added by Kavitha on 07/06/2015 to fix the SXP single channel failure for AC instrument //Nothing here yet AwgSystemGroup awgSystemGroup = new AwgSystemGroup(); AwgStatusGroup awgStatusGroup = new AwgStatusGroup(); AwgControlGroup awgControlGroup = new AwgControlGroup(); //create a local instance of AWG to collect the test setup (model, options,channels) information and save that into accessors IAWG awg = GetAWG("1"); // Get the AWG ID string, model number and S/N awgSystemGroup.AwgIdentifyYourself(awg); // Find the number of channels for this awg awgControlGroup.FindTheNumberOfChannelsAvailable(awg); // Get the list of options for this AWG awgStatusGroup.GetOptions(awg); }
[BeforeTestRun] //MUST be static public static void BeforeTestRun() { AwgSystemGroup awgSystemGroup = new AwgSystemGroup(); AwgStatusGroup awgStatusGroup = new AwgStatusGroup(); AwgControlGroup awgControlGroup = new AwgControlGroup(); //create a local instance of AWG to collect the test setup (model, options,channels) information and save that into accessors IAWG awg = GetAWG("1"); // Get the AWG ID string, model number and S/N awgSystemGroup.AwgIdentifyYourself(awg); // Find the number of channels for this awg awgControlGroup.FindTheNumberOfChannelsAvailable(awg); // Get the list of options for this AWG awgStatusGroup.GetOptions(awg); //AwgSetupSteps the UI context accessors to the top level AwgContextFunctions.SetContextToTopLevel(); }