Forum Discussion

rubyCztx34's avatar
rubyCztx34
Senior Member
2 years ago

How to modify the response content of a TCP mock?

    I have created and run a tcp virtual service.Now,I hope the tcp mock
send different response。

the default response content is "responseMessage".

How to modify the response content through script?

1 Reply

  • Guigz's avatar
    Guigz
    Occasional Contributor

    I changed the "Keys" manipulation part for "if else" that click directly the chosen item separately instead of trying to do it dynamically. This might not be viable for combobox with a lot of items, but I only had 4 and it seem to work in my case. 

    • Guigz's avatar
      Guigz
      Occasional Contributor

      When I manually try to reproduce the steps, the window stay open as I would expect.

      • Guigz's avatar
        Guigz
        Occasional Contributor

        I just saw that before clicking the button I select an item from a combobox dropdown using the Keys("[Up]") and Keys("[Enter]"). If I don't do that part the window don't disappear, but I still need to do that part