예제 #1
0
파일: CommonSteps.cs 프로젝트: Iona777/CAS3
        public void WhenTheUserEntersAnyValidDataBetweenTheCVIInvestorScreenAndInvestorDeclarationChoiceScreenUsingFileAndClicksOnTheContinueApplicationButton(string fileName)
        {
            //CVI Investor page
            theCVIInvestorPage.clickOnContinueApplicationBtn();
            Helper.pause(2000);
            //Assert.AreEqual(ConstantsList.Eden_CVIInvestor2ndHeaderText, theCVIInvestor2Page.getHeader(), "Check that we are on the 2nd CI Investor Page");

            //The CVI Investor page 2
            theCVIInvestor2Page.EnterAllValid();  //This does not use myData
            theCVIInvestor2Page.clickOnContinueBtn();
            Helper.pause(2000);
            Assert.AreEqual(ConstantsList.Eden_AdviserDeclarationHeaderText, theAdviserDeclarationPage.getHeader(), "Check that we are in the advisor declaration page");

            //The Adviser Declaration page
            try
            {
                Assert.IsTrue(theAdviserDeclarationPage.checkAdviserDeclarationMandatoryFieldsPopulated(), "Check that we are in the advisor declaration page");
            }
            catch (Exception e)
            {
                Debug.WriteLine("Mandatory fields not all populated for Adviser Declaration");
                throw;
            }

            Helper.pause(2000);
            theAdviserDeclarationPage.EnterAllValid(GetInputData(fileName));
            theAdviserDeclarationPage.ClickOnContinueApplicationBtn();
            Helper.pause(2000);
        }
예제 #2
0
 public void WhenTheUserEntersValidDataInTheAdviserDeclarationScreenAndClicksOnTheContinueApplicationButton(string fileName)
 {
     theAdviserDeclarationPage.EnterAllValid(GetInputData(fileName));
     theAdviserDeclarationPage.ClickOnContinueApplicationBtn();
     Helper.pause(2000);
 }