コード例 #1
0
ファイル: Test01.cs プロジェクト: cnechifor/EtmilanAutomation
        public void Test01ForSupplierInstruction()
        {
            //Step 1 :  Login (as Insurer) to the following URL: ti6.etmilan.com
            step.No("Step1");
            Login loginPage = new Login();

            loginPage.Logon();


            //Step 2: Select Tools  XML Submission Tool
            step.No("Step2");
            JSMenu            menu         = new JSMenu();
            Tools             tools        = menu.ClickTools();
            XMLSubmissionTool xmlSelection = (XMLSubmissionTool)tools.SelectTool("XML Submission Tool");

            //Step 3 : From Message Templates, Select REST Household Property First Tier instruction with Legal Panel – 14
            step.No("Step3");
            xmlSelection.SelectMessageTemplate("REST - Household Property First Tier Instruction with Legal Panel - 14");


            //Step 4: From the XML message, update the fields
            step.No("Step4");
            xmlSelection.SetXmlMessageContent();

            String messageIDValue = Util.GenerateRandomMessageId();

            xmlSelection.ModifyXMLNode("MessageID", messageIDValue, 1);
            xmlSelection.ModifyXMLNode("SupplierName", "_Feature Test Supplier V14", 2);
            xmlSelection.ModifyXMLNode("SupplierType", "Third-Party Administrator", 2);

            String claimNumber = Util.GenerateRandomName("btronixtestclaim", 100, 999);

            xmlSelection.ModifyXMLNode("ClaimNumber", claimNumber, 2);

            xmlSelection.PasteXMLMessage();

            //Step 5 : Click Apply
            step.No("Step5");
            xmlSelection.ApplyXMLMessage();

            //Step 6 : Validate Response <Detail> OK</Detail>
            step.No("Step6");
            Assert.IsTrue(xmlSelection.ValidateResult(), "The XML Message result is not OK");

            //Step 7:  Click on Home
            step.No("Step7");
            menu = new JSMenu();
            Home home = menu.ClickHome();

            //Step 8 : From Quick Search, select Supplier as "_Feature Test Supplier V14"
            //Step 9 : Click Run
            step.No("Step8-9");
            QuicklySearchResults results = home.OnQuickSearch().SelectSupplierAndRun("_Feature Test Supplier V14");

            //Step 10 :  Validate that 1st row is Claim Number provided in Step 4.d
            step.No("Step10");
            Assert.AreEqual(claimNumber, results.GetCellValue("Claim Number", 1), "Check claim numbers are equal");
        }
コード例 #2
0
ファイル: Test03.cs プロジェクト: cnechifor/EtmilanAutomation
        public void Test03ForReserveRecoveryValue()
        {
            //Step 1 :  Login (as Insurer) to the following URL: ti6.etmilan.com
            step.No("Step1");
            Login loginPage = new Login();
            Home  home      = loginPage.Logon("btronixSupplier.user", "Adjuno1!");


            //Step 2 :  Select "_Feature Test Supplier V14" from dropdown in Quick Search box and click run
            step.No("Step2");
            QuicklySearchResults results = home.OnQuickSearch().SelectSupplierAndRun("_Feature Test Supplier V14");

            //Step 3: In Claim Number Column Search for btronix and select
            step.No("Step3");
            InsuranceInstructionPlan plan = results.ClickOnCellOnColumn("Claim Number", "btronixtestclaim998");

            //Step 4 : Scroll down to and click on Reserve and Recovery
            step.No("Step4");
            ReserveAndRecovery reserve = plan.ClickOnEvent("Reserve and Recovery");

            //Step 5 : Click Apply at the top of the screen
            step.No("Step5");
            reserve.ClickApply();

            //Step 6 :  Update values
            //Step 7 : Click Apply
            step.No("Step6-7");
            plan = reserve.SetIndemnityAndFeeAndApply("35000", "250");

            //Step 8 : Validate if fields have been updated wit the correct value
            step.No("Step8");
            String indemnityActualValue = plan.getIndemnityReserve();

            Assert.AreEqual("35000.00", indemnityActualValue, "Check Indemnity values are equal");

            String feeActualValue = plan.getFeeReserve();

            Assert.AreEqual("250.00", feeActualValue, "Check Fee values are equal");
        }