buildframework/helium/tools/testing/ats/ats.ant.xml
changeset 645 b8d81fa19e7d
parent 628 7c4a911dc066
equal deleted inserted replaced
643:27cf35f95864 645:b8d81fa19e7d
    23 <!--* @package testing -->
    23 <!--* @package testing -->
    24 <project name="_testing.ats" xmlns:hlm="http://www.nokia.com/helium">
    24 <project name="_testing.ats" xmlns:hlm="http://www.nokia.com/helium">
    25     <description>
    25     <description>
    26     ATS testing targets.
    26     ATS testing targets.
    27     </description>
    27     </description>
    28     
    28           
    29     <!--* @property ats.enabled
    29     <!--* @property ats.enabled
    30     Value must be set to execute ats-test target.
    30     Value must be set to execute ats-test target.
    31     @type boolean
    31     @type boolean
    32     @editable required
    32     @editable required
    33     @scope public
    33     @scope public
    34     @since 11.0
    34     @since 11.0
    35     -->
    35     -->
    36     
    36     
       
    37     <!--* @property ats.bootuptest.enabled
       
    38     Value must be set to execute ats-bootup-test target.
       
    39     @type boolean
       
    40     @scope public
       
    41     @since 12.0
       
    42     -->
       
    43 
    37     <!--* @property internal.ats.enabled
    44     <!--* @property internal.ats.enabled
    38     Set to run ats targests if ats.enabled set to true.
    45     Set to run ats targests if ats.enabled set to true.
    39     @type boolean
    46     @type boolean
    40     @scope private
    47     @scope private
    41     -->
    48     -->
    42     
    49 
       
    50     <!--* @property ats.aste.testasset.location
       
    51     Location of SW Test Assets, if the TestAsset is not packaged then it is first compressed to a .zip  file. It should be a UNC path.
       
    52     @type string
       
    53     @editable required
       
    54     @scope public
       
    55     -->
       
    56 
       
    57     <!--* @property eunit.test.package
       
    58     The EUnit package name to be unzipped on the environment, for executing EUnit tests.
       
    59     @type string
       
    60     @scope public
       
    61     -->
       
    62 
       
    63     <!--* @property ats.script.type
       
    64     There are two types of ats script files to send drop to ATS server, runx and import; only difference is that with import  ATS doesn't have to have access rights to testdrop.zip file, as it is sent to the system over http and import doesn't need network shares. If that is not needed import should not be used. Default value is runx as import involves heavy processing on ATS server.
       
    65     @type string
       
    66     @scope public
       
    67     -->
       
    68 
       
    69     <!--* @property tsrc.path.list
       
    70     Contains list of the tsrc directories. Gets the list from system definition layer files. Assuming that the test components are defined already in te layers.sysdef.xml  files to get compiled. Not recommended, but the property value can be set if there are no System Definition file(s), and tsrc directories paths to set manually.
       
    71     @type string
       
    72     @scope public
       
    73     -->
       
    74 
       
    75     <!--* @property ats.diamonds.signal
       
    76     Should be true  so at end of the build diamonds is checked for test results and Helium fails if tests failed.
       
    77     @type string
       
    78     @scope public
       
    79     -->
       
    80 
       
    81     <!-- Contains a test filterset name. A filterset is used to select/unselect test components. The filter(s) is/are effective when the same filters are defined in the package definition file for component(s).
       
    82     @type string
       
    83     @editable required
       
    84     @scope public
       
    85     @since 10.79
       
    86     -->
       
    87     <property name="ats.test.filterset" value="sysdef.filters.test" />
       
    88     <hlm:sysdefFilterSet id="sysdef.filters.test" >
       
    89         <filter filter="test" />
       
    90     </hlm:sysdefFilterSet>
       
    91     
       
    92     <!--* @property tdriver.asset.location
       
    93     The location of the test asset where ruby test files, sip profiles, hardware data etc are located.
       
    94     @type string
       
    95     @editable required
       
    96     @scope public
       
    97     -->
       
    98     
       
    99     <!--* @property tdriver.test.profiles
       
   100     Test profiles to be executed should be mentioned in this comma separated list e.g., 'bat, fute'.
       
   101     @type string
       
   102     @editable required
       
   103     @scope public
       
   104     -->
       
   105     
       
   106     <!--* @property tdriver.tdrunner.enabled
       
   107     Mustbe set to 'true' if TDrunner is engine is to be used. If true .sip files are used otherwise .rb (ruby) files are used to execute tests.
       
   108     @type boolean
       
   109     @editable required
       
   110     @scope public
       
   111     -->
       
   112 
       
   113     <!--* @property tdriver.template.file
       
   114     Location of the TDriver template file if user wants to use own template file instead of the default one.
       
   115     @type string
       
   116     @scope public
       
   117     -->
       
   118 
    43     <!--* @property enabled.ats
   119     <!--* @property enabled.ats
    44     Value must be set to execute ats-test target. - deprecated: Start using ats.enabled property.
   120     Value must be set to execute ats-test target. - deprecated: Start using ats.enabled property.
    45     @type boolean
   121     @type boolean
    46     @editable required
   122     @editable required
    47     @scope public
   123     @scope public
    75     @type boolean
   151     @type boolean
    76     @editable required
   152     @editable required
    77     @scope public
   153     @scope public
    78     @since 11.0
   154     @since 11.0
    79     -->
   155     -->
    80     
   156 
    81     <!--* @property internal.ats4.enabled
   157     <!--* @property internal.ats4.enabled
    82     Set if ats4.enabled is set to true. To run ats4 dependent targets.
   158     Set if ats4.enabled is set to true. To run ats4 dependent targets.
    83     @type boolean
   159     @type boolean
    84     @scope private
   160     @scope private
    85     -->
   161     -->
       
   162 
       
   163     <!-- Execute test cases using stf on ats4. Defaults to True, Set it to False if you do not want to enable stf.
       
   164     @type boolean
       
   165     @scope public
       
   166     @since 12.0
       
   167     -->
       
   168     <property name="ats.stf.enabled" value="true"/>
    86     
   169     
    87     <!--* @property ats.product.name
   170     <!--* @property ats.product.name
    88     Name of the product to be tested. For example: "PRODUCT"
   171     Name of the product to be tested. For example: "PRODUCT"
    89     @type string
   172     @type string
    90     @editable required
   173     @editable required
   104     @editable required
   187     @editable required
   105     @scope public
   188     @scope public
   106     -->
   189     -->
   107     
   190     
   108     <!--* @property ats.password
   191     <!--* @property ats.password
   109     Password for ATS. This password might be different from NOE or HTTP/UNIX password.
   192     Password for ATS3. This password might be different from NOE or HTTP/UNIX password.
   110     @type string
   193     @type string
   111     @editable required
   194     @editable required
   112     @scope public
   195     @scope public
   113     -->
   196     -->
   114     
   197     
   115     <!--* @property ats.username
   198     <!--* @property ats.username
   116     Username for ATS server. This is NOT the NOE or HTTP/UNIX username.
   199     Username for ATS3 server. This is NOT the NOE or HTTP/UNIX username.
   117     @type string
   200     @type string
   118     @editable required
   201     @editable required
   119     @scope public
   202     @scope public
   120     -->
   203     -->
   121     
   204     
   161     @editable required
   244     @editable required
   162     @scope public
   245     @scope public
   163     @deprecated since 11.0
   246     @deprecated since 11.0
   164     -->
   247     -->
   165     
   248     
   166     <!--* @property matti.enabled
   249     <!--* @property ats.tdriver.enabled
   167     Value must be set to true to enable testing with matti.
   250     Value must be set to true to enable testing with TDriver.
   168     @type boolean
   251     @type boolean
   169     @editable required
   252     @editable required
   170     @scope public
   253     @scope public
   171     @since 11.0
   254     @since 11.0
   172     -->
   255     -->
   173     
   256     
   174     <!--* @property internal.matti.enabled
   257     <!--* @property internal.ats.tdriver.enabled
   175     Set to run matti targets if matti.enabled is set to true.
   258     Set to run TDriver targets if ats.tdriver.enabled is set to true.
   176     @type boolean
   259     @type boolean
   177     @scope private
   260     @scope private
   178     -->
   261     -->
   179     
   262     
   180     <!--* @property ats.delta.enabled
   263     <!--* @property ats.delta.enabled
   183     @editable required
   266     @editable required
   184     @scope public
   267     @scope public
   185     @since 11.0
   268     @since 11.0
   186     -->
   269     -->
   187     
   270     
   188     <!--* @property ats.delta.enabled
       
   189     Set to run ats delta target if  ats.delta.enabled set to true.
       
   190     @type boolean
       
   191     @scope private
       
   192     -->
       
   193     
       
   194     <!--* @property ats.disable.java.importer
   271     <!--* @property ats.disable.java.importer
   195     To disable java importer for ats. - deprecated: Start using ats.java.importer.enabled property.
   272     To disable java importer for ats. - deprecated: Start using ats.java.importer.enabled property.
   196     @type boolean
   273     @type boolean
   197     @editable required
   274     @editable required
   198     @scope public
   275     @scope public
   199     @deprecated since 11.0
   276     @deprecated since 11.0
   200     -->
   277     -->
   201         
   278         
   202     <!-- To disable java importer for ats
   279     <!-- To disable java importer for ats3
   203     @type boolean
   280     @type boolean
   204     @editable required
   281     @editable required
   205     @scope public
   282     @scope public
   206     @since 11.0
   283     @since 11.0
   207     -->
   284     -->
   275         <or>
   352         <or>
   276             <istrue value="${aste.enabled}" />
   353             <istrue value="${aste.enabled}" />
   277             <isset property="enabled.aste"/>
   354             <isset property="enabled.aste"/>
   278         </or>
   355         </or>
   279     </condition>
   356     </condition>
   280     
   357 
       
   358     <!-- Check if bootup testing is enabled -->
       
   359     <condition property="internal.ats.bootuptest.enabled">
       
   360         <istrue value="${ats.bootuptest.enabled}" />
       
   361     </condition>
       
   362 
   281     <!-- Check is the ast4 enabled -->
   363     <!-- Check is the ast4 enabled -->
   282     <condition property="internal.ats4.enabled" value="true" else="false">
   364     <condition property="internal.ats4.enabled" value="true" else="false">
   283         <istrue value="${ats4.enabled}" />
   365         <istrue value="${ats4.enabled}" />
   284     </condition>
   366     </condition>
   285     
   367 
   286     <!-- Check is the ats emulator enabled -->
   368     <!-- Check is the ats emulator enabled -->
   287     <condition property="internal.ats.emulator.enabled">
   369     <condition property="internal.ats.emulator.enabled">
   288         <or>
   370         <or>
   289             <istrue value="${ats.emulator.enabled}" />
   371             <istrue value="${ats.emulator.enabled}" />
   290             <istrue value="${ats.emulator.enable}" />
   372             <istrue value="${ats.emulator.enable}" />
   291         </or>
   373         </or>
   292     </condition>
   374     </condition>
   293     
   375     
   294     <!-- Check is the ats matti enabled -->
   376     <!-- Check is the ats TDriver enabled -->
   295     <condition property="internal.matti.enabled">
   377     <condition property="internal.ats.tdriver.enabled">
   296         <istrue value="${matti.enabled}" />
   378         <or>
       
   379             <istrue value="${ats.tdriver.enabled}" />
       
   380             <istrue value="${tdriver.enabled}" />
       
   381             <istrue value="${matti.enabled}" />
       
   382         </or>
   297     </condition>
   383     </condition>
   298     
   384     
   299     <!-- Check is the ats ats delta enabled -->
   385     <!-- Check is the ats ats delta enabled -->
   300     <condition property="internal.ats.delta.enabled">
   386     <condition property="internal.ats.delta.enabled">
   301         <istrue value="${ats.delta.enabled}" />
   387         <istrue value="${ats.delta.enabled}" />
   319             <istrue value="${ats.singledrop.enabled}" />
   405             <istrue value="${ats.singledrop.enabled}" />
   320             <istrue value="${ats.create.singledrop.file}" />
   406             <istrue value="${ats.create.singledrop.file}" />
   321         </or>
   407         </or>
   322     </condition>
   408     </condition>
   323     
   409     
   324     
   410     <!-- Should be "true" if coverage measurement and dynamic analysis (CTC) tool support is to be used by ATS. Default value is "false", the values are case-sensitive.
       
   411     @type boolean
       
   412     @editable required
       
   413     @scope public
       
   414     -->
       
   415     <property name="ats.ctc.enabled" value="false"/>
       
   416     
       
   417     <!--* @property internal.ats.ctc.enabled
       
   418     Set to run the ats ctc targets.
       
   419     @type boolean
       
   420     @scope private
       
   421     -->
       
   422     <condition property="internal.ats.ctc.enabled">
       
   423         <istrue value="${ats.ctc.enabled}" />
       
   424     </condition>
   325     
   425     
   326     <!--  -->
   426     <!--  -->
   327     <fileset id="reference.ats.flash.images" dir="${release.images.dir}">
   427     <fileset id="reference.ats.flash.images" dir="${release.images.dir}">
   328         <include name="**/*.fpsx" />
   428         <include name="**/*.fpsx" />
   329         <include name="**/*rnd.C00" />
   429         <include name="**/*rnd.C00" />
   343     </condition>
   443     </condition>
   344 
   444 
   345     <fileset id="reference.ats.sis.images" dir="${ats.sis.images.dir}">
   445     <fileset id="reference.ats.sis.images" dir="${ats.sis.images.dir}">
   346         <include name="**/*.sis" />
   446         <include name="**/*.sis" />
   347     </fileset>
   447     </fileset>
   348     <!-- Limit of minimum number of sis files to execute matti-test target, otherwise MATTI-drop.zip will not be generated. Default value is "1" files.
   448     <!-- Limit of minimum number of sis files to execute tdriver-test target, otherwise TDriver-drop.zip will not be generated. Default value is "1" files.
   349     @type string
   449     @type string
   350     @scope public
   450     @scope public
   351     -->
   451     -->
   352     <property name="ats.sisfiles.minlimit" value="1" />
   452     <property name="ats.sisfiles.minlimit" value="1" />
   353     
   453     
   404             </hlm:textmetadatainput>
   504             </hlm:textmetadatainput>
   405         </hlm:metadatarecord>
   505         </hlm:metadatarecord>
   406         <hlm:generateBuildStatus file="${test.log.dir}/${build.id}_aste.log" />
   506         <hlm:generateBuildStatus file="${test.log.dir}/${build.id}_aste.log" />
   407     </target>
   507     </target>
   408 
   508 
   409     <!-- The target creates the MATTI_drop.zip file including test.xml for MATTI tests. This target is executable.-->
   509     <!-- Old target for tdriver-test. Deprecated in Helium 12 -->
   410     <target name="matti-test" if="internal.matti.enabled">
   510     <target name="matti-test">
       
   511         <runtarget target="tdriver-test" />
       
   512     </target>
       
   513     
       
   514     <!-- The target creates the TDriver_drop.zip file including test.xml for TDriver tests. This target is executable.-->
       
   515     <target name="tdriver-test" if="internal.ats.tdriver.enabled">
   411         <mkdir dir="${test.log.dir}"/>
   516         <mkdir dir="${test.log.dir}"/>
   412         <runtarget target="load-property-from-cache-file" />
   517         <runtarget target="load-property-from-cache-file" />
   413         <hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/>
   518         <hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/>
   414         <runtarget target="do-ats-matti" />
   519         <runtarget target="copy-mon-sym" />
   415         <hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_matti.log" append="false"/>
   520         <runtarget target="do-ats-tdriver" />
       
   521         <hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_tdriver.log" append="false"/>
   416         <hlm:metadatarecord database="${metadata.dbfile}">
   522         <hlm:metadatarecord database="${metadata.dbfile}">
   417             <hlm:textmetadatainput>
   523             <hlm:textmetadatainput>
   418                 <fileset casesensitive="false" file="${test.log.dir}/${build.id}_matti.log" />
   524                 <fileset casesensitive="false" file="${test.log.dir}/${build.id}_tdriver.log" />
   419                 <metadatafilterset refid="filterset.matti" />
   525                 <metadatafilterset refid="filterset.tdriver" />
   420             </hlm:textmetadatainput>
   526             </hlm:textmetadatainput>
   421         </hlm:metadatarecord>
   527         </hlm:metadatarecord>
   422         <hlm:generateBuildStatus file="${test.log.dir}/${build.id}_matti.log" />
   528         <hlm:generateBuildStatus file="${test.log.dir}/${build.id}_tdriver.log" />
   423     </target>
   529     </target>
   424 
   530 
   425     <!-- Sends drop file to ATS/ASTE. Please see `ats-test` for description. -->
   531     <!-- Sends drop file to ATS/ASTE. Please see `ats-test` for description. -->
   426     <target name="do-ats-test" depends="ats-username, ats-password" if="internal.ats.upload.enabled">
   532     <target name="do-ats-test" depends="ats-username, ats-password" if="internal.ats.upload.enabled">
   427         <property name="ats.sending" value="true" />
   533         <property name="ats.sending" value="true" />
   453                     <equals arg1="${ats.script.type}" arg2="import" />
   559                     <equals arg1="${ats.script.type}" arg2="import" />
   454                 </condition>
   560                 </condition>
   455                 <condition property="ats4.libs" value="${helium.dir}/extensions/nokia/external/ats4" else="${helium.dir}/external/antlibs">
   561                 <condition property="ats4.libs" value="${helium.dir}/extensions/nokia/external/ats4" else="${helium.dir}/external/antlibs">
   456                     <available type="dir" file="${helium.dir}/extensions/nokia/external/ats4"/>
   562                     <available type="dir" file="${helium.dir}/extensions/nokia/external/ats4"/>
   457                 </condition>
   563                 </condition>
       
   564                 <echo message="Uploading using: -url http://${ats.server}/ServerService -path ${ats.drop.location.file} ${ats.import.arg}"/>
   458                 <java classname="com.nokia.ats.util.server.CommandLineClient" fork="true" maxmemory="1024m" failonerror="true">
   565                 <java classname="com.nokia.ats.util.server.CommandLineClient" fork="true" maxmemory="1024m" failonerror="true">
   459                     <classpath>
   566                     <classpath>
   460                         <pathelement path="${java.class.path}"/>
   567                         <pathelement path="${java.class.path}"/>
   461                         <fileset dir="${ats4.libs}" includes="*.jar"/>
   568                         <fileset dir="${ats4.libs}" includes="*.jar"/>
   462                     </classpath>
   569                     </classpath>
   509 if project.getProperty('internal.ats.iconfig.enabled') == 'true':
   616 if project.getProperty('internal.ats.iconfig.enabled') == 'true':
   510     import atsant
   617     import atsant
   511     ic = None
   618     ic = None
   512     try:
   619     try:
   513         ic = atsant.IConfigATS(project.getProperty('release.images.dir'), project.getProperty('ats.product.name'))
   620         ic = atsant.IConfigATS(project.getProperty('release.images.dir'), project.getProperty('ats.product.name'))
   514     except Exception, ex:
   621     except IOError, ex:
   515         print ex
   622         print ex
   516     if ic:
   623     if ic:
   517         project.setProperty('ats.flash.images', ic.findimages())
   624         project.setProperty('ats.flash.images', ic.findimages())
   518         </script>
   625         </script>
   519         <hlm:python failonerror="true">
   626         <hlm:python failonerror="true">
   536     </target>
   643     </target>
   537 
   644 
   538     <!-- Sets values common for ATS, this is a dependent target and shouldn't be used as an individual target -->
   645     <!-- Sets values common for ATS, this is a dependent target and shouldn't be used as an individual target -->
   539     <target name="ats-common">
   646     <target name="ats-common">
   540         <property name="ats.config.file" value="" />
   647         <property name="ats.config.file" value="" />
       
   648 
       
   649         <!-- Text in name of PKG files to use eg. 'sanity' would only use xxxsanity.pkg files from components.
       
   650         @type string
       
   651         @scope public
       
   652         -->
   541         <property name="ats.specific.pkg" value="" />
   653         <property name="ats.specific.pkg" value="" />
   542         
   654         
   543         <!-- Product HardWare ID (HWID) attached to ATS. By default the value of HWID is not set.
   655         <!-- Product HardWare ID (HWID) attached to ATS. By default the value of HWID is not set.
   544         @type string
   656         @type string
   545         @scope public
   657         @scope public
   613         @type boolean
   725         @type boolean
   614         @scope public
   726         @scope public
   615         @editable required
   727         @editable required
   616         -->
   728         -->
   617         <property name="ats.trace.enabled" value="false"/>
   729         <property name="ats.trace.enabled" value="false"/>
   618         
   730         <!-- Should be ``true`` so a set is used for each pkg file in a component, this allows tests to run in parallel on several devices.
   619         <!-- Should be "true" if coverage measurement and dynamic analysis (CTC) tool support is to be used by ATS. Default value is "false", the values are case-sensitive.
       
   620         @type boolean
   731         @type boolean
       
   732         @scope public
       
   733         -->
       
   734         <property name="ats.multiset.enabled" value="false"/>
       
   735         
       
   736         <!-- Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off".
       
   737         @type string
   621         @editable required
   738         @editable required
   622         @scope public
   739         @scope public
   623         -->
   740         -->         
   624         <property name="ats.ctc.enabled" value="false"/>
       
   625         
       
   626         <!--* @property internal.ats.ctc.enabled
       
   627         Set to run the ats ctc targets.
       
   628         @type boolean
       
   629         @scope private
       
   630         -->
       
   631         <condition property="internal.ats.ctc.enabled">
       
   632             <istrue value="${ats.ctc.enabled}" />
       
   633         </condition>
       
   634         
       
   635         <!-- Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off".
       
   636         @type boolean
       
   637         @editable required
       
   638         @scope public
       
   639         -->
       
   640         <property name="ats.multiset.enabled" value="false"/>
       
   641                     
       
   642         <property name="eunitexerunner.flags" value="/E S60AppEnv /R Off" />
   741         <property name="eunitexerunner.flags" value="/E S60AppEnv /R Off" />
   643             
   742             
   644         <!--* @property ats.obey.pkgfiles.rule.enabled
   743         <!--* @property ats.obey.pkgfiles.rule.enabled
   645         If the property is set to "true", then the only test components which will have PKG files, will be included into the test.xml as a test-set. Which means, even if there's a test component (executable) but there's no PKG file, it should not be considered as a test component and hence not included into the test.xml as a separate test. By default the property value is false.
   744         If the property is set to "true", then the only test components which will have PKG files, will be included into the test.xml as a test-set. Which means, even if there's a test component (executable) but there's no PKG file, it should not be considered as a test component and hence not included into the test.xml as a separate test. By default the property value is false.
   646         @type boolean
   745         @type boolean
   683     </target>
   782     </target>
   684 
   783 
   685     <!-- Sets default values for the ASTE, this is a dependent target and shouldn't be used as an individual target -->
   784     <!-- Sets default values for the ASTE, this is a dependent target and shouldn't be used as an individual target -->
   686     <target name="ats-set-defaults-aste" depends="ats-common">
   785     <target name="ats-set-defaults-aste" depends="ats-common">
   687         <var name="ats.drop.file" value="ATSAsteDrop.zip" />
   786         <var name="ats.drop.file" value="ATSAsteDrop.zip" />
       
   787         <!-- Type of test to run. Default is 'smoke'.
       
   788         @type string
       
   789         @scope public
       
   790         -->
   688         <property name="ats.aste.test.type" value="smoke" />
   791         <property name="ats.aste.test.type" value="smoke" />
       
   792         <!-- These are the cases that which tests should be run from the TestAsset. For example, value can be set as 100,101,102,103,105,106,. A comma is needed to separate case IDs
       
   793         @type string
       
   794         @scope public
       
   795         -->
   689         <property name="ats.aste.testasset.caseids" value="100,101,102,103,105,106,107,108,109,110,111,112,113,114,115" />
   796         <property name="ats.aste.testasset.caseids" value="100,101,102,103,105,106,107,108,109,110,111,112,113,114,115" />
       
   797         <!-- Version of the software to be tested. For example: 'W81'
       
   798         @type string
       
   799         @editable required
       
   800         @scope public
       
   801         -->
   690         <property name="ats.aste.software.version" value="${build.id}" />
   802         <property name="ats.aste.software.version" value="${build.id}" />
       
   803         <!-- Variant Language to be tested. Default is 'English'
       
   804         @type string
       
   805         @scope public
       
   806         -->
   691         <property name="ats.aste.language" value="English" />
   807         <property name="ats.aste.language" value="English" />
       
   808         <!-- Flash images releases, for example 'SPP 51.32'.
       
   809         @type string
       
   810         @editable required
       
   811         @scope public
       
   812         -->
   692         <property name="ats.aste.software.release" value="${build.name}" />
   813         <property name="ats.aste.software.release" value="${build.name}" />
   693         <!-- Modify the plan name if you have understanding of test.xml file or leave it as it is. Default value is "plan"
   814         <!-- Modify the plan name if you have understanding of test.xml file or leave it as it is. Default value is "plan"
   694         @type string
   815         @type string
   695         @scope public
   816         @scope public
   696         -->
   817         -->
   800                     <arg value="--ctc-run-process-params=${ats.ctc.host}#${ats.drop.file}#${ats.drops.count}" /> <!-- Three differnt value are combined with '#' character which is later parsed inside the script -->
   921                     <arg value="--ctc-run-process-params=${ats.ctc.host}#${ats.drop.file}#${ats.drops.count}" /> <!-- Three differnt value are combined with '#' character which is later parsed inside the script -->
   801                     <arg value="--monsym-files=${ats.ctc.monsyms}" />
   922                     <arg value="--monsym-files=${ats.ctc.monsyms}" />
   802                     <arg value="--config=${ats.config.file}" />
   923                     <arg value="--config=${ats.config.file}" />
   803                     <arg value="--obey-pkgfiles=${internal.ats.obey.pkgfiles.rule.enabled}" />
   924                     <arg value="--obey-pkgfiles=${internal.ats.obey.pkgfiles.rule.enabled}" />
   804                     <arg value="--ats4-enabled=${internal.ats4.enabled}" />
   925                     <arg value="--ats4-enabled=${internal.ats4.enabled}" />
       
   926                     <arg value="--ats-stf-enabled=${ats.stf.enabled}" />
   805                     <arg value="--specific-pkg=${ats.specific.pkg}" />
   927                     <arg value="--specific-pkg=${ats.specific.pkg}" />
   806                     <arg value="--hti=${ats.hti.enabled}" />
   928                     <arg value="--hti=${ats.hti.enabled}" />
       
   929                     <arg value="--minimum-execution-blocks=${ats.minimum.execution.blocks.enabled}" />
   807                     <arg value="--verbose" />
   930                     <arg value="--verbose" />
   808                     <arg line="${module.tsrc.@{module}}" />
   931                     <arg line="${module.tsrc.@{module}}" />
   809                 </exec>
   932                 </exec>
   810                 <antcall target="do-ats-test" />
   933                 <antcall target="do-ats-test" />
   811                 <math result="drop.file.counter" operand1="1" operation="+" operand2="${drop.file.counter}" datatype="int" />
   934                 <math result="drop.file.counter" operand1="1" operation="+" operand2="${drop.file.counter}" datatype="int" />
   912     
  1035     
   913     <!-- Run evalid on ido directories -->
  1036     <!-- Run evalid on ido directories -->
   914     <macrodef name="evalidMacro" uri="http://www.nokia.com/helium">
  1037     <macrodef name="evalidMacro" uri="http://www.nokia.com/helium">
   915         <attribute name="dir"/>
  1038         <attribute name="dir"/>
   916         <sequential>
  1039         <sequential>
   917             <runtarget target="ido-create-ado-mapping"/>
  1040             <property name="evalid.mapping.file" location="${build.output.dir}/build/ado_mapping_evalid.ini" />
       
  1041             <hlm:createAdoMappingMacro adoMapFile="${evalid.mapping.file}" />
   918             <hlm:python>
  1042             <hlm:python>
   919 import delta_zip
  1043 import delta_zip
   920 delta_zip.evalidAdomapping(r'${build.drive}', r'@{dir}', r'${ado.mapping.file}')
  1044 delta_zip.evalidAdomapping(r'${build.drive}', r'@{dir}', r'${evalid.mapping.file}')
   921             </hlm:python>
  1045             </hlm:python>
   922         </sequential>
  1046         </sequential>
   923     </macrodef>
  1047     </macrodef>
   924     
  1048     
   925     <!-- Generate sysdef fileset based on evalid data -->
  1049     <!-- Generate sysdef fileset based on evalid data -->
   943             break
  1067             break
   944 project.addReference('ats.system.definition.files', atspath)
  1068 project.addReference('ats.system.definition.files', atspath)
   945         </script>
  1069         </script>
   946     </target>
  1070     </target>
   947     
  1071     
   948     <!-- Common target to run ats, aste and matti -->
  1072     <!-- Common target to run ats, aste and TDriver -->
   949     <target name="run-test" depends="ats-test,ats-aste,matti-test"/>
  1073     <target name="run-test" depends="ats-test,ats-aste,tdriver-test"/>
   950     
  1074     
   951     <!-- Zip build area for emulator -->
  1075     <!-- Zip build area for emulator -->
   952     <target name="ats-emulator-zip" if="internal.ats.emulator.enabled">
  1076     <target name="ats-emulator-zip" if="internal.ats.emulator.enabled">
   953         <property name="zips.emulator_zip.spec.name" value="emulator_zip"/>
  1077         <property name="zips.emulator_zip.spec.name" value="emulator_zip"/>
   954         <hlm:zipContentMacro type="emulator_zip" file="${helium.dir}/tools/testing/ats/emulator_zip.cfg.xml" />
  1078         <hlm:zipContentMacro type="emulator_zip" file="${helium.dir}/tools/testing/ats/emulator_zip.cfg.xml" />
   984             <arg value="--test-type=${ats.custom.test.type}" />
  1108             <arg value="--test-type=${ats.custom.test.type}" />
   985         </exec>
  1109         </exec>
   986         <runtarget target="do-ats-test" />
  1110         <runtarget target="do-ats-test" />
   987     </target>
  1111     </target>
   988 
  1112 
   989     <!-- a dependant target please do not call directly use matti-test,
  1113     <!-- a dependant target please do not call directly use tdriver-test,
   990      target calls the MATTI script that creates the MATTI_drop.zip file and runs the tests
  1114      target calls the TDriver script that creates the TDriver_drop.zip file and runs the tests
   991      listed in test.rb.  ats-set-flash-image-path and ats-set-sis-flash-image-path look for lists of files-->
  1115      listed in test.rb.  ats-set-flash-image-path and ats-set-sis-flash-image-path look for lists of files-->
   992     <target name="do-ats-matti" depends="ats-set-flash-image-path" >
  1116     <target name="do-ats-tdriver" depends="ats-set-flash-image-path" >
   993         <runtarget target="ats-set-defaults-stifeunit" />
  1117         <runtarget target="ats-set-defaults-stifeunit" />
       
  1118 
       
  1119         <!-- Separate but similar property to ats.test.timeout for TDriver tests.
       
  1120         @type string
       
  1121         @editable required
       
  1122         @scope public
       
  1123         -->
       
  1124         <property name="tdriver.test.timeout" value="60" />
       
  1125         <!-- There are special sis files required to execute with test execution. This is a comma separated list in which several sis files can be deifned in a certain format like '<src file on build area>#<destination to save the file on memory card>#<destination to install the file>' e.g. <x:dir1abc.sis#f:memory1abc.sis#c:phonememoryprivateabc.sis>
       
  1126         @type string
       
  1127         @editable required
       
  1128         @scope public
       
  1129         -->
       
  1130         <property name="tdriver.sis.files" value=""/>
       
  1131         <!-- TDrunner parameters are set using this property. e.g. 'teardown ordered'.
       
  1132         @type string
       
  1133         @editable required
       
  1134         @scope public
       
  1135         -->
       
  1136         <property name="tdriver.tdrunner.parameters" value=""/>
       
  1137         <!-- TDriver test parameters can be given through TDriver parameters xml file.
       
  1138         @type string
       
  1139         @editable required
       
  1140         @scope public
       
  1141         -->
       
  1142         <property name="tdriver.parameters" value=""/>
       
  1143         <!-- Alias name for the test cases to be used in test.xml files for ATS4 drops only. 
       
  1144         @type string
       
  1145         @scope public
       
  1146         @since 11.0
       
  1147         -->
       
  1148         <property name="ats.alias.name" value="sut_s60"/>
       
  1149         <!-- The Subject for the ATS report email. This email is received in the end of the test execution.
       
  1150         @type string
       
  1151         @scope public
       
  1152         -->
       
  1153         <property name="ats.email.subject" value="${build.id} TDriver test results"/>
       
  1154         <!-- This specifies email format. E.g. to receive email without attachment 'simplelogger'.
       
  1155         @type string
       
  1156         @scope public
       
  1157         -->
       
  1158         <property name="ats.email.format" value="simplelogger"/>
       
  1159         <fail unless="tdriver.asset.location" message="Error: tdriver.asset.location property not defined" />
       
  1160         
   994         <!--need to set theseup for use by do-ats-test target-->
  1161         <!--need to set theseup for use by do-ats-test target-->
   995         <mkdir dir="${build.output.dir}/ats" />
  1162         <mkdir dir="${build.output.dir}/ats" />
   996         <var name="ats.drop.file" value="ATSMattiDrop.zip" />
  1163         <var name="ats.drop.file" value="ATSTDriverDrop.zip" />
   997         <!-- execute the MattiDrops.py script with parameters-->
  1164         <!-- execute the tdriver.py script with parameters-->
   998         <exec executable="python" resultproperty="script.response">
  1165         <exec executable="python" resultproperty="script.response">
   999             <arg line="-m ats3.matti2" />
  1166             <arg line="-m ats3.tdriver" />
  1000             <arg value="--build-drive=${build.drive}" />
  1167             <arg value="--build-drive=${build.drive}" />
  1001             <arg value="--test-profiles=${matti.test.profiles}" />      <!--"all, !bat1" -->
  1168             <arg value="--test-profiles=${tdriver.test.profiles}" />      <!--"all, !bat1" -->
  1002             <arg value="--sierra-enabled=${matti.sierra.enabled}" />    <!--"true/false" -->
  1169             <arg value="--tdrunner-enabled=${tdriver.tdrunner.enabled}" />    <!--"true/false" -->
  1003             <arg value="--matti-timeout=${matti.test.timeout}" />       <!--"600" -->
  1170             <arg value="--tdriver-timeout=${tdriver.test.timeout}" />       <!--"600" -->
  1004             <arg value="${internal.ats.diamonds.arg}" />
  1171             <arg value="${internal.ats.diamonds.arg}" />
  1005             <arg value="--testasset-location=${matti.asset.location}" />    <!--"local and/or network drive" -->
  1172             <arg value="--testasset-location=${tdriver.asset.location}" />    <!--"local and/or network drive" -->
  1006             <arg value="--file-store=${ats.output.dir}" />              <!--"network drive" -->
  1173             <arg value="--file-store=${ats.report.location}" />                <!--"network drive" -->
  1007             <arg value="--testrun-name=${ats.testrun.name}" />          <!--"Matti_Profile_Name" -->
  1174             <arg value="--testrun-name=${ats.testrun.name}" />          <!--"TDriver_Profile_Name" -->
  1008             <arg value="--alias-name=${ats.alias.name}" />                        <!--"agents_alias_Name" -->
  1175             <arg value="--alias-name=${ats.alias.name}" />                        <!--"agents_alias_Name" -->
  1009             <arg value="--device-type=${ats.product.name}" />
  1176             <arg value="--device-type=${ats.product.name}" />
  1010             <arg value="--flash-images=${ats.flash.images}" /> 
  1177             <arg value="--flash-images=${ats.flash.images}" /> 
  1011             <arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" />
  1178             <arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" />
  1012             <arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" />
  1179             <arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" />
  1013             <arg value="--template-loc=${matti.template.file}" />             <!--"local and/or network drive. No comma separated list" -->
  1180             <arg value="--template-loc=${tdriver.template.file}" />             <!--"local and/or network drive. No comma separated list" -->
  1014             <arg value="--email-format=${ats.email.format}" />          <!--"Email Formatting. e.g. simplelogger" -->
  1181             <arg value="--email-format=${ats.email.format}" />          <!--"Email Formatting. e.g. simplelogger" -->
  1015             <arg value="--email-subject=${ats.email.subject}" />        <!--"Email Subject. e.g. Matti testing" -->
  1182             <arg value="--email-subject=${ats.email.subject}" />        <!--"Email Subject. e.g. TDriver testing" -->
  1016             <arg value="--report-email=${ats.email.list}" /> 
  1183             <arg value="--report-email=${ats.email.list}" /> 
  1017             <arg value="--ats4-enabled=${internal.ats4.enabled}" />
  1184             <arg value="--ats4-enabled=${internal.ats4.enabled}" />
  1018             <arg value="--matti-sis-files=${matti.sis.files}" />        <!--"src#store#dst, src#store#dst" -->
  1185             <arg value="--tdriver-sis-files=${tdriver.sis.files}" />        <!--"src#store#dst, src#store#dst" -->
  1019             <arg value="--matti-parameters=${matti.parameters}" />
  1186             <arg value="--tdriver-parameters=${tdriver.parameters}" />
  1020             <arg value="--sierra-parameters=${matti.sierra.parameters}" />    <!--Additional sierra parameters for matti task e.g. ordered teardown -->
  1187             <arg value="--tdrunner-parameters=${tdriver.tdrunner.parameters}" />    <!--Additional TDrunner parameters for tdriver task e.g. ordered teardown -->
       
  1188             <arg value="--ctc-enabled=${ats.ctc.enabled}" />
  1021         </exec>
  1189         </exec>
  1022         
       
  1023         <!-- Unset the internal property to overwrite with new value-->
       
  1024         <var name="internal.ats.upload.enabled" unset="true"/>
       
  1025         <!-- set internal property if python returns 0 value for matti test drop creation --> 
       
  1026         <condition property="internal.ats.upload.enabled">
       
  1027             <equals arg1="${script.response}" arg2="0" />
       
  1028         </condition>
       
  1029         <runtarget target="do-ats-test" />
  1190         <runtarget target="do-ats-test" />
  1030     </target>
  1191     </target>
  1031 
  1192 
       
  1193     <!-- The target is used to test ROM image files that whether device boots up -->
       
  1194     <target name="ats-bootup-test" depends="ats-common,ats-set-flash-image-path" if="internal.ats.bootuptest.enabled">
       
  1195         <!--need to set the setup for use by do-ats-test target-->
       
  1196         <mkdir dir="${build.output.dir}/ats" />
       
  1197         <var name="ats.drop.file" value="ATSBootupDrop.zip" />
       
  1198         <!-- execute the bootup_testing.py script with parameters-->
       
  1199         <exec executable="python" resultproperty="script.response">
       
  1200             <arg line="-m ats3.bootup_testing" />
       
  1201             <arg value="--build-drive=${build.drive}" />
       
  1202             <arg value="${internal.ats.diamonds.arg}" />
       
  1203             <arg value="--file-store=${ats.report.location}" />         <!--"network drive" -->
       
  1204             <arg value="--testrun-name=${ats.testrun.name}" />          <!--"bootup_test" -->
       
  1205             <arg value="--alias-name=${ats.alias.name}" />              <!--"agents_alias_Name" -->
       
  1206             <arg value="--device-type=${ats.product.name}" />
       
  1207             <arg value="--flash-images=${ats.flash.images}" /> 
       
  1208             <arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" />
       
  1209             <arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" />
       
  1210             <arg value="--email-format=${ats.email.format}" />          <!--"Email Formatting. e.g. simplelogger" -->
       
  1211             <arg value="--email-subject=${ats.email.subject}" />        <!--"Email Subject. e.g. TDriver testing" -->
       
  1212             <arg value="--report-email=${ats.email.list}" /> 
       
  1213             <arg value="--ats4-enabled=${internal.ats4.enabled}" />
       
  1214         </exec>
       
  1215         <runtarget target="do-ats-test" />
       
  1216     </target>
  1032 
  1217 
  1033 </project>
  1218 </project>