public bool Process(ExecutionInstance executionInstance) { if ((!ModelPathTextBox.Text.Contains(".mdl") && !ModelPathTextBox.Text.Contains(".slx")) || !File.Exists(this.ModelPathTextBox.Text)) { MessageBox.Show("Invalid model path, expected a MATLAB model file (.mdl, .slx)", "Model missing", MessageBoxButton.OK, MessageBoxImage.Stop); return false; } if (!ModelSettingsPathTextBox.Text.Contains(".m") || !File.Exists(this.ModelSettingsPathTextBox.Text)) { MessageBox.Show("Invalid model settings path, expected a MATLAB script file (.m)", "Model settings missing", MessageBoxButton.OK, MessageBoxImage.Stop); return false; } executionInstance.PutValue("SUTSettingsPath", this.ModelSettingsPathTextBox.Text); executionInstance.PutValue("SUTPath", this.ModelPathTextBox.Text); return true; }
public bool Process(ExecutionInstance executionInstance) { if (this.projectNameTextBox.Text == "") { MessageBox.Show("Please name the test project.", "Name missing", MessageBoxButton.OK, MessageBoxImage.Stop); return false; } executionInstance.Name = this.projectNameTextBox.Text; executionInstance.Environment = this.environmentComboBox.Text; executionInstance.PutValue("EnvironmentType", this.environmentTypeComboBox.Text); return true; }