Changes between Version 7 and Version 8 of BluePrint/Testing/TestSuite
- Timestamp:
- 04/22/13 15:07:37 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/Testing/TestSuite
v7 v8 34 34 === Functional === 35 35 36 ==== CI Server ==== 36 37 * Maintain the CI Server to run the tests periodically and send an aggregated report for all the templates via email. 37 38 39 * Adapt tests to meet needs of evolving CI Server(SysAdmin/ContinuousIntegration). The tests should successfully run on the CI Server both locally and remotely. 40 41 ==== Selenium Tests ==== 38 42 * Run Selenium Tests in multiple templates with multiple user accounts. 39 43 40 * Create an abstraction for the Selenium Tests so that they are easier to read, write tests and t ests are more robust.44 * Create an abstraction for the Selenium Tests so that they are easier to read, write tests and the tests are more robust. 41 45 46 ==== Role Tests ==== 42 47 * Extend Role Tests to run on different templates(Currently is limited to the IFRC roles for RMS) 43 48 49 ==== Smoke Tests ==== 44 50 * Run Smoke tests in multiple templates. 45 51 52 ==== Load Tests ==== 46 53 * Load Tests : Will measure performance of Eden given the load under both normal and anticipated peak conditions. 47 54 55 ==== General to all tests ==== 48 56 * Clearer Error Messages in a way that anyone can reproduce them. 49 50 * Adapt tests to meet needs of evolving CI Server(SysAdmin/ContinuousIntegration). The tests should successfully run on the CI Server both locally and remotely. As mentioned before, it should then send the results via email.51 57 52 58 … … 57 63 The tests should operate between multiple templates. 58 64 59 === Standards ===60 61 === System Constraints ===62 63 65 == Design == 64 66 65 67 === Workflows === 66 68 69 ==== CI Server ==== 67 70 68 * Given that Sahana is a web-based tool, Selenium tests should be made robust, easy to use. The main idea is to have a set of functions(create, search, report, edit) which will take the tablename, labels of the field and the record data as input. The Testsuite should automatically check the type of field(option, autocomplete, text, date, datetime, etc) being used in the current template and fill the form accordingly. With this, we can create a code-template which just needs to be copied, pasted and fed in the record when creating a new Selenium test. This will ensure that writing Selenium tests are as easy as giving a test case. 71 * The CI Server should fetch the latest code from github an 72 73 * The CI Server should run all the test across templates on a daily basis both locally and remotely. For each test, it should include the template it is run on, test name and location. In case of failure of the test, it should include the traceback and the record details it was intended to work on also. It should send an aggregate report and a template specefic report for the bug marshalls and developers to investigate. 74 75 ==== Selenium Tests ==== 76 77 * Given that Sahana is a web-based tool, Selenium tests should be made robust, easy to use. The main idea is to '''have a set of functions(create, search, report, edit) which will take the tablename, labels of the field and the record data as input'''. 78 79 * The Test suite should automatically check the type of field(option, autocomplete, text, date, datetime, etc) being used in the current template and fill the form accordingly. With this, we can create a code-template which just needs to be copied, pasted and fed in the record when creating a new Selenium test. This will ensure that writing Selenium tests are as easy as giving a test case. 69 80 70 81 * So, the workflow of the developer will include running the unit tests to see if the new changes break anything and providing a Selenium test for the newly written module, which will be run in Continuous Integration. 82 83 ==== Role tests ==== 71 84 72 85 * The role tests currently run only on the IFRC template. The test suite should automatically generate data for multiple templates so that the role tests can be run on them as well. … … 76 89 * The load tests will test the amount of load Eden can take under normal and peak conditions. So, the load tests should be divided into phases, with each phase incrementally increasing the number of users and requests. Features of Tsung can be used to do this effectively. 77 90 78 * The CI Server should run all the test across templates on a daily basis both locally and remotely. For each test, it should include the template it is run on, test name and location. In case of failure of the test, it should include the traceback and the record details it was intended to work on also. It should send an aggregate report and a template specefic report for the bug marshalls and developers to investigate. 91 79 92 80 93