Subversion Repositories SmartDukaan

Rev

Rev 1107 | Rev 1256 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1107 Rev 1196
Line 16... Line 16...
16
	<description>
16
	<description>
17
           Shop2020 Website
17
           Shop2020 Website
18
    </description>
18
    </description>
19
 
19
 
20
	<property file="build.properties"/>
20
	<property file="build.properties"/>
-
 
21
	<taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
21
 
22
 
22
	<filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
23
	<filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
23
		<file name="commons-codec-1.4/commons-codec-1.4.jar"/>
24
		<file name="commons-codec-1.4/commons-codec-1.4.jar"/>
24
		<file name="commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
25
		<file name="commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
25
		<file name="commons-digester-2.0/commons-digester-2.0.jar"/>
26
		<file name="commons-digester-2.0/commons-digester-2.0.jar"/>
Line 143... Line 144...
143
		</copy>
144
		</copy>
144
 
145
 
145
		<!--Join css files -->
146
		<!--Join css files -->
146
		<concat destfile="${build.home}/css/saholic.css">
147
		<concat destfile="${build.home}/css/saholic.css">
147
			<filelist dir="${build.home}/css" files="style.css,common.css,nav.css,widget.css,demoStyles.css,
148
			<filelist dir="${build.home}/css" files="style.css,common.css,nav.css,widget.css,demoStyles.css,
148
	        	widget.css,product.css,cart.css,myaccount.css,gc_safari.css"/>
149
	        	product.css,cart.css,myaccount.css,gc_safari.css"/>
149
		</concat>
150
		</concat>
150
		<!--Minify css files -->
151
		<!--Minify css files -->
151
		<apply executable="java" dest="${build.home}/css" parallel="false">
152
		<apply executable="java" dest="${build.home}/css" parallel="false">
152
			<filelist dir="${build.home}/css" files="saholic.css" />
153
			<filelist dir="${build.home}/css" files="saholic.css" />
153
			<arg line="-jar" />
154
			<arg line="-jar" />
Line 193... Line 194...
193
		<!-- Create application WAR file -->
194
		<!-- Create application WAR file -->
194
		<jar jarfile="${lib.home}/${app.name}.war"
195
		<jar jarfile="${lib.home}/${app.name}.war"
195
				basedir="${build.home}" />
196
				basedir="${build.home}" />
196
 
197
 
197
	</target>
198
	</target>
198
 
199
	
-
 
200
	<macrodef name="run-test">
-
 
201
	    <attribute name="test"/>
-
 
202
            <sequential>
-
 
203
            	<echo> ==========================</echo>
-
 
204
            	<echo> Running test "@{test}"</echo>
-
 
205
            	<echo> ==========================</echo>
-
 
206
            	<delete dir="${jmeter.home}/bin/samples/@{test}"/>
-
 
207
            	<mkdir dir="${jmeter.home}/bin/samples/@{test}"/>
-
 
208
            	<mkdir dir="/tmp/jmeter"/>
-
 
209
            	<jmeter jmeterhome="${jmeter.home}" resultlogdir="/tmp/jmeter">
-
 
210
            	    <testplans dir="${test.home}/jmeter" includes="@{test}.jmx"/>
-
 
211
            	</jmeter>
-
 
212
            	<exec executable="diff">
-
 
213
            	    <arg line="-r"/>
-
 
214
            		<arg line="--brief"/>
-
 
215
            		<arg line="${test.home}/samples/@{test}"/>
-
 
216
            		<arg line="${jmeter.home}/bin/samples/@{test}"/>
-
 
217
            	</exec>
-
 
218
		    </sequential>
-
 
219
	</macrodef>
199
 
220
 
-
 
221
	<target name="run-tests" >
-
 
222
		<record name="src/test/log/run-tests.log" action="start"/>
-
 
223
		<run-test test="home"/>
-
 
224
		<run-test test="searching"/>
-
 
225
		<run-test test="categorypage"/>
-
 
226
		<run-test test="register"/>
-
 
227
		<run-test test="login"/>
-
 
228
		<run-test test="product"/>
-
 
229
		<run-test test="cart"/>
-
 
230
		<run-test test="shipping"/>
-
 
231
		<run-test test="myaccount"/>
-
 
232
		<run-test test="forgotpass"/>
-
 
233
	</target>
200
 
234
	
-
 
235
	<target name="run-single-test">
-
 
236
		<record name="src/test/log/run-test-${test.name}.log" action="start"/>
-
 
237
		<run-test test="${test.name}"/>
201
 
238
	</target>
202
</project>
239
</project>
203
 
-
 
204
240