From: Siegfried G. <wd...@us...> - 2004-10-28 08:28:20
|
wdsgoe 04/10/28 01:28:09 Added: webtest/sample/webtest green_test.xml red_test.xml webtest.xml webtest/sample project.properties webtest/sample/webtest/config sample.properties webtest/sample/webtest/modules set.config.txt set.init.txt Log: Moved directory from "webtest" to "sample/webtest" Revision Changes Path 1.1 maven-plugins/webtest/sample/webtest/green_test.xml Index: green_test.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE project [ <!ENTITY init SYSTEM "modules/set.init.txt"> <!ENTITY config SYSTEM "modules/set.config.txt"> ]> <project name="Canoo Webtest Sample" basedir="." default="all"> <!-- Load configuration data from properties --> <property file="config/sample.properties"/> <!-- Initialize Canoo WebTest --> &init; <!-- | | Add additional targets here | --> <target name="all" > <antcall target="GreenTest"/> </target> <!-- | | Cruise around the Jakarta site (well, not too much) | --> <target name="GreenTest" > <testSpec name="GreenTest" > &config; <steps> <invoke stepid="Go to the JAKARTA home page" url="${green.url}"/> <verifytitle stepid="Check the title is parsed correctly" text="The Jakarta Site - The Jakarta Project -- Java Related Products" /> </steps> </testSpec> </target> </project> 1.1 maven-plugins/webtest/sample/webtest/red_test.xml Index: red_test.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE project [ <!ENTITY init SYSTEM "modules/set.init.txt"> <!ENTITY config SYSTEM "modules/set.config.txt"> ]> <project name="Canoo Webtest Sample" basedir="." default="all"> <!-- Load configuration data from properties --> <property file="config/sample.properties"/> <!-- Initialize Canoo WebTest --> &init; <!-- | | Add additional targets here | --> <target name="all" > <antcall target="RedTest"/> </target> <!-- | | Cruise around the Jakarta site (well, not too much) | --> <target name="RedTest" > <testSpec name="RedTest" > &config; <steps> <invoke stepid="Go to the JAKARTA home page" url="${red.url}" /> </steps> </testSpec> </target> </project> 1.1 maven-plugins/webtest/sample/webtest/webtest.xml Index: webtest.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1"?> <project name="Sample Master Test" basedir="." default="all"> <!-- | | Add additional targets here | --> <target name="all" > <ant antfile="green_test.xml" dir="."/> <ant antfile="red_test.xml" dir="."/> </target> </project> 1.1 maven-plugins/webtest/sample/project.properties Index: project.properties =================================================================== # Define here your regular expression for the test to be executes maven.webtest.file = webtest.xml # Defines the target to be executed maven.webtest.target = # Source directory of Canoo Webtest scripts maven.webtest.src = ${basedir}/webtest # Comma seperated list of JAR ids from project.xml to be included maven.webtest.jar.include = # Settings for invoking ANT (useful for debugging) # # -verbose ... be extra verbose # -quiet ..... be extra quit # -debug ..... print debugging information maven.webtest.ant.options = # Settings for Canoo Webtest Configuration maven.webtest.config.host = jakarta.apache.org maven.webtest.config.port = 80 maven.webtest.config.protocol = http maven.webtest.config.basepath = maven.webtest.config.summary = true maven.webtest.config.verbose = false maven.webtest.config.saveresponse = true maven.webtest.config.resultpath = ${basedir}/target/webtest # maven.webtest.config.resultfile = webtest-raw-report.xml maven.webtest.config.haltonfailure = false maven.webtest.config.haltonerror = false maven.webtest.config.showhtmlparseroutput = false 1.1 maven-plugins/webtest/sample/webtest/config/sample.properties Index: sample.properties =================================================================== green.url=index.html red.url=foo.html 1.1 maven-plugins/webtest/sample/webtest/modules/set.config.txt Index: set.config.txt =================================================================== <config host="${host}" port="${port}" protocol="${protocol}" basepath="${basepath}" summary="${summary}" saveresponse="${saveresponse}" resultpath="${resultpath}" resultfile="${resultfile}" haltonfailure="${haltonfailure}" haltonerror="${haltonerror}" showhtmlparseroutput="${showhtmlparseroutput}" autorefresh="${autorefresh}" /> 1.1 maven-plugins/webtest/sample/webtest/modules/set.init.txt Index: set.init.txt =================================================================== <!-- Adding the ANT taskdef --> <taskdef file="${webtest.home}/webtestTaskdefs.properties"> <classpath> <fileset dir="${webtest.home}"> <include name="lib/*.jar"/> <include name="lib/base/*.jar"/> </fileset> <pathelement path="${webtest.home}/lib"/> </classpath> </taskdef> |