SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Guest

    Data-driven tests using XML

    Has anyone tried storing the data needed for a data-driven testcase in an XML file? Almost all of our tests are data-driven, and the data is stored in SilkTest record format in a plain text file (e.g. {"data1","data2"}).

  2. #2
    Senior Member
    Join Date
    Jul 2002
    Location
    Paris (France)
    Posts
    182
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Data-driven tests using XML

    I have thought about writting a DLL for doing XML parsing using 4Test. But, have never gotten the time and don't have the real need to use it yet. I was planning to use Visual Basic to make the DLL. There are some XML parsing and creation routines for Visual Basic, so once that is done, it is just making a 4Test interface for it.

    Now who is going to make this thing?


  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Seattle, WA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Data-driven tests using XML

    what would be real nice is if support for COM in general were added to Silk. That way, one could use msxml.dll and tap directly into the xml document object model without going through VB or C++.

    I had an interest in doing this also, but no time to volunteer. any takers?

    ------------------
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR></BLOCKQUOTE>
    <BLOCKQUOTE]<font size=1 face=Verdana, Arial, Helvetica]quote:</font]<HR]It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR]</BLOCKQUOTE]

  4. #4
    Junior Member
    Join Date
    Jul 2000
    Location
    Chicago, IL USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Data-driven tests using XML

    In case you are interested in an XML parser and document generator, attached is an include file that I wrote. It is written completely in the 4test language and is based on an article that I downloaded from Segue(Even More on 4Test Constructors, Destructors, and Inheritance by John F. Sefler). I have not fully tested it and it also is very SLOW for large files. The speed may or may not be due to the way I had to overcome Segue's string limitation and probably because it is not written in C like the rest of the app, but please feel free to modify as you see fit. Also, there some funky kirks sometimes with adding an element to an element and then to another element. In practice, however, the parser and document generation appear to work. We have been using this to create our own XML results messaging.

    [This message has been edited by jjcantri (edited 03-20-2001).]

    [This message has been edited by jjcantri (edited 03-21-2001).]

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Data-driven tests using XML

    I'd like to see this but am unable to download it. Is there a trick?

  6. #6
    Junior Member
    Join Date
    Jul 2000
    Location
    Chicago, IL USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Data-driven tests using XML

    Try this one. One other note, the parser only works if the file is one continuous string

    [This message has been edited by jjcantri (edited 03-23-2001).]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:08 AM.

Copyright BetaSoft Inc.