diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-22 22:39:41 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-22 22:39:41 +0200 |
commit | 7c65b2f40ea9242260eac5a746863f5925423861 (patch) | |
tree | 6c516057baa4356fde43f8d79517571bc8f0bfa2 /tests/FunctionalTests/validators/tests | |
parent | 60c6bfa6f7caeb122cb8fa820506bdd1c54a842e (diff) |
Phing: added target for phpunit+selenium
Functional tests were using an old selenium RC version. Ported them to
use phpunit + selenium; next: opensauce
Diffstat (limited to 'tests/FunctionalTests/validators/tests')
15 files changed, 16 insertions, 52 deletions
diff --git a/tests/FunctionalTests/validators/tests/ButtonTestCase.php b/tests/FunctionalTests/validators/tests/ButtonTestCase.php index 99ebf4a4..58001322 100644..100755 --- a/tests/FunctionalTests/validators/tests/ButtonTestCase.php +++ b/tests/FunctionalTests/validators/tests/ButtonTestCase.php @@ -1,6 +1,6 @@ <?php -class ButtonTestCase extends SeleniumTestCase +class ButtonTestCase extends PradoGenericSeleniumTest { function test() { @@ -61,5 +61,3 @@ class ButtonTestCase extends SeleniumTestCase $this->verifyTextPresent('Button3 is clicked and valid'); } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/CheckBoxTestCase.php b/tests/FunctionalTests/validators/tests/CheckBoxTestCase.php index 957a7cbf..847cbc9a 100644..100755 --- a/tests/FunctionalTests/validators/tests/CheckBoxTestCase.php +++ b/tests/FunctionalTests/validators/tests/CheckBoxTestCase.php @@ -1,12 +1,9 @@ <?php -class CheckBoxTestCase extends SeleniumTestCase +class CheckBoxTestCase extends PradoGenericSeleniumTest { function test() { - //problem with test runner clicking on radio buttons - $this->skipBrowsers(self::OPERA); - $this->open('validators/index.php?page=CheckBox'); @@ -66,5 +63,3 @@ class CheckBoxTestCase extends SeleniumTestCase $this->verifyTextPresent('Button3 is clicked and valid'); } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php index 5a7dbc80..187351c1 100644..100755 --- a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php @@ -1,7 +1,7 @@ <?php //New Test -class CompareValidatorTestCase extends SeleniumTestCase +class CompareValidatorTestCase extends PradoGenericSeleniumTest { function test() { @@ -42,5 +42,3 @@ class CompareValidatorTestCase extends SeleniumTestCase } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/ConditionalValidationTestCase.php b/tests/FunctionalTests/validators/tests/ConditionalValidationTestCase.php index 0c0ffc51..02b174ef 100644..100755 --- a/tests/FunctionalTests/validators/tests/ConditionalValidationTestCase.php +++ b/tests/FunctionalTests/validators/tests/ConditionalValidationTestCase.php @@ -1,6 +1,6 @@ <?php -class ConditionalValidationTestCase extends SeleniumTestCase +class ConditionalValidationTestCase extends PradoGenericSeleniumTest { function test() { @@ -52,4 +52,3 @@ class ConditionalValidationTestCase extends SeleniumTestCase } -?> diff --git a/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php b/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php index c5cbae8e..106f7a00 100644..100755 --- a/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/CustomValidatorTestCase.php @@ -1,7 +1,7 @@ <?php //New Test -class CustomValidatorTestCase extends SeleniumTestCase +class CustomValidatorTestCase extends PradoGenericSeleniumTest { function test() { @@ -27,5 +27,3 @@ class CustomValidatorTestCase extends SeleniumTestCase } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php index c7c4bdb6..5ec5f065 100644..100755 --- a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php @@ -3,7 +3,7 @@ * Created on 25/04/2006 */ -class DataTypeValidatorTestCase extends SeleniumTestCase +class DataTypeValidatorTestCase extends PradoGenericSeleniumTest { function test() { @@ -46,4 +46,3 @@ class DataTypeValidatorTestCase extends SeleniumTestCase } -?> diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php index 12368448..e7425a33 100644..100755 --- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php +++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php @@ -1,6 +1,6 @@ <?php -class DatePickerTestCase extends SeleniumTestCase +class DatePickerTestCase extends PradoGenericSeleniumTest { function test() { @@ -69,4 +69,3 @@ class DatePickerTestCase extends SeleniumTestCase } -?> diff --git a/tests/FunctionalTests/validators/tests/ImageButtonTestCase.php b/tests/FunctionalTests/validators/tests/ImageButtonTestCase.php index a83c4f89..e6b5d6d8 100644..100755 --- a/tests/FunctionalTests/validators/tests/ImageButtonTestCase.php +++ b/tests/FunctionalTests/validators/tests/ImageButtonTestCase.php @@ -1,6 +1,6 @@ <?php -class ImageButtonTestCase extends SeleniumTestCase +class ImageButtonTestCase extends PradoGenericSeleniumTest { function test() { @@ -61,5 +61,3 @@ class ImageButtonTestCase extends SeleniumTestCase $this->verifyTextPresent('Button3 is clicked and valid'); } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/LinkButtonTestCase.php b/tests/FunctionalTests/validators/tests/LinkButtonTestCase.php index fa9508fb..b523452c 100644..100755 --- a/tests/FunctionalTests/validators/tests/LinkButtonTestCase.php +++ b/tests/FunctionalTests/validators/tests/LinkButtonTestCase.php @@ -1,6 +1,6 @@ <?php -class LinkButtonTestCase extends SeleniumTestCase +class LinkButtonTestCase extends PradoGenericSeleniumTest { function test() { @@ -60,5 +60,3 @@ class LinkButtonTestCase extends SeleniumTestCase $this->verifyTextPresent('Button3 is clicked and valid'); } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/ListControlTestCase.php b/tests/FunctionalTests/validators/tests/ListControlTestCase.php index e4281794..68feee84 100644..100755 --- a/tests/FunctionalTests/validators/tests/ListControlTestCase.php +++ b/tests/FunctionalTests/validators/tests/ListControlTestCase.php @@ -3,13 +3,10 @@ * Created on 24/04/2006 */ -class ListControlTestCase extends SeleniumTestCase +class ListControlTestCase extends PradoGenericSeleniumTest { function test() { - //problem with test runner clicking on radio buttons - $this->skipBrowsers(self::OPERA); - $base = "ctl0_Content_"; $this->open("validators/index.php?page=ListControl", ""); $this->verifyTextPresent("List Control Required Field Validation Test", ""); @@ -48,4 +45,3 @@ class ListControlTestCase extends SeleniumTestCase } -?> diff --git a/tests/FunctionalTests/validators/tests/RangeValidatorTestCase.php b/tests/FunctionalTests/validators/tests/RangeValidatorTestCase.php index 31ad6c23..022ee7f6 100644..100755 --- a/tests/FunctionalTests/validators/tests/RangeValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/RangeValidatorTestCase.php @@ -1,7 +1,7 @@ <?php //New Test -class RangeValidatorTestCase extends SeleniumTestCase +class RangeValidatorTestCase extends PradoGenericSeleniumTest { function testIntegerRange() { @@ -164,4 +164,3 @@ class RangeValidatorTestCase extends SeleniumTestCase } } -?> diff --git a/tests/FunctionalTests/validators/tests/RegExpValidatorTestCase.php b/tests/FunctionalTests/validators/tests/RegExpValidatorTestCase.php index 40719cf3..f269bf3b 100644..100755 --- a/tests/FunctionalTests/validators/tests/RegExpValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/RegExpValidatorTestCase.php @@ -1,7 +1,7 @@ <?php //New Test -class RegExpValidatorTestCase extends SeleniumTestCase +class RegExpValidatorTestCase extends PradoGenericSeleniumTest { function test() { @@ -30,5 +30,3 @@ class RegExpValidatorTestCase extends SeleniumTestCase } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php b/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php index 69765238..f8b54eb0 100644..100755 --- a/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php +++ b/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php @@ -1,12 +1,9 @@ <?php -class RequiredFieldTestCase extends SeleniumTestCase +class RequiredFieldTestCase extends PradoGenericSeleniumTest { function test() { - //problem with test runner clicking on radio buttons - $this->skipBrowsers(self::OPERA); - $base = "ctl0_Content_"; $this->open("validators/index.php?page=RequiredFieldValidator"); $this->assertTextPresent("RequiredFieldValidator Tests"); @@ -86,5 +83,4 @@ class RequiredFieldTestCase extends SeleniumTestCase $this->pause(250); $this->assertNotVisible("{$base}validator9"); } -} -?>
\ No newline at end of file +}
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php index 2151e492..2662c721 100644..100755 --- a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php +++ b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php @@ -1,13 +1,10 @@ <?php -class RequiredListTestCase extends SeleniumTestCase +class RequiredListTestCase extends PradoGenericSeleniumTest { function test() { - //problem with test runner clicking on radio buttons - $this->skipBrowsers(self::OPERA); - $base = "ctl0_Content_"; $this->open("validators/index.php?page=RequiredListValidator"); $this->click("{$base}submit1"); @@ -39,5 +36,3 @@ class RequiredListTestCase extends SeleniumTestCase $this->assertNotVisible("{$base}validator3"); } } - -?>
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php b/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php index 802392ac..7dc1d6b1 100644..100755 --- a/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php +++ b/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php @@ -1,7 +1,7 @@ <?php //New Test -class ValidationSummaryTestCase extends SeleniumTestCase +class ValidationSummaryTestCase extends PradoGenericSeleniumTest { function test() { @@ -46,5 +46,3 @@ class ValidationSummaryTestCase extends SeleniumTestCase */ } } - -?>
\ No newline at end of file |