Changes between Version 9 and Version 10 of AutomatedTesting
- Timestamp:
- Aug 25, 2010 4:17:46 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AutomatedTesting
v9 v10 50 50 || Symbian/S60 3rd Ed || {{{symbian-vas.xml.template}}} || Nokia VAS and VAS-Direct || [wiki:VAS Nokia VAS plugin] || 51 51 || iPhone || {{{iphone.xml.template}}} || iPhoneOS || one iPhone SDK must be installed || 52 || all || {{{prepare.xml.template}}} || See [#prep Automatically Regenerating The Scenarios] below || || 53 54 55 52 56 2. From the template, you will then create the actual scenario file by running '''{{{configure.py}}}'''. This is needed to ''instantiate'' the template using configurations that are specific to your host. Sample session: 53 57 {{{ 54 58 $ cd tests/automated 55 $ ./configure.py scenario.xml.template -o scenario.xml59 $ ./configure.py -o gnu.xml gnu.xml.template 56 60 }}} 57 The above command will produce '''{{{ scenario.xml}}}''' scenario file.61 The above command will produce '''{{{gnu.xml}}}''' scenario file. 58 62 3. For testing, run the scenario by running: 59 63 {{{ 60 $ ./run_scenario.py scenario.xml64 $ ./run_scenario.py gnu.xml 61 65 }}} 62 66 This will perform the automated tests and submit the result under "Experimental" group on CDash. Depending on which test is being run, it may take between two minutes to two hours to complete. You may press Ctrl-C to stop the execution. … … 69 73 70 74 {{{ 71 $ ./run_continuous.py scenario1.xml [scenario2.xml ...]75 $ ./run_continuous.py gnu.xml [iphone.xml ...] 72 76 }}} 73 77 … … 75 79 76 80 77 == Automatically Regenerating The Scenario ==78 79 Use {{{prepare.xml.template}}} template scenario to generate a scenario that can be run to run {{{configure.py}}} for other scenarios. To use this:81 == Automatically Regenerating The Scenarios == #prep 82 83 Use {{{prepare.xml.template}}} template scenario to generate {{{prepare.xml}}} scenario. The {{{prepare.xml}}} scenario contains commands to run {{{configure.py}}} for all other scenarios, effectively regenerating them. To use this: 80 84 1. Instantiate {{{prepare.xml}}} from {{{prepare.xml.template}}}: 81 85 {{{ … … 83 87 }}} 84 88 1. Edit the {{{prepare.xml}}} file, and remove scenarios (each scenario is represented as a <Test> item) which you don't want to run. 85 1. For each scenario that you '''do''' want to run, make sure the requirements are met. Typically the scenario want some environment variables to be set. You'd need to make sure that they are set before running thescenario.89 1. For each scenario that you '''do''' want to run, make sure the requirements are met. For example, you'd need to set some environment variables before running the {{{prepare.xml}}} scenario. 86 90 1. Run the {{{prepare.xml}}} scenario to regenerate other scenarios: 87 91 {{{ … … 90 94 1. Now you can run {{{prepare.xml}}} scenario before other scenarios in {{{run_continuous.py}}}: 91 95 {{{ 92 $ ./run_continuous.py prepare.xml scenario1.xml [scenario2.xml ...] 93 }}} 94 95 96 $ ./run_continuous.py prepare.xml gnu.xml [iphone.xml ...] 97 }}} 98 96 99 97 100 [[BR]]