Exemplo n.º 1
0
        public void WriteLineTesterTestSequenceDetailsToJSon(TestFixtureLineTesterConfigModel lightTesterModel)
        {
            string jsonstring = JsonConvert.SerializeObject(lightTesterModel);
            string json_lineTester_file_path = TestFixtureConstants.GetLineTesterSettingsFilePath();

            System.IO.File.WriteAllText(json_lineTester_file_path, jsonstring);
        }
        private void LoadSettingDetailsFromFile()
        {
            string file_path = TestFixtureConstants.GetLineTesterSettingsFilePath();

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