Changes between Version 8 and Version 9 of AutomatedTesting

Aug 25, 2010 4:07:56 PM (14 years ago)



  • AutomatedTesting

    v8 v9  
    6161    }}} 
    6262    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. 
    63  4. Once you're satisfied that the scenario(s) will work correctly, run '''{{{}}}''' to perform both "Continuous" and "Nightly" builds on the specified scenario(s): 
    64     {{{ 
    65      $ ./ scenario1.xml [scenario2.xml ...] 
    66     }}} 
    67     The script will run the automated tests in the scenario(s) everytime changes occur in the repository, or at every 00:00:00 GMT for the "Nightly" build. 
    68  5. Go to [ PJSIP's CDash] test dashboard to check the test results. Note that test results are only submitted once all tests in a scenario are completed. 
    69  6. Now the automated test will run everytime there is a new checkin in the repository, or at every 00:00:00 GMT for the "Nightly" build. 
    72 [[BR]] 
    74 == The Templates == 
     64== Performing Automated Continuous and Nightly Builds and Tests == 
     66Once you're satisfied that the scenario(s) will work correctly, the next step is to run a script to automatically do the Continuous and Nightly builds. The '''{{{}}}''' script continuously monitors the repository for changes, and perform the builds and tests when it does. It also performs Nightly builds at every 00:00:00 GMT. 
     68The '''{{{}}}''' script takes the scenario file(s) as argument: 
     71  $ ./ scenario1.xml [scenario2.xml ...] 
     74However there is a problem with the above invocation, namely if the scenario template changes, it won't be picked up by {{{}}}, since we need to re-run {{{}}} for that. This will be discussed below. 
     77== Automatically Regenerating The Scenario == 
     79Use {{{prepare.xml.template}}} template scenario to generate a scenario that can be run to run {{{}}} for other scenarios. To use this: 
     80 1. Instantiate {{{prepare.xml}}} from {{{prepare.xml.template}}}: 
     81 {{{ 
     82$ ./ -t gnu -o prepare.xml prepare.xml.template 
     83 }}} 
     84 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. 
     86 1. Run the {{{prepare.xml}}} scenario to regenerate other scenarios: 
     87 {{{ 
     88$ ./ prepare.xml 
     89 }}} 
     90 1. Now you can run {{{prepare.xml}}} scenario before other scenarios in {{{}}}: 
     92  $ ./ prepare.xml scenario1.xml [scenario2.xml ...] 
     99== Appendix: The Templates == 
    76101The detailed steps to configure each template will be explained below.