示例#1
0
 public Form1()
 {
     InitializeComponent();
     JSONFactory.JSON_IO JIO = new JSON_IO(Utils.Utils.this_Path() + "\\TestTubeObjects.txt");
     string jsondata=JIO.JSON_Read();
     //JSONFactory.JSONObjects settings;
     Exception ee;
     if (!JIO.JSON_Deserialize<JSONFactory.JSONObjects>(jsondata, out settings, out ee))
         this.labelStatus.Text = ee.Message;
     else
         Init();
 }
示例#2
0
        private bool FindTest()
        {
            bool rc = false;
            JSONIO.JSON_IO jio = new JSON_IO();
            Exception e;

            if (jio.JSON_Deserialize<JSONIO.SUITE>(this.JSON, out mTestCase, out e))
            {
                updateStatus(StatusType.FOUND, mTestCase.total_count.ToString());
            }
            else
            {
                this.LastError = e;
                if(this.LastError!=null)
                    updateStatus(StatusType.ERROR, e.Message);
                else
                    updateStatus(StatusType.FAILED, "Not found");
            }

            return rc;
        }