Esempio n. 1
0
        public void ThenIVerifyThatTheFieldIsNotPresentInTheStudyXmlFile(string fieldName)
        {
            string File1 = ScenarioContext.Current["XMLFileNameInProject"].ToString();

            if (!XMLActionUtilities.VerifyXMlContent(File1, fieldName))
            {
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Failed to verify data in the actual and expected XML files.\n Expected and Actual doesnot match";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
Esempio n. 2
0
        public void ThenIVerifyTheBelowInTheStudyXmlFile(Table table)
        {
            IEnumerable <XMLNodeData> xmlData = table.CreateSet <XMLNodeData>();
            string File1 = ScenarioContext.Current["XMLFileNameInProject"].ToString();

            if (!XMLActionUtilities.VerifyXMlContent(File1, (List <XMLNodeData>)xmlData))
            {
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Failed to verify data in the actual and expected XML files.\n Expected and Actual doesnot match";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }