Beispiel #1
0
        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");
        }
Beispiel #2
0
 public static void ValidateReceivedRequest()
 {
     ManageRequestPage.GenerateNewRequest(5);
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.NavigateToReceivedRequest();
     ManageRequestPage.CheckReceivedRequest();
 }
 public static void ValidateWithdrawRequest()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.GenerateNewRequest(2);
     ManageRequestPage.NavigateToSentRequest();
     ManageRequestPage.WithdrawRequest();
     ManageRequestPage.CheckNewSentStatus("Withdrawn");
 }
 public static void ValidateCompletedRequest()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.GenerateNewRequest(2);
     ManageRequestPage.AcceptRequestWithOtherUser();
     ManageRequestPage.NavigateToSentRequest();
     ManageRequestPage.CompletedRequest();
     ManageRequestPage.CheckNewSentStatus("Completed");
 }
Beispiel #5
0
 public void GivenTheSkillHasBeenRequestedByALearner()
 {
     //LogsOut to allow the second user to request the Skill
     ProfilePages.LogOut();
     ManageRequestPage.GenerateNewRequest(5);
 }
 public void GivenTheUserHasSentANewRequest()
 {
     ManageRequestPage.GenerateNewRequest(2);
 }
 public void GivenTheUserHasReceivedANewRequest()
 {
     ManageRequestPage.GenerateNewRequest(5);
 }