Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

parsing soapui project file

hello,
I am trying to maintain test cases, descriptions by storing them in a database. I have a table in the database which has the following fields.

1. ProjectName
2. TestSuite
3. TestCaseName
4. TestCase Description

I wanted to parse through the soapui project XML file and extract the information and put it into the database.

I have everything setup on the database (schema, stored procs etc). I just need to make a call via my program(C# code) that will pass these values to the stored proc.

I have limited experience with XML and was having some trouble understanding the XML structure of the project files. Can you provide me some java/C#/pseudo code that will basically show how to navigate the XML file to extract the things I have listed above.

Thanks

Ali

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    sorry for the delay. The information you are after is structured as follows:


     
           
                ..

    All in the http://eviware.com/soapui/config namespace. I've attached the xml-schema for the entire project file, maybe you can open it in some graphical editor to get an overview.

    Hope this helps!

    regards,

    /Ole
    eviware.com