<target name="dbinit_delete">
<sql
driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@192.168.100.1:1521:china"
userid="uni_app2"
password="ladodgers"
onfiltered="continue"
>
<transaction src="./sql/deleteTestOrderNoteData.sql"/> <!-- For Test Case TestUserLiveValidation -->
<transaction src="./sql/TestUserLiveValidationEnd.sql"/> <!-- For Test Case TestUserLiveValidation -->
<transaction src="./sql/deleteTestCreateInventoryData.sql"/> <!-- For Test Case TestCreateInventory -->
<transaction src="./sql/deleteTestPerformanceVenueData.sql"/> <!-- For Test Case TestPerformanceVenue -->
<transaction src="./sql/deleteTestPerformanceManifestData.sql"/> <!-- For Test Case TestPerformanceManifest -->
<transaction src="./sql/deleteTestPerformanceData.sql"/> <!-- For Test Case TestPerformance -->
<transaction src="./sql/deleteTestPerformancePriceCodeData.sql"/> <!-- For Test Case TestPerformancePriceCode -->
<classpath>
<path refid="lib.path"/>
</classpath>
</sql>
</target>
在我们的 build.xml 中,以下列顺序执行 target:
1。 cvs update code
2. call build.xml compile source code
3. call build.xml compile unit test source code
4. insert data to database .
5. run unit test
6. generate unit test report
7. run clover check unit test cover rate
8. generate unit test cover rate report
9. delete test data from data base
10. Email all report to PM and Leader . deploy these report base on web service .
文章来源于领测软件测试网 https://www.ltesting.net/