Пример #1
0
        public void WriteLightEngineTestSequenceDetailsToJSon(TestFixtureLightEngineTestSequenceModel lightEngineModel)
        {
            string jsonstring = JsonConvert.SerializeObject(lightEngineModel);
            string json_lightEngine_file_path = TestFixtureConstants.GetLightEngineSequenceFilePath();

            System.IO.File.WriteAllText(json_lightEngine_file_path, jsonstring);
        }
Пример #2
0
        private void LoadSettingDetailsFromFile()
        {
            string file_path = TestFixtureConstants.GetLightEngineSequenceFilePath();

            if (!string.IsNullOrEmpty(file_path) && (File.Exists(file_path)))
            {
                DeserializeAndSetProperties(file_path);
            }
        }