/// <summary> /// Start execution /// </summary> public static void Run(string pathToDTMSetup, string applicationName, bool ignoreWarnings) { bool isPassed = true; isPassed &= StartDTMSetup.Run(pathToDTMSetup); isPassed &= WizzardNavigation.Next(ignoreWarnings); isPassed &= WizzardNavigation.Next(ignoreWarnings); isPassed &= WizzardSelection.LicenceAccept(); isPassed &= WizzardNavigation.Next(ignoreWarnings); isPassed &= WizzardNavigation.Next(ignoreWarnings); isPassed &= WizzardSelection.CompleteUpgrade(); isPassed &= WizzardNavigation.Install(); isPassed &= WizzardNavigation.Finish(); if (isPassed) { isPassed &= TM_GetProgramData.Run(applicationName); } else { isPassed &= SetupMessages.CancelMissingFileSetup(); isPassed &= SetupMessages.CancelFaultySetup(); isPassed &= WizzardNavigation.Finish(); } if (isPassed) { Report.Success(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Testcase passed."); } else { Report.Failure(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Testcase failed."); } }
/// <summary> /// Start testcase /// </summary> /// <param name="pathToDTMSetup">Path where DTM Setup lies on hard disk</param> /// <param name="applicationName">Exact name of DTM Setup under test</param> /// <param name="devicesToInstall">Path to file of DeviceDTMs to install</param> /// <returns> /// <br>DTM List: If call worked fine</br> /// <br>Null: If an error occured</br> /// </returns> public static List <string> Run(string pathToDTMSetup, string applicationName, List <string> devicesToInstall) { bool isPassed = true; isPassed &= StartDTMSetup.Run(pathToDTMSetup); isPassed &= WizzardNavigation.Next(); isPassed &= WizzardSelection.LicenceAccept(); isPassed &= WizzardNavigation.Next(); isPassed &= WizzardNavigation.Next(); isPassed &= WizzardSelection.CustomInstallation(); isPassed &= WizzardSelection.SelectDevices(devicesToInstall); isPassed &= WizzardNavigation.Next(); isPassed &= WizzardNavigation.Install(); isPassed &= WizzardNavigation.Finish(); if (isPassed) { isPassed &= TM_GetProgramData.Run(applicationName); } else { isPassed &= SetupMessages.CancelMissingFileSetup(); isPassed &= SetupMessages.CancelFaultySetup(); isPassed &= WizzardNavigation.Finish(); } if (isPassed) { Report.Success(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Testcase passed."); return(devicesToInstall); } Report.Failure(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Testcase failed."); return(null); }