public void EditSkillShareCreditHidden(int rownum) { _test = _extent.CreateTest("Edit Share Skill with Skill Trade as Skill Exchange and change it to Credit"); _test.Log(Status.Info, "Browser Initialisation"); Login Obj1 = new Login(driver, rownum); Obj1.LoginPage(driver); Managelisting Obj3 = new Managelisting(driver, rownum); Obj3.NavigateManageListing(); Obj3.EditManageListing(); ShareSkill Obj2 = new ShareSkill(driver, rownum); _test.Log(Status.Info, "ShareSkill Page is Opened"); Obj2.EditTitle(); Obj2.SelectCategory(); Obj2.SelectSubCategory(); Obj2.EditTag(); Obj2.LocationTypeOnLine(); Obj2.ServicetypeHourly(); Obj2.ShareSkillPageRemaining(); Obj2.EditCreditExchange(); Obj2.ActiveShareSkill(); Obj2.SaveShareSkill(); _test.Log(Status.Info, "ShareSkill is Saved"); Thread.Sleep(3000); Obj3.ValidateEditManageListing(); _test.Log(Status.Pass, "Assert Pass as condition is True and Manage listing is Hidden"); }
public void WhenSellerAddsShareskillDetailsOnTheShareskillPage() { //Populate ShareSkill Excel data in Collection GlobalDefinitions.ExcelLib.PopulateInCollection(Base.excelPath, "ShareSkill"); addSkillObj.Title = GlobalDefinitions.ExcelLib.ReadData(2, "Title"); addSkillObj.Description = GlobalDefinitions.ExcelLib.ReadData(2, "Description"); addSkillObj.Category = GlobalDefinitions.ExcelLib.ReadData(2, "Category"); addSkillObj.SubCategory = GlobalDefinitions.ExcelLib.ReadData(2, "SubCategory"); addSkillObj.Tags = GlobalDefinitions.ExcelLib.ReadData(2, "Tags"); addSkillObj.ServiceType = GlobalDefinitions.ExcelLib.ReadData(2, "ServiceType"); addSkillObj.LocationType = GlobalDefinitions.ExcelLib.ReadData(2, "LocationType"); addSkillObj.StartDate = GlobalDefinitions.ExcelLib.ReadData(2, "StartDate"); addSkillObj.EndDate = GlobalDefinitions.ExcelLib.ReadData(2, "EndDate"); addSkillObj.SelectDay = GlobalDefinitions.ExcelLib.ReadData(2, "SelectDay"); addSkillObj.StartTime = GlobalDefinitions.ExcelLib.ReadData(2, "StartTime"); addSkillObj.EndTime = GlobalDefinitions.ExcelLib.ReadData(2, "EndTime"); addSkillObj.SkillTrade = GlobalDefinitions.ExcelLib.ReadData(2, "SkillTrade"); addSkillObj.SkillExchange = GlobalDefinitions.ExcelLib.ReadData(2, "Skill-Exchange"); addSkillObj.Active = GlobalDefinitions.ExcelLib.ReadData(2, "Active"); ShareSkill shareSkillObj = new ShareSkill(); shareSkillObj.AddShareSkillDetails(addSkillObj); }
public void WhenIAddASkillToShareSkillPage() { string titleRead = "Test Analyst"; ShareSkill skill = new ShareSkill(); skill.ShareSkillsPage(titleRead); }
public void AddSkillShareSkillExchangeActive(int rownum) { _test = _extent.CreateTest("Add Shareskill with Service Enabled"); _test.Log(Status.Info, "Browser Initialisation"); Login Obj1 = new Login(driver, rownum); Obj1.LoginPage(driver); ShareSkill Obj2 = new ShareSkill(driver, rownum); _test.Log(Status.Info, "ShareSkill Page is Opened"); Obj2.ShareSkillPage(); Obj2.SelectCategory(); Obj2.SelectSubCategory(); Obj2.EnterTag(); Obj2.LocationTypeOnsite(); Obj2.ServiceTypeOne_off(); Obj2.ShareSkillPageRemaining(); Obj2.SkillExchange(); Obj2.ActiveShareSkill(); Obj2.SaveShareSkill(); _test.Log(Status.Info, "ShareSkill is Saved"); Thread.Sleep(3000); Managelisting Obj3 = new Managelisting(driver, rownum); Obj3.ManageListingsActive(); _test.Log(Status.Pass, "Assert Pass as condition is True and Manage listing is Active"); }
public void AddSkillShareCreditHidden(int rownum) { _test = _extent.CreateTest("Share Skill with Service Disabled"); _test.Log(Status.Info, "Browser Initialisation"); Login Obj1 = new Login(driver, rownum); Obj1.LoginPage(driver); ShareSkill Obj2 = new ShareSkill(driver, rownum); _test.Log(Status.Info, "ShareSkill Page is Opened"); Obj2.ShareSkillPage(); Obj2.SelectCategory(); Obj2.SelectSubCategory(); Obj2.EnterTag(); Obj2.LocationTypeOnLine(); Obj2.ServicetypeHourly(); Obj2.ShareSkillPageRemaining(); Obj2.SkillExchange(); Obj2.HiddenshareSkill(); Obj2.SaveShareSkill(); _test.Log(Status.Info, "ShareSkill is Saved"); Thread.Sleep(3000); Managelisting Obj3 = new Managelisting(driver, rownum); Obj3.ManageListingHidden(); _test.Log(Status.Pass, "Assert Pass as condition is True and Manage listing is Hidden"); }
public void When_ValidShareSkillData_Expect_AddSuccessful(ShareSkill addedShareSkill) { try { // arrange DataSetUpHelper helper = new DataSetUpHelper(ValidCredentials.Username, ValidCredentials.Password); // act // find an existing skill SkillSharePage shareSkillPage = new SkillSharePage(Driver); shareSkillPage.Open(); ListingManagementPage listingManagementPage = shareSkillPage.EnterShareSkill(addedShareSkill); Driver.WaitForAjax(); addedShareSkill.Id = helper.GetOrAdd(addedShareSkill); _setUpContext.Add(addedShareSkill); Driver.WaitForAjax(); // assert Assert.Multiple(() => { Assert.AreEqual(listingManagementPage.Url, Driver.GetCurrentUrl()); Assert.That(listingManagementPage.SearchShareSkill(addedShareSkill), Is.Not.Null); }); } catch (Exception e) { if (e is AssertionException) { throw; } Assert.Fail($"Error has occurred\nMessage : {e.Message}\nStackTrace : {e.StackTrace}"); } }
public void WhenIAddAllTheDetailsInTheShareSkillPage() { Driver.TurnOnWait(); var shareSkill = new ShareSkill(); shareSkill.AddSkill(); }
public void When_FilterByLocationType_Expect_FilterSuccessful(ShareSkill expectedSkilShare) { try { // arrange DataSetUpHelper helper = new DataSetUpHelper(ValidCredentials.Username, ValidCredentials.Password); // act // find an existing skill expectedSkilShare.Id = helper.GetOrAdd(expectedSkilShare); _setUpContext.Add(expectedSkilShare); Driver.WaitForAjax(); SearchResultPage searchResultPage = new ProfilePage(Driver).SearchBar.SearchSkill("Cypress"); searchResultPage.RefineResultsPane.FilterResultsByLocationType("Online"); Driver.WaitForAjax(); // assert Assert.Multiple(() => { Assert.That(searchResultPage.ResultSection.SearchResults.SearchResultList.IsNullOrEmpty(), Is.False); Assert.True(searchResultPage.ResultSection.SearchResults.SearchResultList.First().GetSkillTitle() == expectedSkilShare.Title); }); } catch (Exception e) { if (e is AssertionException) { throw; } Assert.Fail($"Error has occurred\nMessage : {e.Message}\nStackTrace : {e.StackTrace}"); } }
public SkillSharePage UpdateShareSkill(ShareSkill shareSkill) { IWebElement matchingshareSkill = SearchShareSkill(shareSkill); matchingshareSkill.FindElement(By.XPath("td[last()]/div/button/i[contains(@class,'write')]")).Click(); return(new SkillSharePage(Driver)); }
public void DeleteShareSkill(ShareSkill shareSkill) { IWebElement matchingshareSkill = SearchShareSkill(shareSkill); // this should be the row matchingshareSkill.FindElement(By.XPath("td[last()]/div/button/i[contains(@class,'remove')]")).Click(); // click delete button Driver.Click(By.XPath("//div[@class='actions']/button[.='Yes']")); // click OK }
public void TC_001_01_Click_ShareSkill_Button() { GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ShareSkill"); shareSkill = new ShareSkill(); shareSkill.ClickShareSkillButton(); Assert.AreEqual(MarsResource.ServiceListingUrl, GlobalDefinitions.driver.Url); }
public void NavigateToShareSkill() { Profile profileObj = new Profile(); profileObj.ClickOnShareSkill(); ShareSkill shareSkillObj = new ShareSkill(); Assert.AreEqual(ShareSkill.expectedShareSkillUrl, shareSkillObj.GetShareSkillUrl()); }
public void AddSkill() { //Populate Excel Sheet Helpers.ExcelLib.PopulateInCollection(@"C:\Users\Bhushan\source\repos\CompTask\CompTask\ExcelData\TestData.xlsx.xlsx", "ShareSkillTestData"); //steps to Add a share skill ShareSkill obj2 = new ShareSkill(); obj2.AddShareSkill(CommonDriver.Driver); }
public void addShareSkill() { ExtentReport.test = ExtentReport.extent.StartTest("addShareSkill"); ShareSkill ShareSkill = new ShareSkill(); ShareSkill.EnterShareSkill(); ShareSkill.Validateaddmessage(); }
public void GivenIHaveEnteredManagelistPageAndEditTheSkillIWroteBefore() { // share a new skill ShareSkill shareSkill = new ShareSkill(); shareSkill.EditShareSkill(); //Assert Thread.Sleep(2000); }
public void GivenIHaveGoneToSharkSkillPageAndFilledUpAllTheInformation() { // share a new skill ShareSkill shareSkill = new ShareSkill(); shareSkill.ShareNewSkill(); //Assert Thread.Sleep(2000); }
public void ShareSkillTest() { ShareSkill shareSkill = new ShareSkill(); shareSkill.EnterShareSkill(); bool Result = shareSkill.ValidateShareSkill(Global.GlobalDefinitions.driver); Assert.IsTrue(Result); }
public void WhenIClickOnUpdateIconAndAddNewService() { //click on update Thread.Sleep(2000); driver.FindElement(By.XPath("//*[@id='listing-management-section']/div[2]/div[1]/div[1]/table/tbody/tr[1]/td[8]/div/button[2]/i")).Click(); shareskill = new ShareSkill(driver); Thread.Sleep(2000); shareskill.AdShareSkills(); }
public void EnterShareSkill() { //Create Extent Report test = extent.StartTest("Add Share Skill"); //Add Share Skill ShareSkill shareSkillObj = new ShareSkill(); shareSkillObj.EnterShareSkill(); shareSkillObj.VerifySkill(); }
public void ShareSkill() { //extent = getExtent(); //Adding service Listing details in share skill page ShareSkill shareobj = new ShareSkill(); shareobj.EnterShareSkill(); shareobj.validate(); }
public void ShareSkill() { var SignIn = new SignIn(); SignIn.SigninStep(); Driver.TurnOnWait(); var shareSkill = new ShareSkill(); shareSkill.AddSkill(); shareSkill.ValidateAddSkill(); }
public void WhenIEditMyShareSkillDetails() { // ExtentReport.test = ExtentReport.extent.StartTest("Edit Share Skill"); //ExtentReport.test = ExtentReport.extent.StartTest("Edit Listing"); ManageListings manageListingsobj = new ManageListings(driver); //click edit listing manageListingsobj.EditListings(); ShareSkill shareSkillObj = new ShareSkill(driver); //enter share skill shareSkillObj.EditShareSkill(); }
public void editmanageSkill() { ExtentReport.test = ExtentReport.extent.StartTest("editmanageSkill"); ManageListings ManageListings = new ManageListings(); ManageListings.editManageListings(); ShareSkill ShareSkill = new ShareSkill(); ShareSkill.EditShareSkill(); ManageListings.ValidateEdit(); }
public void AddShareSkill() { //Check if the user is able to access the "Share-Skill" function Profile ProfilePage = new Profile(); ProfilePage.GoToShareSkill(); //Check if the user is able to fill the "Share-Skill" details ShareSkill ShareSkillPage = new ShareSkill(); ShareSkillPage.FillShareSkill(2); //Check if the user is able to see the Skill in the "Manage Listing" page ManageListings ManageListingPage = new ManageListings(); ManageListingPage.CheckListing(2); }
public void EditShareSkillDetails() { test = extent.StartTest("EditShareSkillDetails"); //Navigate to ManageList ManageListings _manageListing = new ManageListings(); _manageListing.GoToManageList(); Thread.Sleep(2000); _manageListing.ClickOnEditBtn(); Thread.Sleep(3000); ShareSkill _shareSkill = new ShareSkill(); _shareSkill.EditShareSkill(3); _manageListing.GoToManageList(); _manageListing.CheckRecordEdited(3); }
public void AddShareSkillDetails() { test = extent.StartTest("AddShareSkillDetails"); ManageListings _manageListing = new ManageListings(); _manageListing.GoToManageList(); _manageListing.DeleteRecordIfExist(2); Thread.Sleep(3000); //Add Share skill details on page ShareSkill _shareSkill = new ShareSkill(); _shareSkill.GoToShareSkill(); _shareSkill.EnterShareSkill(2); //Check Record is add _manageListing.GoToManageList(); _manageListing.CheckRecordAdded(2); }
public IWebElement SearchShareSkill(ShareSkill shareSkill) { IWebElement listingTable = Driver.FindElement(By.XPath("//div/h2[.='Manage Listings']/following-sibling::node()/div/table")); foreach (var rowCandidate in listingTable.FindElements(By.XPath("tbody/tr"))) { // Column headings are as follows: // Category,Title,Description,Service Type,Skill,Trade,Active // get all cells except first and last because we are not verifying image and buttons at the moment var cells = rowCandidate.FindElements(By.XPath("td[position() > 1 and position() < last()]")); if (cells == null || cells.Count == 0 || cells.Count < 6) { // error out, throw some exception later // something's wrong with the ui return(null); } var category = cells[0].Text; var title = cells[1].Text; var description = cells[2].Text; // assuming that title and description are sufficient for now //var serviceType = cells[3].Text; //var skillTrade = cells[4].Text; //var active = cells[5]; if (category == shareSkill.Category && title == shareSkill.Title && description == shareSkill.Description) { return(rowCandidate); } } // click next and loop through again if (PageNext()) { return(SearchShareSkill(shareSkill)); } return(null); }
public void EditShareSkill() { //Check if the user is able to access the "Share-Skill" function Profile ProfilePage = new Profile(); ProfilePage.GoToManageListing(); //Check if the user is able to access the "Share-Skill" function ManageListings ManageListingPage = new ManageListings(); ManageListingPage.EditListing(); //Check if the user is able to fill the Edit "Share-Skill" details ShareSkill ShareSkillPage = new ShareSkill(); ShareSkillPage.EditShareSkill(3); //Check if the changes can be seen in the "Manage Listage ManageListings CheckListPage = new ManageListings(); CheckListPage.CheckListing(3); }
public ShareSkillDeleteSteps(ScenarioContext context, IDriver driver, ShareSkill shareSkill) { _context = context; _driver = driver; _shareSkill = shareSkill; // this is not necessary }
public void AddShareSkill() { ShareSkill s = new ShareSkill(); s.EnterShareSkill(); }