Forum Discussion

gsugunan's avatar
gsugunan
Occasional Contributor
15 years ago

data driven testing using a properties file

Hi, I think this is a simple issue, but if your soap message contains a complex type(like what follows)
<containertype>
<childtype/>
<childtype2/>
</containertype>
how do we do data driven testing using a properties file (or is it possible at all)
i.e., I know how the pipes work for multiple instances of the containertype, but I want a properties file as input, and it needs to take multiple instances of childtype and childtype2, which are contained within multiple containertypes

3 Replies

  • gsugunan's avatar
    gsugunan
    Occasional Contributor
    just to clarify my earlier post:
    assuming properties contains:
    val1                val2
    test1|test2 test3|test4


    and the soap contains
    <containertype>
    <childtype>ref:val1</childtype>
    <childtype2>ref:val2</childtype>
    </containertype>


    then i'd get
    <containertype>
    <childtype>test1</childtype>
    <childtype>test2</childtype>
    <childtype2>test3</childtype2>
    <childtype2>test4</childtype2>
    </containertype>


    while what I want is:
    <containertype>
    <childtype>test1</childtype>
    <childtype2>test3</childtype>
    </containertype>

    <containertype>
    <childtype>test2</childtype>
    <childtype2>test4</childtype>
    </containertype>


    the only way I see of doing it right now is the following:
    properties contains:
    val1
    <childtype>test1</childtype><childtype2>test3</childtype>|<childtype>test2</childtype><childtype2>test4</childtype>


    soap contains:
    <containertype>ref:val1</containertype>


    unfortunately that solution makes absurd entries in properties, so is there an easier way?
  • Hi,

    I made a new topic for you since you wrote the two above posts in the sticky Looking for support? topic, which is clearly not a topic made for posting your issues in. Please create a new topic next time.

    /Henrik
    eviware
  • gsugunan's avatar
    gsugunan
    Occasional Contributor
    Sorry, there was another issue in the post as well, I thought that was what it was for.