Auto-generating BizUnit Test Cases#

This post follows on from yesterday's post: Creating BizUnit Test Cases for comparing Xml Files

If you are using the XmlValidationStep/XmlValidationStepEx BizUnit steps and using XPath validation, then it can be a pain to write all these XPathValidation statements by hand.

So I wrote a utility to generate the XPath statements for you.
In fact, it generates the entire BizUnit Test Case for validating an Xml file.
Once it has been generated, all you have to do is:

a. Change the location to copy input files and look for output files (or change completely if not using the File adapter)
b. Change the location/namespace of the Xsd file (if performing validation)
c. Edit the list of XPath statements to remove any which are not necessary.

Generating a Test Case can be performed:

  1. From the GUI (which will set the schema location in the Test Case if you have validated against that schema in the GUI)
  2. From the command line (useful for batch files and scripts)
  3. By right-clicking on an Xml file and choosing Generate BizUnit Test Case (assuming you have installed the reg file):

The utility (and installation/help files) can be found here:
DanSharp XmlViewer

Note: I also have a suggestion for an improved version of XmlValidationStep – you can find this here:
BizUnit: XmlValidationStep using .NET 2.0 Schema Validation

This new version combines XmlValidationStep and XmlValidationStepEx into a single step, allows you to not specify a namespace for the schema in the Test Case, and uses the newer .NET 2.0 XmlReaderSettings mechanism for validating schemas. I compile it into my own utility assembly and then refer to it from a BizUnit TestCase via the assemblyPath attribute.

Tuesday, November 27, 2007 5:59:18 PM (GMT Standard Time, UTC+00:00) #    Comments [1]  |  Trackback Tracked by:
http://www.google.com/search?q=zermqxmv [Pingback]
http://www.wintec.ac.nz/index.asp?PageID=2145828103 [Pingback]
http://www.wintec.ac.nz/index.asp?PageID=2145828129 [Pingback]
http://www.landandfarm.com/lf/news/display_article.asp?cid=680 [Pingback]
http://www.xbrl.org/us/nmpxbrl.aspx?id=236 [Pingback]
http://www.wintec.ac.nz/index.asp?PageID=2145828140 [Pingback]
http://www.stockroom.com/sandm/product1.aspx?product_id=690893 [Pingback]
http://www.stockroom.com/sandm/product1.aspx?product_id=562731 [Pingback]
http://www.ovt.com/products/part_detail.asp?id=173 [Pingback]
http://www.ovt.com/products/part_detail.asp?id=147 [Pingback]
http://www.datcp.state.wi.us/press_release/result.jsp?prid=2072 [Pingback]
http://www.landandfarm.com/lf/news/display_article.asp?cid=694 [Pingback]
http://www.datcp.state.wi.us/press_release/result.jsp?prid=2069 [Pingback]
http://www.stockroom.com/sandm/product1.aspx?product_id=617943 [Pingback]
http://www.photospin.com/free_tips.asp?archiveID=187 [Pingback]
"http://yesihavemoneyy.com" (http://yesihavemoneyy.com) [Pingback]
"http://tubepornoss.com" (http://tubepornoss.com) [Pingback]
"http://morningside.edu/mics/_notes/pages/celebrex/index.html" (http://morningsi... [Pingback]
"http://blastpr.com/wiki/js/pages/effexor/index.html" (http://blastpr.com/wiki/j... [Pingback]
"http://blastpr.com/wiki/js/pages/clomid/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://morningside.edu/mics/_notes/pages/paxil/index.html" (http://morningside.... [Pingback]
"http://morningside.edu/mics/_notes/pages/synthroid/index.html" (http://mornings... [Pingback]
"http://blastpr.com/wiki/js/pages/hoodia/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://blastpr.com/wiki/js/pages/celebrex/index.html" (http://blastpr.com/wiki/... [Pingback]
"http://morningside.edu/mics/_notes/pages/lipitor/index.html" (http://morningsid... [Pingback]
"http://morningside.edu/mics/_notes/pages/nexium/index.html" (http://morningside... [Pingback]
"http://morningside.edu/mics/_notes/pages/viagra/index.html" (http://morningside... [Pingback]
"http://blastpr.com/wiki/js/pages/soma/index.html" (http://blastpr.com/wiki/js/p... [Pingback]
"http://morningside.edu/mics/_notes/pages/lexapro/index.html" (http://morningsid... [Pingback]
"http://blastpr.com/wiki/js/pages/ultram/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://morningside.edu/mics/_notes/pages/hoodia/index.html" (http://morningside... [Pingback]
"http://blastpr.com/wiki/js/pages/cialis/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://morningside.edu/mics/_notes/pages/coumadin/index.html" (http://morningsi... [Pingback]
"http://blastpr.com/wiki/js/pages/nexium/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://morningside.edu/mics/_notes/pages/effexor/index.html" (http://morningsid... [Pingback]
"http://blastpr.com/wiki/js/pages/celexa/index.html" (http://blastpr.com/wiki/js... [Pingback]
"http://blastpr.com/wiki/js/pages/claritin/index.html" (http://blastpr.com/wiki/... [Pingback]
"http://blastpr.com/wiki/js/pages/cymbalta/index.html" (http://blastpr.com/wiki/... [Pingback]
"http://morningside.edu/mics/_notes/pages/accutane/index.html" (http://morningsi... [Pingback]
"http://morningside.edu/mics/_notes/pages/ultram/index.html" (http://morningside... [Pingback]
"http://blastpr.com/wiki/js/pages/tramadol/index.html" (http://blastpr.com/wiki/... [Pingback]
"http://blastpr.com/wiki/js/pages/synthroid/index.html" (http://blastpr.com/wiki... [Pingback]
"http://morningside.edu/mics/_notes/pages/cymbalta/index.html" (http://morningsi... [Pingback]
"http://blastpr.com/wiki/js/pages/wellbutrin/index.html" (http://blastpr.com/wik... [Pingback]
"http://morningside.edu/mics/_notes/pages/celexa/index.html" (http://morningside... [Pingback]

 

All content © 2020, Daniel Probert
On this page
This site
Calendar
<January 2020>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 2.3.12105.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: