public static void HappyPathAsSeller() { //LogIn SignIn.OpenForm(); SignIn.FillCredentials(2); //Create a new skill to trade ProfilePages.GoToShareSkill(); ShareSkillPage.FillShareSkill(2); Thread.Sleep(3000); //LogsOut to allow the second user to request the Skill ProfilePages.LogOut(); ManageRequestPage.GenerateNewRequest(5); //LogIn with the main account SignIn.OpenForm(); SignIn.FillCredentials(2); //Navigate to Manage Received Request and accepts the Trade ManageRequestPage.NavigateToReceivedRequest(); ManageRequestPage.AcceptRequest(); //The User checks the new request ManageRequestPage.CheckNewRequestStatus("Accepted"); }
public void AddShareSkill() { ShareSkillPage sp = new ShareSkillPage(); sp.bbtnShareSkill(); sp.enterShareskill(); sp.validationShareSkill(); }
public void GivenTheUserCreatesANewSkillToTrade() { //LogIn SignIn.OpenForm(); SignIn.FillCredentials(2); //Create a new skill to trade ProfilePages.GoToShareSkill(); ShareSkillPage.FillShareSkill(2); Thread.Sleep(3000); }
public void AddShareSkill() { SignIn.OpenForm(); SignIn.FillCredentials(2); //Check if the user is able to access the "Share-Skill" function ProfilePages.GoToShareSkill(); //Check if the user is able to fill the "Share-Skill" details ShareSkillPage.FillShareSkill(2); //Check if the user is able to see the Skill in the "Manage Listing" page ManageListingPage.CheckListing(2); }
public void EnterShareSkillTest() { try { test = extent.CreateTest("Enter Share Skill Test Passed"); //page object for ShareSkill page ShareSkillPage shareSkillObj = new ShareSkillPage(); //navigate to ShareSKill shareSkillObj.navigateToShareSkill(driver); //Create Share Skill shareSkillObj.EnterShareSkill(driver); } catch (NoSuchElementException e) { test.Fail(e.StackTrace); } }
public void EditShareSkill() { SignIn.OpenForm(); SignIn.FillCredentials(2); //Check if the user is able to access the "Share-Skill" function ProfilePages.GoToManageListing(); //Check if the user is able to access the "Share-Skill" function ManageListingPage.EditListing(); //Check if the user is able to fill the Edit "Share-Skill" details ShareSkillPage.EditShareSkill(3); //Check if the changes can be seen in the "Manage Listage ManageListingPage.CheckListing(3); }
public void TestAddShareSkill() { test = extent.CreateTest("Test Add ShareSkill"); ProfilePage profilePage = new ProfilePage(); profilePage.ClickShareSkill(); ShareSkillPage skillPage = new ShareSkillPage(); skillPage.ReadExcelAddShareSkill(); skillPage.AddShareSkill(); Driver.WaitForElement(60, By.XPath("//tbody/tr[1]/td[3]")); String expextedTitle = "Seleinium with Csharp"; String actualTitle = Driver.driver.FindElement(By.XPath("//tbody/tr[1]/td[3]")).Text; Assert.AreEqual(expextedTitle, actualTitle); test.Log(Status.Info, "Added a ShareSkill"); }
//Function to add services using Share Skill feature to render services to others public void ShareSkill(int rownumber) { String Title = ServiceData.TitleData(rownumber); TestCase_Name = $"Adding services with title {Title}"; test = extent.CreateTest(TestCase_Name); //Create an instance for the SignIn page SignIn JoinObj = new SignIn(driver); //Invoke the LoginSteps to verify if the user can log in with valid credentials JoinObj.LoginSteps(); //Invoke the function to validate if the user has logged in successfully and the home page is displayed JoinObj.ValidateHomePage(); //Create an instance for the HomePage HomePage SkillObj = new HomePage(driver); //Invoke the function to navigate to Share Skill Page SkillObj.navigateToShareSkill(); //Create an instance for the ShareSkillPage ShareSkillPage Obj = new ShareSkillPage(driver, rownumber); //Invoke the function to fill the details of services rendered Obj.FillDetailsOfServiceProvided(); //Create an instance for the Listing Management page ListingManagement listObj = new ListingManagement(driver, rownumber); //Invoke the funtion to navigate to Manage Listings listObj.ManageListing(); //Invoke the funtion to view the listings listObj.ViewListings(); //Invoke the funtion to view the details of the listings listObj.NavigateToViewAddedDetails(); //Create an instance for the Service Detail page ServiceDetail ViewDetailObj = new ServiceDetail(driver, rownumber); //Invoke the funtion to validate the details of services ViewDetailObj.ValidateServiceDetail(); }
public void WhenTheUserClicksTheEditButtonOfASharedSkill() { ManageListingPage.EditListing(); ShareSkillPage.EditShareSkill(3); }
public void WhenTheUserFillsTheShareSkillForm() { ShareSkillPage.FillShareSkill(2); }
public void WhenIPressTheSAVEButton() { ShareSkillPage ShrSkill = new ShareSkillPage(); ShrSkill.ShareSkillSave(); }
public void WhenIEnterAllTheFieldsInTheShareSkillAccordingToMySkillLevel() { ShareSkillPage ShrSkill = new ShareSkillPage(); ShrSkill.ShareSkillAdd(); }
public void GivenIClickOnTheSHARESKILLTab() { ShareSkillPage ShrSkill = new ShareSkillPage(); ShrSkill.ShareSkillTab(); }
public void MessagesforFileds() { ShareSkillPage sp = new ShareSkillPage(); sp.displayingMessages(); }