Forum Discussion

Kathryn_O_Malle's avatar
Kathryn_O_Malle
Contributor
15 years ago

Testcase exiting before response received to submitted message SOAP Test Request

Hi,

I've set up a controlling testcase (TC:Master) that calls a slave testcase (TC:Slave). In TC:Slave the final step is a SOAP Test Request test that submits the XML message that has been generated. There is an assertion on this step to check that a "Receipt: Message Okay" response has been received.

The glitch I've hit is that TC:Slave completes and returns control to TC:Master before the "Recipt: Message Okay" message is received and the assertion can be checked.

Is there a way I can stop TC:Slave from exiting before the "Receipt: Message Okay" message is received?

Many thanks...
Adam

3 Replies

  • Hi Adam,

    hm... how exactly are you calling the slave testcase from the master?

    regards,

    /Ole
    eviware.com
  • Hi there,

    I've added a "Run TestCase" step to the master testcase...

    Bizarely I've also tried recreating it again today and can't. Perhaps was some strange test system performance issue in this instance...
    Generically do I need to add an extra code to ensure the step does not complete until it gets the receipt message or is this automatic? Thanks.

    Kind regards
    Adam
  • Hi Adam,

    no, you should not have to do anything special; a request-teststep does not finish before it has received its response, so the containing testcase shouldn't finish either.. let us know if it happens again and keep an eye on the error log.

    regards!

    /Ole
    eviware.com