public void BD_ValidateLaunchWebsite(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetlaunchStart()); homePage = new BDHomePage(driver); homePage.Navigate(); test.Log(Status.Info, validStrings.GetnavigationString()); homePage.ValidateLaunchingPageSucessfully(); test.Log(Status.Info, validStrings.GetlaunchStatus()); Capture(validStrings.GetLaunchscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }
public void BD_LoginSuccessfully(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetloginStart()); homePage = new BDHomePage(driver); homePage.Navigate(); test.Log(Status.Info, validStrings.GetnavigationString()); homePage.Login(dataDriven.GetUserName(), dataDriven.GetUserPassword()); test.Log(Status.Info, validStrings.Getlogging()); homePage.ValidateLoginPageNavigation(); test.Log(Status.Info, validStrings.GetloginStatus()); Capture(validStrings.GetLoginscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }
public void BD_ValidateCreationOfNewHealthSystem(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetCreateIDNStart()); facility_1 = new Facility(driver); homePage = new BDHomePage(driver); homePage.LaunchingBDWebsite(dataDriven.GetUserName(), dataDriven.GetUserPassword()); test.Log(Status.Info, validStrings.GetLaunching()); facility_1.NavigateToHealthSystems(); test.Log(Status.Info, validStrings.GetIDNNavigation()); facility_1.CreateNewIDN(dataDriven.GetIDNName(), dataDriven.GetiDNID()); test.Log(Status.Info, validStrings.GetsuccessfulCreationOfIDN()); facility_1.ImpersonateIDN(dataDriven.GetIDNName()); test.Log(Status.Info, validStrings.GetCreationStatus()); Capture(validStrings.GetIDNscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }
public void BD_ValidateCreationOfNewAlignmentProject(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetCreateProjectStart()); homePage = new BDHomePage(driver); facility_1 = new Facility(driver); project_1 = new AlignmentProject(driver); homePage.LaunchingBDWebsite(dataDriven.GetUserName(), dataDriven.GetUserPassword()); test.Log(Status.Info, validStrings.GetLaunching()); facility_1.ImpersonateIDN(dataDriven.GetIDNName()); test.Log(Status.Info, validStrings.GetImpersonate()); project_1.NavigateToAlignmentProject(); test.Log(Status.Info, validStrings.GetAlignmentNavigation()); project_1.CreateNewAlignmentProject(dataDriven.GetAlignmentProjectName(), dataDriven.GetPharmacyFormularyName()); test.Log(Status.Info, validStrings.GetAlignmentcreationStatus()); Capture(validStrings.GetAlignmentscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }
public void BD_ValidateCreationOfNewPharmacyFormualry(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetCreatePharmacyStart()); homePage = new BDHomePage(driver); pharm_1 = new Pharmacy(driver); facility_1 = new Facility(driver); homePage.LaunchingBDWebsite(dataDriven.GetUserName(), dataDriven.GetUserPassword()); test.Log(Status.Info, validStrings.GetLaunching()); facility_1.ImpersonateIDN(dataDriven.GetIDNName()); test.Log(Status.Info, validStrings.GetImpersonate()); pharm_1.NavigateToPharmacyFormualries(); test.Log(Status.Info, validStrings.GetpharmacyNavigation()); pharm_1.CreateNewPharmacyFormualry(dataDriven.GetPharmacyFormularyName(), dataDriven.GetPharmacyFormularyID(), dataDriven.GetPFvendor(), dataDriven.GetFacilityName()); test.Log(Status.Info, validStrings.GetpharmacycreationStatus()); Capture(validStrings.GetPFscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }
public void BD_ValidateCreationOfNewFacility(String browserName) { Setup(browserName); test = extent.CreateTest(validStrings.GetCreateFacilityStart()); facility_1 = new Facility(driver); BDHomePage home = new BDHomePage(driver); home.LaunchingBDWebsite(dataDriven.GetUserName(), dataDriven.GetUserPassword()); test.Log(Status.Info, validStrings.GetLaunching()); facility_1.ImpersonateIDN(dataDriven.GetIDNName()); test.Log(Status.Info, validStrings.GetImpersonate()); facility_1.NavigateToFacilityAndRegion(); test.Log(Status.Info, validStrings.GetfacilityNavigation()); facility_1.CreateNewFacility(dataDriven.GetFacilityName(), dataDriven.GetFacilityID()); test.Log(Status.Info, validStrings.GetfacilitycreationStatus()); Capture(validStrings.GetFacilityscreenshotName()); test.Log(Status.Info, validStrings.GetconfirmScreenshot()); }