Can OpenSTA record radio buttons/check boxes ?
Would appreciate if you can confirm whether OpenSTA supports recording Radio Buttons and Check Boxes. If not can anyone please send me sample piece of self written code which can handle this ? We are in the last phase of the cycle and this radio button/check box cannot be bypassed as it hampers a very critical transaction.
Re: Can OpenSTA record radio buttons/check boxes ?
OpenSTA records http traffic. It has absolutely no idea what is happening with the UI. Usually, pressing a button or selecting a checkbox alters the parameters sent in a get or post. So, in a roundabout way, opensta does faithfully emulate the action, but lets be clear... OpenSTA does not, in any way, run a real browser or in any other way actually execute the UI or run any js. It makes the http server under test think it is running a UI by sending the appropriate requests.
To get a better idea of what I am talking about, use a tool like fiddler or firebug and watch the http requests being issued by your browser as it runs your app. When you click the radio button, do you see an http request at that very moment? If you do, then OpenSTA will record it. If not, then continue entering data and navigating the UI. Eventually you will do something (button press, navigating off the page, etc) which will trigger an HTTP request. Look at URL generated carefully if it is a GET. If it is a post, look at the body of the post. Odds are you will see some evidence that the button was pressed.