Forum Discussion

Pepus's avatar
Pepus
New Contributor
15 years ago

How to record POST request in Web Test Case

Hi.
I'm using SOAPUI 3.6.1 and I'm trying to record some web session via "Record HTTP traffic" option avaliable in Web Test Case. Hovewer I found out some issue during recording POST requests.
Scenario:
1) Create a new Web Test Case and start recording http session
2) Get some main page (GET http://<my_server>/my_page). This test step was recorded right.
3) Fill up fields "Login" and "Password" which are avaliable on my_page and submit action.

ISSUE:
In this case browser send POST request and server respond with 302 code, then browser want to take download new page and sent GET request
But in SOAPUI I see only GET request (this after submiting credentails). POST request wasn't recorded so I don't have any possibility to change entered credentials or even repeat my scenario again.

Has anyone met the same problem or know how to resolve abobe problem?

Regards,
Piotr

PS. IF I put wrong credentials on logging page and server not respond with 302 code (in my case 200) then POST request will be recorded as separate step
No RepliesBe the first to reply