Extension tool to extract/set parameters from response does not work for soap client request?

ningyningy Posts: 8

I've been trying to use extension tool with groovy script to extract values from xml response and set the value at test suite level for next soap request to use. however this seems not working. I see the value gets set but value is not passing to the next soap call somehow. anyone has a clue?

Answers

  • benken_parasoftbenken_parasoft Posts: 664 ✭✭✭
    edited February 14

    How is your script extracting values? How does your script "set the value at test suite level"? How are you attempting to configure your next SOAP Client to use the value? Is there some reason why your are using scripting and not just using something else like XML Data Bank tool? Perhaps providing an example would help clarify things.

  • ningyningy Posts: 8
    edited February 14

    I'm using context.setValue("xxx", xxx) to set the variable value in my script and I see the variable value is set from logging. It's just not passed to my next soap call somehow. Here is the example for my next soap call trying to use the variable.

    <?xml version="1.0" encoding="UTF-8"?>
































  • benken_parasoftbenken_parasoft Posts: 664 ✭✭✭

    I'm using context.setValue("xxx", xxx)

    This would be setting a test suite variable with a particular name. The only thing I can recommend there would be to check for typos.

    It's just not passed to my next soap call somehow

    Can you describe how you are referencing that test suite variable in "next soap call"?

  • ningyningy Posts: 8

    It turned out to be a soatest issue and my lead is going to file a ticket for it.

  • benken_parasoftbenken_parasoft Posts: 664 ✭✭✭

    It turned out to be a soatest issue

    Referencing test suite variables does work. I'm not aware of any breakage in core functionality like this. So, it is hard to say what might be going wrong in your particular setup.

    my lead is going to file a ticket for it.

    Sounds good. Parasoft Support should help resolve this in a timely way for you.

Sign In or Register to comment.