public void spring2_TC314() { try { //Declare requried Variable string[] res = new string[10]; string successMsg, autoSaveMsg; Boolean verifySerialNo; //Retriving Data from Excel string name = TestContext.DataRow["name"].ToString(); string serialNo = TestContext.DataRow["serialNo"].ToString(); //create object for environment window = BrowserWindow.Locate("FDAdminDashBoard"); window.CloseOnPlaybackCleanup = false; //create object for page w = new WorkOrderPage(window); //Call workorder Function res = w.workorder(name, window); Assert.AreEqual(res[0], "New Work Orders"); Assert.AreEqual(res[1], name); //Call workorder Function w.SelectServiceProvider(window); //Call Click_create Function w.Click_create(); //Call verifySuccessMsg Function successMsg = w.verifySuccessMsg(); //Validation Assert.AreEqual(successMsg, "Work Order created successfully"); //Call AddItem Function w.AddItem(serialNo); //Call click_Add Function w.click_Add(); //Call verifyAutoSave Function autoSaveMsg = w.verifyAutoSave(); //Validation Assert.AreEqual(autoSaveMsg, "AutoSaved"); //Call verifyserialNo Function verifySerialNo = w.verifyserialNo(serialNo); //Validation Assert.AreEqual(verifySerialNo, true); } finally { //post Condtion w.nav_Home(); } }