Пример #1
0
        public void GivenARetailerHasCreatedAProcessBRequest()
        {
            var LoginPage = new LoginPage(driver);

            LoginPage.LoginUser(sequenceUsers.retailer);
            LoginPage.GetPageByLinkText("Start Process");
            var BusinessProcessesPage = new BusinessProcessesPage(driver);

            BusinessProcessesPage.CreateInstanceOfProcess("B01 Meter installation");
            GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm();
            var FormB01Page = new FormF01Page(driver);

            FormB01Page.ClickButton("Submit");
            LoginPage = new LoginPage(driver);
            LoginPage.LogOutAnsSignInAsAnother();
            LoginPage.LoginUser(sequenceUsers.wsd);
            LoginPage.GetPageByLinkText("Processes");
            var ProcessesIStartedPage = new ProcessesIStartedPage(driver);

            ProcessesIStartedPage.GetProcess("B. Metering", "B01 Installation of a meter performed by the Wholesaler");
            var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps();

            ProcessesIStartedSteps.GivenIOpenTheProcess();
            FormB01Page = new FormF01Page(driver);
            FormB01Page.ClickTheWsdMenuItem();
        }
Пример #2
0
        public void GivenARetailerHasCreatedProcessBRequest(string bProcess)
        {
            var LoginPage = new LoginPage(driver);

            LoginPage.LoginUser(sequenceUsers.retailer);
            LoginPage.GetPageByLinkText("Start Process");
            var BusinessProcessesPage = new BusinessProcessesPage(driver);

            BusinessProcessesPage.CreateInstanceOfProcess(bProcess);
            GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm();
            var FormB01Page = new FormF01Page(driver);

            FormB01Page.ClickButton("Submit");
            LoginPage = new LoginPage(driver);
            LoginPage.Logout();
            LoginPage.CreateDriver();
            LoginPage = new LoginPage(driver);
            LoginPage.LoginUser(sequenceUsers.wsd);
            LoginPage.GetPageByLinkText("Processes");
            var ProcessesIStartedPage = new ProcessesIStartedPage(driver);

            ProcessesIStartedPage.GetProcess("B. Metering", bProcess);
            var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps();

            ProcessesIStartedSteps.GivenIOpenTheProcess();
            FormB01Page = new FormF01Page(driver);
            FormB01Page.ClickTheWsdMenuItem();
        }
Пример #3
0
        public void GivenIHaveAddedValidDataToAllSectionsOfTheProcessF4Form()
        {
            var retailerDetails        = new Retailer.RetailDetails("ret", "id", "reference", "contact name", "0242420420", "*****@*****.**");
            var eligiblePremiseDetails = new Retailer.EligiblePremiseDetails("1000000019S21", "10", "prospect villa", "add1", "add2", "add3", "Mere", "BA12 6JH");
            var detailsOfEnquiry       = new Retailer.DetailsOfEnquiry("details of enquiry text");
            var consentToContact       = new Retailer.ConsentToContact("Yes", "contact name", "08293427487", "No");
            var declaration            = new Retailer.Declaration("signature", DateTime.Now.ToString(), "Garth Vader", "The Boss");

            LoginPage = new LoginPage(driver);
            LoginPage.LoginUser(sequenceUsers.retailer);
            LoginPage.GetPageByLinkText("Start Process");
            BusinessProcessesPage = new BusinessProcessesPage(driver);
            BusinessProcessesPage.CreateInstanceOfProcess("F04B NHH customer enquiries received by Retailer");
            FormF01Page = new FormF01Page(driver);
            FormF01Page.AddRetailerDetails(retailerDetails);
            FormF01Page.AddEligiblePremiseDetails(eligiblePremiseDetails);
            FormF01Page.AddDetailsOfEnquiry(detailsOfEnquiry);
            FormF01Page.AddConsentToContactDetails(consentToContact);
            FormF01Page.AddDeclaration(declaration);
        }
Пример #4
0
        public void GivenARetailerHasCreatedAProcessARequest()
        {
            LoginPage = new LoginPage(driver);
            LoginPage.LoginUser(sequenceUsers.retailer);
            LoginPage.GetPageByLinkText("Start Process");
            BusinessProcessesPage = new BusinessProcessesPage(driver);
            BusinessProcessesPage.CreateInstanceOfProcess("A01 Pre application enquiries");
            GivenIHaveAddedValidDataToAllSectionsOfTheProcessAForm();
            FormF01Page = new FormF01Page(driver);
            FormF01Page.ClickButton("Save & Submit");
            LoginSteps = new LoginSteps();
            LoginSteps.GivenILogInAsAWholesaler();
            LoginPage = new LoginPage(driver);
            LoginPage.GetPageByLinkText("Processes");
            ProcessesIStartedPage = new ProcessesIStartedPage(driver);
            ProcessesIStartedPage.GetProcess("A. New Connections", "A01 Pre-Application enquiry in relation to a new connection or connections");
            ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps();
            ProcessesIStartedSteps.GivenIOpenTheProcess();
            var givenSteps = new SharedSpecflowSteps.GivenSteps();

            givenSteps.GivenIExpandTheLeftHandColumn();
            givenSteps.GivenIClickOnTheWSDLinkToProgressTheProcess();
        }
Пример #5
0
 public void GivenISelectCreateANewInstanceOfProcess(string processName)
 {
     BusinessProcessesPage.CreateInstanceOfProcess(processName);
 }