ovidiu 02/04/03 13:24:20 Added: src/scratchpad/schecoon/tests/anteater calc.xml Log: Added. Revision Changes Path 1.1 xml-cocoon2/src/scratchpad/schecoon/tests/anteater/calc.xml Index: calc.xml =================================================================== <?xml version="1.0" encoding="utf-8"?> <project name="calc-test" default="test"> <taskdef resource="META-INF/Anteater.tasks"/> <property name="schecoon" value="http://localhost:8090/schecoon"/> <target name="calc.js"> <http description="Test the 'calc' JavaScript implementation"> <httpRequest href="${schecoon}/calc/"> <match> <xpath select="html/form/@action" assign="cont1"/> </match> </httpRequest> <httpRequest href="${schecoon}/calc/${cont1}"> <parameter name="a" value="1"/> <match> <xpath select="html/form/@action" assign="cont2"/> </match> </httpRequest> <httpRequest href="${schecoon}/calc/kont/${cont2}"> <parameter name="b" value="2"/> <match> <xpath select="html/form/@action" assign="cont3"/> </match> </httpRequest> <httpRequest href="${schecoon}/calc/kont/${cont3}"> <parameter name="operator" value="plus"/> <match> <xpath select="html/form/p[contains(text(),'Result')]/b" value="3.0" assign="result"/> </match> </httpRequest> <echo>result = ${result}</echo> </http> </target> <target name="test" depends="calc.js"/> </project>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]