0

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 ?

2 Answers 2

4

I think Selenium Remote Control is one of the most popular names in the field of web interface testing. See for example this question.

1

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
1
  • thanks for the input, but i prefer pekka's suggestion. it's saving time ;)
    – justjoe
    Apr 5, 2010 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.