HTTP Listeners

Hello!
Lets imagine, that user fills web-form, click on “Submit” and then we have 2 options:
1. Object is going to be send via POST-request at specified URL
2. Object is not going to be send

I have to check, whether the object had been sent to server or not.

Is there are any possibility to use or write some kind of “listener” that could verify if this URL receive a POST request or not?

hello,
what is manifestation of sending/not_sending object? can’t you check that?

Andrej Podhajský said:

hello,
what is manifestation of sending/not_sending object? can’t you check that?

I can, but it will not be 100% for sure

Anyway could I check if specified URL received POST request? (Or check, if request had been send)

you will need to have some kind of proxy to check - written by you or using browser in logging mode
take a look here:

btw. can you post why is system under test so nondeterministic?

Andrej Podhajský said:

you will need to have some kind of proxy to check - written by you or using browser in logging mode
take a look here:
https://stackoverflow.com/questions/6509628/how-to-get-http-response-code-using-selenium-webdriver

Oh thanks, I’d think about that, but decided that it is too complicated

Anyway I decided to make my test little bit different