From 785b52882db3f0da54b98bfa44d39c6e618a4baf Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 25 Aug 2012 14:39:03 +0000 Subject: [PATCH] adding initial first test-case and test-suite for AlternC using Selenium IDE / Selenium Server --- .gitattributes | 3 + .../20120826-alternc-panel-testsuite.html | 14 + selenium/README | 9 + selenium/alternc.domain-local-mail-tld.html | 272 ++++++++++++++++++ 4 files changed, 298 insertions(+) create mode 100644 selenium/20120826-alternc-panel-testsuite.html create mode 100644 selenium/README create mode 100644 selenium/alternc.domain-local-mail-tld.html diff --git a/.gitattributes b/.gitattributes index 7ea09f21..f3783952 100644 --- a/.gitattributes +++ b/.gitattributes @@ -513,6 +513,9 @@ po/fr/LC_MESSAGES/alternc-admintools.po -text /quota_delete -text /quota_init -text /repos-to-tx.sh -text +selenium/20120826-alternc-panel-testsuite.html -text +selenium/README -text +selenium/alternc.domain-local-mail-tld.html -text src/Makefile -text src/alternc-check -text src/alternc-dboptimize -text diff --git a/selenium/20120826-alternc-panel-testsuite.html b/selenium/20120826-alternc-panel-testsuite.html new file mode 100644 index 00000000..c76abf01 --- /dev/null +++ b/selenium/20120826-alternc-panel-testsuite.html @@ -0,0 +1,14 @@ + + + + + + Test Suite + + + + + +
Test Suite
alternc.domain-local-mail-tld
+ + diff --git a/selenium/README b/selenium/README new file mode 100644 index 00000000..98e611fd --- /dev/null +++ b/selenium/README @@ -0,0 +1,9 @@ +The following files are selenium test suites + +the -*.html files are complete test suites +the *.html files are individual tests. + +use Selenium IDE and Selenium Server to manage / run those tests. + +The AlternC's panel is supposed to run at http://ac.local/ + diff --git a/selenium/alternc.domain-local-mail-tld.html b/selenium/alternc.domain-local-mail-tld.html new file mode 100644 index 00000000..22d5bbf4 --- /dev/null +++ b/selenium/alternc.domain-local-mail-tld.html @@ -0,0 +1,272 @@ + + + + + + +alternc.domain-local-mail-tld + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
alternc.domain-local-mail-tld
open/
verifyTextPresentTo connect to the hosting control panel
typeid=usernameadmin
typeid=passwordadmin
clickAndWaitname=submit
verifyTextPresentLast Login:
clickAndWaitlink=Add a domain
clickAndWait//div[@id='menu-adm']/ul/li[3]/a/span
clickAndWaitlink=Manage allowed domains (TLD)
clickAndWaitxpath=(//a[contains(text(),'Add a new TLD')])[2]
typeid=tldlocal
selectid=modelabel=Domain can be installed, no check at all
clickAndWaitcss=input.inb
verifyTextPresentThe TLD has been successfully added
clickAndWaitlink=Add a domain
verifyTextPresenthost my dns here
typeid=newdomainalternc.local
clickAndWaitname=submit
verifyTextPresent Your new domain alternc.local has been successfully installed
clickAndWaitlink=Click here to continue
pausewaitTime=5000
clickAndWait//div[@id='menu-mail']/ul/li/a
verifyTextPresentCreate a new mail account
typeid=mail_argtest
clickAndWaitname=submit
verifyTextPresentEditing the email test@alternc.local
clickid=islocal1
typeid=passtest
typeid=passconftest
clickAndWaitname=submit
verifyTextPresentThe password policy prevents you to use your login name inside your password
typeid=passCoinCoin
typeid=passconfCoinCoin
typeid=quotamb10
typeid=recipientstest2@alternc.local
clickAndWaitname=submit
verifyTextPresentYour email has been edited successfully
verifyTextPresenttest2@alternc.local
clickAndWaitlink=alternc.local
clickAndWaitname=detruire
verifyTextPresentConfirm the deletion of domain alternc.local
clickAndWaitname=submit
verifyTextPresent The domain alternc.local has been successfully deleted.
clickAndWaitlink=Click here to continue
clickAndWait//div[@id='menu-adm']/ul/li[3]/a/span
clickAndWaitlink=Manage allowed domains (TLD)
clickid=sel10
clickAndWait//input[@value='Delete the checked TLD']
verifyTextPresentThe requested TLD has been deleted
clickAndWaitlink=Home / Information
verifyTextPresentAccount admin
+ +