using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Microsoft.WDTF; class SimpleIoSample { static void Main(string[] args) { String DeviceQuery = "IsDevice"; // // Process args // if (args.Length < 1) { Console.WriteLine(" No Params\n" ); } else { String Param = args[0].ToString().ToUpper(new CultureInfo("en-US", false)); switch (Param) { case "/DQ:": DeviceQuery = args[1].ToString(); break; } } // // Create WDTF Object // IWDTF2 WDTF = new WDTF2Class(); // // Query for devices. // IWDTFTargets2 Devices = WDTF.DeviceDepot.Query(DeviceQuery); // // Get Simple I/O tests for all devices that have them. // IWDTFSimpleIOStressActions2 SimpleIoStressCollection = (IWDTFSimpleIOStressActions2)Devices.GetInterfacesIfExist("SimpleIOStressEx"); // // Start test case // WDTF.Log.StartTestCase("Start Simple I/O"); // // Start all I/O tests // if (SimpleIoStressCollection.Count > 0) { SimpleIoStressCollection.Start(); SimpleIoStressCollection.Stop(); } // // End test case. // WDTF.Log.EndTestCase(); } }