Reputation: 5564
this question is like this one, except it's for PHP testing via browser. It's about testing your form input.
Right now, i have a form on a single page. It has 12 input boxes. Every time i test the form, i have write those 12 input boxes in my browser.
i know it's not a specific coding question. This question is more about how to do direct testing on your form
So, how to do recursive testing without consuming too much of your time ?
Upvotes: 0
Views: 1466
Reputation: 56
If you don't want to use some big programs for test just one small form - you can use your own testing bike :)
$args = array(/* Your _POST params */)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); // Your local|remote url
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $args);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
// Parse the response here
// You may specify the loop with need args for your 12 checkboxes
Upvotes: 1
Reputation: 449485
I think Selenium Remote Control is one of the most popular names in the field of web interface testing. See for example this question.
Upvotes: 4