summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authortof <>2007-09-26 12:57:46 +0000
committertof <>2007-09-26 12:57:46 +0000
commit75293bddc7faea69021f5e29ac9e4df3f04c4f36 (patch)
tree1e7fdf2324844c45fb1fa96a99ed69142f4c1aa2 /tests/FunctionalTests/tickets/tests
parentf39661c02e0686848c01017fc51f1cd2ad714909 (diff)
Add test for ticket #671
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket671TestCase.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket671TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket671TestCase.php
new file mode 100644
index 00000000..866fc330
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket671TestCase.php
@@ -0,0 +1,42 @@
+<?php
+class Ticket671TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket671');
+ $this->assertTitle("Verifying Ticket 671");
+
+ $this->verifyNotVisible($base.'ctl0');
+ // Click submit
+ $this->click($base.'ctl1');
+ $this->pause(800);
+ $this->verifyText($base.'ctl0', 'Please Select Test 3');
+ $this->verifyVisible($base.'ctl0');
+ $this->select($base.'addl', 'Test 2');
+ $this->pause(800);
+ $this->verifyVisible($base.'ctl0');
+ $this->verifyText($base."lblResult", "You have selected 'Test 2'. But this is not valid !");
+ $this->select($base.'addl', 'Test 3');
+ $this->pause(800);
+ $this->verifyNotVisible($base.'ctl0');
+ $this->verifyText($base."lblResult", "You have selected 'Test 3'.");
+ $this->click($base.'ctl1');
+ $this->pause(800);
+ $this->verifyText($base."lblResult", "You have successfully validated the form");
+
+ $this->type($base.'testTextBox', 'test');
+ $this->pause(800);
+ $this->click($base.'ctl3');
+ $this->pause(800);
+ $this->verifyVisible($base.'ctl2');
+ $this->type($base.'testTextBox',"Prado");
+ $this->pause(800);
+ $this->click($base.'ctl3');
+ $this->pause(800);
+ $this->verifyNotVisible($base.'ctl2');
+ $this->verifyText($base.'lblResult2', 'Thanks !');
+ }
+
+}
+?> \ No newline at end of file