Changes between Version 9 and Version 10 of AutomatedTesting


Ignore:
Timestamp:
Aug 25, 2010 4:17:46 PM (14 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AutomatedTesting

    v9 v10  
    5050    || Symbian/S60 3rd Ed ||  {{{symbian-vas.xml.template}}} || Nokia VAS and VAS-Direct || [wiki:VAS Nokia VAS plugin] || 
    5151    || 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 
    5256 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: 
    5357    {{{ 
    5458     $ cd tests/automated 
    55      $ ./configure.py scenario.xml.template -o scenario.xml 
     59     $ ./configure.py -o gnu.xml gnu.xml.template 
    5660    }}} 
    57     The above command will produce '''{{{scenario.xml}}}''' scenario file. 
     61    The above command will produce '''{{{gnu.xml}}}''' scenario file. 
    5862 3. For testing, run the scenario by running: 
    5963    {{{ 
    60      $ ./run_scenario.py scenario.xml 
     64     $ ./run_scenario.py gnu.xml 
    6165    }}} 
    6266    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. 
     
    6973 
    7074{{{ 
    71   $ ./run_continuous.py scenario1.xml [scenario2.xml ...] 
     75  $ ./run_continuous.py gnu.xml [iphone.xml ...] 
    7276}}} 
    7377 
     
    7579 
    7680 
    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 
     83Use {{{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: 
    8084 1. Instantiate {{{prepare.xml}}} from {{{prepare.xml.template}}}: 
    8185 {{{ 
     
    8387 }}} 
    8488 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 the scenario. 
     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. 
    8690 1. Run the {{{prepare.xml}}} scenario to regenerate other scenarios: 
    8791 {{{ 
     
    9094 1. Now you can run {{{prepare.xml}}} scenario before other scenarios in {{{run_continuous.py}}}: 
    9195{{{ 
    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  
    9699 
    97100[[BR]]