Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

James Robertson http://www.r0bertson.co.uk

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

A simple test case using Ruby and XML - Part III

This Ruby CGI script tests a class, by reading the testdata from an XML file, then outputs the result to the web browser. Refer to parts 1 http://urltea.com/1p7h [dzone.com], and II http://urltea.com/1p7m [dzone.com]

#file: test-feed.cgi

require 'test_feed'

puts "Content-Type: text/xml"
puts

puts "<test_report>"
tf = Test_feed.new()
puts tf.plan
puts "<actual>"
tf.print('create_file', tf.tested)
puts "</actual>"
puts "</test_report>"
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS