### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe_qgis_tests »

# 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')

  Test the InaSAFE keywords GUI

  `Xtest_on_radExposure_toggled`()

    Test exposure radio button toggle behaviour works

  `setUp`()

    Create fresh dialog for each test

  `tearDown`()

    Destroy the dialog after each test

  `test_addKeywordWhenPressOkButton`()

    Test add keyword when ok button is pressed.

  `test_addListEntry`()

    Test add entry to list works

  `test_addWarningsForColons`()

    Test add entry to list works

  `test_checkStateWhenKeywordsAbsent`()

    Test load state from keywords works

  `test_getValueForKey`()

    Test get value for key works

  `test_loadStateFromKeywords`()

    Test load state from keywords works

  `test_on_cboSubcategory_currentIndexChanged`()

    Test subcategory combo change event works

  `test_on_pbnAddToList1_clicked`()

    Test adding an item to the list using predefined form works

  `test_on_pbnAddToList2_clicked`()

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

  `test_on_pbnAdvanced_toggled`()

    Test advanced button toggle behaviour works

  `test_on_pbnRemove_clicked`()

    Test pressing remove works on key list

  `test_on_radHazard_toggled`()

    Test hazard radio button toggle behaviour works

  `test_removeItemByKey`()

    Test remove item by its key works

  `test_removeItemByValue`()

    Test remove item by its value works

  `test_reset`()

    Test form reset works

  `test_setCategory`()

    Test set category works

  `test_setSubcategoryList`()

    Test set subcategory list works

  `test_showHelp`()

    Test that help button works

`safe_qgis.test_keywords_dialog.``clearLayers`()

  Clear all the loaded layers

`safe_qgis.test_keywords_dialog.``copyMakePadangLayer`()

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

`safe_qgis.test_keywords_dialog.``makeKeywordlessLayer`()

  Helper function that returns a single predefined keywordless layer

`safe_qgis.test_keywords_dialog.``makePadangLayer`()

  Helper function that returns a single predefined layer

`safe_qgis.test_keywords_dialog.``removeTempFile`(myFileName='temp_Shakemap_Padang_2009')

  Helper function that removes temp file that created during test

This module forms part of the InaSAFE tool.

### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe_qgis_tests »