Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }