Module: safe_qgis.test_keywords_dialog

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - GUI Test Cases.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe_qgis.test_keywords_dialog.KeywordsDialogTest(methodName='runTest')[source]

Test the InaSAFE keywords GUI

Xtest_on_radExposure_toggled()[source]

Test exposure radio button toggle behaviour works

setUp()[source]

Create fresh dialog for each test

tearDown()[source]

Destroy the dialog after each test

test_addKeywordWhenPressOkButton()[source]

Test add keyword when ok button is pressed.

test_addListEntry()[source]

Test add entry to list works

test_addWarningsForColons()[source]

Test add entry to list works

test_checkStateWhenKeywordsAbsent()[source]

Test load state from keywords works

test_getValueForKey()[source]

Test get value for key works

test_loadStateFromKeywords()[source]

Test load state from keywords works

test_on_cboSubcategory_currentIndexChanged()[source]

Test subcategory combo change event works

test_on_dsbFemaleRatioDefault_valueChanged()[source]

Test hazard radio button toggle behaviour works

test_on_pbnAddToList1_clicked()[source]

Test adding an item to the list using predefined form works

test_on_pbnAddToList2_clicked()[source]

Test adding an item to the list using user defened form works

test_on_pbnAdvanced_toggled()[source]

Test advanced button toggle behaviour works

test_on_pbnRemove_clicked()[source]

Test pressing remove works on key list

test_on_radHazard_toggled()[source]

Test hazard radio button toggle behaviour works

test_on_radPostprocessing_toggled()[source]

Test hazard radio button toggle behaviour works

test_removeItemByKey()[source]

Test remove item by its key works

test_removeItemByValue()[source]

Test remove item by its value works

test_reset()[source]

Test form reset works

test_setCategory()[source]

Test set category works

test_setSubcategoryList()[source]

Test set subcategory list works

test_showHelp()[source]

Test that help button works

safe_qgis.test_keywords_dialog.clearLayers()[source]

Clear all the loaded layers

safe_qgis.test_keywords_dialog.makeKeywordlessLayer()[source]

Helper function that returns a single predefined keywordless layer

safe_qgis.test_keywords_dialog.makePadangLayer()[source]

Helper function that returns a single predefined layer

safe_qgis.test_keywords_dialog.makePadangLayerClone()[source]

Helper function that copies padang keyword for testing and return it.

safe_qgis.test_keywords_dialog.makePointLayer()[source]

Helper function that returns a single predefined layer

safe_qgis.test_keywords_dialog.makePolygonLayer()[source]

Helper function that returns a single predefined layer

safe_qgis.test_keywords_dialog.removeTempFile(myFileName='temp_Shakemap_Padang_2009')[source]

Helper function that removes temp file that created during test

This module forms part of the InaSAFE tool.

Previous topic

Module: safe_qgis.test_function_options_dialog

Next topic

Module: safe_qgis.test_impact_functions_doc

This Page