Wednesday, May 4, 2016

Important things on CodedUI

If you need to add any costume text to your test out put.
just try adding highlighted text to your test method.


        [TestCategory("Work Order List"), TestMethod]
        public void Validate_WorkOrder_Search_By_Asset_Barcode()
        {
            ElemantsWODetails elm = new ElemantsWODetails();
            string WorkOrderAssetNumber = "QAZWSXEDC123";
            string ExpectedAssetBarcode=elm.ValidateSearchWOByBarcode("QAZWSXEDC123");
            Assert.AreEqual(ExpectedAssetBarcode, WorkOrderAssetNumber);
            elm.ClickOnDoneButton();
            this.TestContext.WriteLine("Expected Result :" + ExpectedAssetBarcode + "  Actual Result : " + WorkOrderAssetNumber + "");

        }

Out put.

No comments:

Post a Comment