Search code examples
phpjavascriptfirefoxinternet-explorersimpletest

is there a way to trigger an IE window to open from firefox browser using php and javascript?


i am using simpletest as my php unit test framework.

i put all my test cases into a single all_tests.php file

however, because of the tendency of our developers to use firefox to run the all_tests.php, we tend to miss out on fail cases that are browser specific, especially ie7.

is there a way that when somebody browse our all_tests.php in firefox, it will trigger automatically an ie window to open for the same page?


Solution

  • write command batch file that opens all the windows.

    @echo off
    set URL="http://example.com/"
    cd "C:\Program Files\Internet Explorer"
    iexplore %URL%
    cd "C:\Program Files\Mozilla Firefox"
    firefox %URL%