Find Jobs
Hire Freelancers

A framework for testing XML

$250-750 USD

Cancelado
Publicado hace casi 16 años

$250-750 USD

Pagado a la entrega
We need a framework that tests applications that produce XML as output. This project requires expertise in XML, xpath and xml schemas. A detailed spec is available. A simple test suite for a simple "hello world" application that uses this framework is shown below. The hello world application is an application that responds to hello command. This application can be run as hello sayhello This command generates the following output <XMLResponse status="200" statusText="OK" xmlns="http://xmlconsole.org/2008-04/pc"> <body> <Hello>XMLUnitTest</Hello> </body> </XMLResponse> This application has been compiled and the executable is placed in folder "Release" To be able to test this application using XMLUnitTest, the test cases must be defined and saved in a file. For this example, let's assume that the test case is helloworldtest.xml. For this example, let's assume that the desired test is checking whether the content of the "Hello" element is "XMLUnitTest". <TestCase name="helloworldtest" xmlns="http://xmlunittest.org/2008-06/testcase#"> <ActionSequence> <Action name="sayhello" > <Command path="Release/hello" args="sayhello"> <Asserts> <Assert method="Equal" check="/XMLResponse/body/Hello" value="XMLUnitTest" /> </Asserts> </Action> </ActionSequence> </TestCase> To run the testcase, the executable "xmlunittest" is used. xmlunittest -case [login to view URL] <XMLResponse status="200" statusText="OK" xmlns="http://xmlconsole.org/2008-04/pc"> <body> <TestCaseResult name="helloworldtest" passed="1" failed="0" skipped="0" xmlns="http://xmlunittest.org/2008-06/testcase#"> <ConfigurationResult name="default" passed="1" failed="0" skipped="0"> <ActionTestResults> <ActionTestResult name="sayhello" passed="1" failed="0" skipped="0"> <Command path="Release/hello" args="sayhello"> <AssertResults> <AssertResult status="passed" method="Equal" check="/XMLResponse/body/Hello"> <Expected>XMLUnitTest</Expected> <Actual>XMLUnitTest</Actual> </AssertResult> </AssertResults> </ActionTestResult> </ActionTestResults> </ConfigurationResult> <TestCaseResult> <body> </XMLResponse> This output indicates that the Assert statement has been evaluated and the executable "Release/hello" has behaved as expected and generated a Hello element that contains the the text node "XMLUnitTest".
ID del proyecto: 265395

Información sobre el proyecto

5 propuestas
Proyecto remoto
Activo hace 16 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de IRELAND
Belfast, Ireland
4,9
121
Forma de pago verificada
Miembro desde jul 29, 2007

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.