public TcTestOptions(Type getTestClass, TestContext testContext, TcTestSettings settings, Func <IDoSequence, IDoSequence> doSequenceConfiguration = null) { mGetTestClass = getTestClass; mDoSequenceConfiguration = doSequenceConfiguration ?? (e => e); mTestContext = testContext; mSettings = settings; }
public void ImportPart(TcTestSettings testSettings, TiParts parts, string filePath) { parts.Toolbar.Import(filePath); parts.TryWaitForDetailOverlayAppear(); parts.WaitForDetailOverlayDisappear(); parts.SingleDetail.Name.Value = testSettings.NamePrefix + parts.SingleDetail.Name.Value; }
public void Init() { TestSettings = new TcTestSettings(TestContext); TestSettings.Fill(TcPageObjectSettings.Instance); Log = new TcLogging(Driver, TestContext, TestSettings); ExecuteUITestPreparation(DoInitialization, "Test Initialization"); }
/// <summary> /// Delete all machines which were created with the function <see cref="CreateAndSaveBendMachine(TcTestSettings, TiMachines, string, string)"/> /// </summary> /// <param name="testSettings">test settings</param> /// <param name="machines">machine page</param> public void DeleteTestMachines(TcTestSettings testSettings, TiMachines machines) { machines.Goto(); while (machines.ResultColumn.SelectItems(testSettings.NamePrefix) > 0) { machines.Toolbar.Delete(); } machines.ResultColumn.ClearSearch(); }
/// <summary> /// Delete all test nesting templates /// </summary> /// <param name="testSettings">test settings</param> /// <param name="nestingTemplate">nesting template page</param> public void DeleteTestNestingTemplates(TcTestSettings testSettings, TiNestingTemplates nestingTemplate) { nestingTemplate.Goto(); nestingTemplate.ResultColumn.SelectItems(testSettings.NamePrefix); if (nestingTemplate.ResultColumn.Count > 0) { nestingTemplate.Toolbar.Delete(); } nestingTemplate.ResultColumn.ClearSearch(); }
public void DeleteTestParts(TcTestSettings testSettings, TiParts parts) { parts.Goto(); parts.ResultColumn.SelectItems(testSettings.NamePrefix); if (parts.ResultColumn.Count > 0) { parts.Toolbar.Delete(); } parts.ResultColumn.ClearSearch(); }
/// <summary> /// Delete all test cut jobs /// </summary> /// <param name="testSettings">test settings</param> /// <param name="cutJobs">cut jobs page</param> public void DeleteTestCutJobs(TcTestSettings testSettings, TiCutJobs cutJobs) { cutJobs.Goto(); cutJobs.ResultColumn.SelectItems(testSettings.NamePrefix); if (cutJobs.ResultColumn.Count > 0) { cutJobs.Toolbar.Delete(); } cutJobs.ResultColumn.ClearSearch(); }
/// <summary> /// Delete all test materials /// </summary> /// <param name="testSettings">test settings</param> /// <param name="customers">customers page</param> public void DeleteTestCustomers(TcTestSettings testSettings, TiCustomers customers) { customers.Goto(); if (customers.DeleteCustomersWithNameContaining(testSettings.NamePrefix) > 0) { customers.Apply(); } customers.Cancel(); }
/// <summary> /// Delete all test materials /// </summary> /// <param name="testSettings">test settings</param> /// <param name="materials">materials page</param> public void DeleteTestMaterials(TcTestSettings testSettings, TiMaterials materials, TiMainTabControl mainTab) { materials.Goto(); materials.ResultColumn.SelectItems(testSettings.NamePrefix); if (materials.ResultColumn.Count > 0) { materials.Toolbar.Delete(); mainTab.WaitForTabOverlayDisappear(TimeSpan.FromMinutes(1)); } materials.ResultColumn.ClearSearch(); }
/// <summary> /// Create and save a bend machine /// </summary> /// <param name="testSettings">test settings</param> /// <param name="machines">machine page</param> /// <param name="machineType">name of the machine type</param> /// <param name="machineName">machine name; defaults to the machine type name</param> public void CreateAndSaveBendMachine(TcTestSettings testSettings, TiMachines machines, string machineType, string machineName = null) { if (machineName == null) { machineName = machineType.Replace("/", "_"); //Replace not allowed characters } machineName = testSettings.NamePrefix + machineName; machines.NewBendMachine(machineType, machineName); machines.Toolbar.Save(); machines.TryWaitForDetailOverlayAppear(); machines.WaitForDetailOverlayDisappear(); }
/// <summary>Initializes a new instance of the <see cref="TcLogging"/> class.</summary> /// <param name="driver">The driver.</param> /// <param name="testContext">The test context.</param> /// <param name="testSettings">The test settings.</param> public TcLogging(IDriver driver, TestContext testContext, TcTestSettings testSettings) { mDriver = driver; mTestContext = testContext; mTestSettings = testSettings; }