void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Installation_UserCodeCollection.Uninstall(txtUninstallBuildname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(1)); Delay.Duration(10000, false); Installation_UserCodeCollection.DeleteFiles(txtDeleteFileBuildname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(3)); Delay.Duration(5000, false); Installation_UserCodeCollection.Uninstall(txtUninstallBuildname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(5)); Delay.Duration(5000, false); Installation_UserCodeCollection.Uninstall(txtUninstallBuildname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(7)); Delay.Duration(3000, false); Installation_UserCodeCollection.Deleting_Market_Pref_file(txtBuildname); Delay.Milliseconds(0); Installation_UserCodeCollection.Uninstall(txtUninstallBuildname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(10)); Delay.Duration(3000, false); Installation_UserCodeCollection.DeleteFiles(txtUninstallBuildname); Delay.Milliseconds(0); Installation_UserCodeCollection.Deleting_Market_Pref_file(txtBuildname); Delay.Milliseconds(0); Installation_UserCodeCollection.Uninstall(txtUninstallBuildname); Delay.Milliseconds(0); Installation_UserCodeCollection.kill_All_Open_ExcelSheets(); Delay.Milliseconds(0); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(0)); Delay.Duration(10000, false); Installation_UserCodeCollection.Install_FSW(txtInstallation_brandname); Delay.Milliseconds(0); Installation_UserCodeCollection.If_Application_Is_Not_unInstall(txtInstallation_brandname); Delay.Milliseconds(0); Installation_UserCodeCollection.Install_FSW(txtInstallation_brandname); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonOK' at Center.", repo.SmartFit15InstallShieldWizard.ButtonOKInfo, new RecordItemIndex(4)); repo.SmartFit15InstallShieldWizard.ButtonOK.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(5)); Delay.Duration(3000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(6)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(7)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(8)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(9)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(10)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(11)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.IAcceptTheTermsInTheLicenseAgreem' at Center.", repo.SmartFit15InstallShieldWizard.IAcceptTheTermsInTheLicenseAgreemInfo, new RecordItemIndex(12)); repo.SmartFit15InstallShieldWizard.IAcceptTheTermsInTheLicenseAgreem.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(13)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(14)); Delay.Duration(3000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.CheckBoxStandalone' at Center.", repo.SmartFit15InstallShieldWizard.CheckBoxStandaloneInfo, new RecordItemIndex(15)); repo.SmartFit15InstallShieldWizard.CheckBoxStandalone.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ComboBox17451' at Center.", repo.SmartFit15InstallShieldWizard.ComboBox17451Info, new RecordItemIndex(16)); repo.SmartFit15InstallShieldWizard.ComboBox17451.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by 600 units.", new RecordItemIndex(17)); Mouse.ScrollWheel(600); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'List1000.Australia' at Center.", repo.List1000.AustraliaInfo, new RecordItemIndex(18)); repo.List1000.Australia.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(19)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(20)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(21)); Delay.Duration(3000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonNext' at Center.", repo.SmartFit15InstallShieldWizard.ButtonNextInfo, new RecordItemIndex(22)); repo.SmartFit15InstallShieldWizard.ButtonNext.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(23)); Delay.Duration(3000, false); Installation_UserCodeCollection.ExtraNext_Button(); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonInstall' at Center.", repo.SmartFit15InstallShieldWizard.ButtonInstallInfo, new RecordItemIndex(25)); repo.SmartFit15InstallShieldWizard.ButtonInstall.Click(); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'Visible' to equal the specified value 'True'. Associated repository item: 'SmartFit15InstallShieldWizard.ButtonFinish'", repo.SmartFit15InstallShieldWizard.ButtonFinishInfo, new RecordItemIndex(26)); repo.SmartFit15InstallShieldWizard.ButtonFinishInfo.WaitForAttributeEqual(5000, "Visible", "True"); Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'SmartFit15InstallShieldWizard.ButtonFinish'.", repo.SmartFit15InstallShieldWizard.ButtonFinishInfo, new RecordItemIndex(27)); Validate.Exists(repo.SmartFit15InstallShieldWizard.ButtonFinishInfo); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SmartFit15InstallShieldWizard.ButtonFinish' at Center.", repo.SmartFit15InstallShieldWizard.ButtonFinishInfo, new RecordItemIndex(28)); repo.SmartFit15InstallShieldWizard.ButtonFinish.Click(); Delay.Milliseconds(200); }