public void testTC_19_VerifyStatusOfLineIsDisplayingCorrectWithMettelClient(Dictionary <String, String> TestData) { //This step is to Login to Application Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]); Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]); Dashboard.VerifyPage(driver); //This step is to Select ClientID Dashboard.ClickOnClosePopUp(driver); Dashboard.SetClient(driver, TestData["ClientId"]); //This Step is to Navigate to Inventory page Dashboard.ClickCombinedMenu(driver); Dashboard.ClickInventory(driver); Dashboard.SelectByGeography(driver); //This Step to Notice the status for any inventory Ex: 9177083346 string service = AssetsByGeography.GetServiceNumber(driver); string serviceOriginal = AssetsByGeography.GetServiceNumberOriginal(driver); string status = AssetsByGeography.GetFirstServiceStatus(driver); //This step is to Click on Super Search and Select Locations icon Dashboard.ClickSuperSearchIcon(driver); Dashboard.ClickAnIconInSuperSearch(driver, "Locations"); //This step is to Verify Super Search bar and Icon selected in Super Search Dashboard.VerifySuperSearchBar(driver); Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "locations"); //This step is to Enter text in Super Search and Verify the result Dashboard.EnterTextInSuperSearch(driver, serviceOriginal); //This Step is to Verify Location search results displayed"; Dashboard.VerifyServiceLineShouldDisplay(driver, service); }
public void testTC_22_VerifyUpdatedDescriptionIsDisplayedForLine(Dictionary <String, String> TestData) { //This step is to Login to Application Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]); Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]); Dashboard.VerifyPage(driver); //This step is to Select ClientID Dashboard.ClickOnClosePopUp(driver); Dashboard.SetClient(driver, TestData["ClientId"]); //Click on Services link Dashboard.ClickCombinedMenu(driver); Dashboard.ClickLeftMenuServicesLink(driver); Dashboard.ClickCombinedMenu(driver); Dashboard.ClickByGeographyLink(driver); //Verify Assets by Organisation page should be displayed AssetsByGeography.VerifyByGeographyPage(driver); //Click first line string count = AssetsByGeography.SelectLines(driver, TestData["Number"]); //Get line number List <string> linedetails = AssetsByGeography.GetDetailsOfSelectedLine(driver); //Click on quick edit button AssetsByGeography.ClickOnQuickEditButton(driver); //Verify Quickedit page AssetsByGeography.VerifyQuickeditPage(driver, linedetails); //Change values in Quick edit page AssetsByGeography.UpdateLineDescriptionQuickEdit(driver, TestData["Desc"]); //save the changes AssetsByGeography.ClickSaveQuickEditchanges(driver); AssetsByGeography.VerifyQuickEditsave(driver); //Verify Updated Line Description through Global search results Dashboard.ClickSuperSearchIcon(driver); Dashboard.EnterTextInSuperSearch(driver, linedetails[0]); Dashboard.ClickOpenLocationButton(driver); //Verifying Line Description Dashboard.VerifyDescriptionLine(driver, TestData["Desc"]); }