buildframework/helium/sf/java/legacy/tests/antunit/test_rebaseline_task.ant.xml
author wbernard
Tue, 27 Apr 2010 08:33:08 +0300
changeset 587 85df38eb4012
permissions -rw-r--r--
helium_9.0-a7879c935424
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
<!-- 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Name        : test_rebaseline_task.ant.xml 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
<project name="test_rebaseline_task" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
        Rebaseline testing targets for script rebaseline.pl
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    </description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    <property environment="env"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <taskdef resource="com/nokia/ant/antlib.xml" uri="http://www.nokia.com/helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <target name="test-rebaseline-no-arguments-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
            <hlm:rebaseline/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
    <target name="test-rebaseline-task-database-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
            <hlm:rebaseline database="to1tobet"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
        <au:assertLogContains text="Set database to to1tobet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
    <target name="test-rebaseline-task-ccmproject-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
            <hlm:rebaseline ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
        <au:assertLogContains text="Set ccmProject to helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    <target name="test-rebaseline-task-password-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
            <hlm:rebaseline password="test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
        <au:assertLogContains text="Set password to ******" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
    <target name="test-rebaseline-task-release-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
            <hlm:rebaseline release="tony/test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        <au:assertLogContains text="Set release to tony/test" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
    <target name="test-rebaseline-task-baseline-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
            <hlm:rebaseline baseline="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
        <au:assertLogContains text="Set baseline to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
    <target name="test-rebaseline-task-version-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
            <hlm:rebaseline version="RnD_2007wk49"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <au:assertLogContains text="Set version to RnD_2007wk49" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
    <target name="test-rebaseline-task-releasebaseline-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
            <hlm:rebaseline releaseBaseline="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
        <au:assertLogContains text="Set releaseBaseline to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
    <target name="test-rebaseline-task-leavefolders-writable-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
            <hlm:rebaseline leaveFoldersWritable="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
        <au:assertLogContains text="Set leaveFoldersWritable to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
    <target name="test-rebaseline-task-disable-taskrebadging-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
            <hlm:rebaseline disableTaskRebadging="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
        <au:assertLogContains text="Set disableTaskRebadging to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
    <target name="test-rebaseline-task-rebadgeobjectversions-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
            <hlm:rebaseline rebadgeObjectVersions="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
        <au:assertLogContains text="Set rebadgeObjectVersions to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
    <target name="test-rebaseline-task-newbaselineName-set-to-quiet-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
            <hlm:rebaseline newBaselineName="shoephone-RnD_2007wk49_01project:co1train#1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
        <au:assertLogContains text="Set newBaselineName to shoephone-RnD_2007wk49_01project:co1train#1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
    <target name="test-rebaseline-task-usebranchrelease-methodology-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
            <hlm:rebaseline useBranchReleaseMethodology="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
        <au:assertLogContains text="Set useBranchReleaseMethodology to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
    <target name="test-rebaseline-task-create-baseline-for-rollingreleasetag-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
            <hlm:rebaseline createBaselineForRollingReleaseTag="yes"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
        <au:assertLogContains text="Set createBaselineForRollingReleaseTag to true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
    <target name="test-rebaseline-task-verbosity-set-to-quiet-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
            <hlm:rebaseline verbosity="0"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
        <au:assertLogContains text="Set verbosity to 0" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
    <target name="test-rebaseline-task-verbosity-set-to-verbose-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database password ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
            <hlm:rebaseline verbosity="1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
        <au:assertLogContains text="Set verbosity to 1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
    <target name="test-rebaseline-task-database-and-ccmproject-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - password">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
            <hlm:rebaseline database="to1tobet" ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
    <target name="test-rebaseline-task-database-and-password-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - ccmProject">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
            <hlm:rebaseline database="to1tobet" password="test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
    <target name="test-rebaseline-task-ccmproject-and-password-set-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: mandatory attributes are not defined - database">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
            <hlm:rebaseline ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
    <target name="test-rebaseline-task-all-mandatory-arguments-given-but-password-wrong-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: Script execution failure.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
            <hlm:rebaseline database="to1tobet" ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
        <au:assertLogContains text="Set database to to1tobet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
        <au:assertLogContains text="Set ccmProject to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
        <au:assertLogContains text="Set password to ******"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
    <target name="test-rebaseline-task-all-mandatory-arguments-and-optional-arguments-given-but-password-wrong-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: Script execution failure.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
            <hlm:rebaseline database="to1tobet" ccmProject="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" password="test" verbosity="1"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
        <au:assertLogContains text="Set database to to1tobet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
        <au:assertLogContains text="Set ccmProject to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
        <au:assertLogContains text="Set password to ******" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
        <au:assertLogContains text="Set verbosity to 1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
    <target name="test-rebaseline-task-all-mandatory-arguments-and-optional-arguments-given-but-password-wrong-and-verbosity-wrong-case">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
        <au:expectfailure expectedMessage="[hlm:rebaseline] Error: Verbosity level is not recognised. Legal values are: 0 - quiet, 1 - verbose.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
            <hlm:rebaseline database="to1tobet" ccmProject="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" password="test" verbosity="9"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
        <au:assertLogContains text="Set database to to1tobet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
        <au:assertLogContains text="Set ccmProject to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
        <au:assertLogContains text="Set password to ******" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
        <au:assertLogContains text="Set verbosity to 9" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
</project>