Méthode | Description | |
---|---|---|
ApplyPersistableSettings ( BugTrackerPersistableSettings settings ) : bool |
Applies the persistable settings upon loading the user settings from the XML file where persisted, or when Cancel is clicked. The settings are persisted so that the user can get the configured bug tracker on the next project load.
|
|
GetPersistableSettings ( ) : BugTrackerPersistableSettings |
Retrieve the object that implements the BugTrackerPersistableSettings interface. This includes the LoadFrom and SaveTo methods used to serialize and deserialize the the configuration into/out of the current Test Studio project.
|
|
OnClose ( ) : void |
Optional. Called whenever the bug tracker UI is closed for any reason. Clear the view for the next project to be loaded, which may not have Jira settings.
|
|
OnSave ( ) : void |
Optional. Called whenever user clicks Save in the UI to save the settings. Enables customizing the save click handling. We'll make the settings in the ViewModel the active settings for submitting bugs.
|
|
ResetSettings ( ) : void |
Resets bug tracker connection settings to default settings. Called when a project containg Jira settings is first opened, but before settings are loaded. Also called when the project is closed. Useful method to clean up the bug tracker data internally.
|
|
SubmitBug ( IBug bug ) : int |
Submits a bug to the bug tracking tool. Return an int that represents the newly created bug ID.
|
|
SubmitBug ( IBug bug ) : string | ||
jiraConnSettings_PropertyChanged ( object sender, |
Handle property changes in the ViewModel. For now all we do is bubble up the SelectedProject property change to CanSave which enables/disables the 'Done' button on the Test Studio wrapping WPF window.
|
Méthode | Description | |
---|---|---|
OnPropertyChanged ( string propertyName ) : void | ||
SettingsControlLoaded ( object sender, System e ) : void |
Event handler called when the WPF UserControl is loaded. The wrapping window listens to the CanSave and CanClose property changed events.
|
|
WorkerMethod ( ) : void |
Worker thread that fetches the list projects from JIRA.
|
|
settingsUiControl_OnGetProjects ( object sender, |
Event handler that is called when the user clicks the 'Get Projects' button in the UI. We'll spawn a background thread which will fetch the list of projects the user has access to from JIRA.
|
public ApplyPersistableSettings ( BugTrackerPersistableSettings settings ) : bool | ||
settings | BugTrackerPersistableSettings | The deserialized settings to make active. |
Résultat | bool |
public GetPersistableSettings ( ) : BugTrackerPersistableSettings | ||
Résultat | BugTrackerPersistableSettings |
public SubmitBug ( IBug bug ) : int | ||
bug | IBug | The bug from Test Studio to be created. |
Résultat | int |
public jiraConnSettings_PropertyChanged ( object sender, |
||
sender | object | The object that raised the event. |
e | Event arguments. | |
Résultat | void |