RSS 2.0
 Tuesday, November 27, 2007

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
BizTalk General | BizUnit
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]
Tuesday, December 04, 2007 7:19:20 AM (GMT Standard Time, UTC+00:00)
Hi, as i posted in the codeplex forum, this looks realy cool. Re: the Xml Validation, i actually have got another utility class which is better aligned to the.net framework 2.0 and i plan to move it into the bizunit test steps to replace altova and the older xml validation.

cheers
benjy
Comments are closed.
Navigation
Archive
<July 2010>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author/Disclaimer

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

© Copyright 2010
Daniel Probert
Sign In
Statistics
Total Posts: 36
This Year: 0
This Month: 0
This Week: 0
Comments: 13
Themes
Pick a theme:
All Content © 2010, Daniel Probert
DasBlog theme 'Business' created by Christoph De Baene (delarou)