コード例 #1
0
        /// <summary>
        /// The set dt mstudio test data.
        /// </summary>
        /// <param name="dtmStudioTestData">
        /// The dtm studio test data.
        /// </param>
        public void SetDTMstudioTestData(DTMstudioTestData dtmStudioTestData)
        {
            FrameworkHelper.SetDeviceTypeProject(dtmStudioTestData.DeviceTypeProject);
            FrameworkHelper.SetTestEnvironment(dtmStudioTestData.TestEnvironment);
            FrameworkHelper.SetReportData(dtmStudioTestData.ReportData);

            FrameworkHelper.SaveConfiguration(this.TestFrameworkConfigFile);
        }
コード例 #2
0
        /// <summary>
        /// The load data for execution.
        /// </summary>
        /// <param name="currentDirectory">
        /// The current directory.
        /// </param>
        public void LoadDataForExecution(string currentDirectory)
        {
            this.TestFrameworkManager.InitializeConfiguration(Environment.CurrentDirectory);
            FrameworkHelper.SetDeviceTypeProject(this.DTMstudioTestData.DeviceTypeProject);

            var deviceTypeProjectTempDataPath = Path.Combine(this.DTMstudioTestData.DeviceTypeTestProject.ExecutionPath, DeviceTypeProjectDataFile);

            this.GetDTMstudioTestData(deviceTypeProjectTempDataPath);

            this.DTMstudioTestData.DeviceTypeTestProject.ExecutionPath = Environment.CurrentDirectory;

            this.dtMstudioTestData = this.TestFrameworkManager.LoadDataTest(this.dtMstudioTestData);
            this.dtMstudioTestData = this.DTMstudioDataManager.LoadData(this.dtMstudioTestData);
        }