diff --git a/tests/0-login.html b/tests/0-login.html new file mode 100644 index 00000000..4cdf7172 --- /dev/null +++ b/tests/0-login.html @@ -0,0 +1,47 @@ + + + + + + +Create database + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create database
open/phpMinAdmin/?lang=en&username=
verifyTextPresentLogged as
clickAndWaitlink=SQL command
typequeryDROP DATABASE IF EXISTS selenium
clickAndWait//input[@value='Execute']
verifyTextPresentQuery executed OK
+ + diff --git a/tests/1-create-database.html b/tests/1-create-database.html new file mode 100644 index 00000000..523bb3e4 --- /dev/null +++ b/tests/1-create-database.html @@ -0,0 +1,47 @@ + + + + + + +Create database + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create database
open/phpMinAdmin/
clickAndWaitlink=Create new database
typenameselenium
selectcollationlabel=utf8_general_ci
clickAndWait//input[@value='Save']
verifyTextPresentDatabase has been created.
+ + diff --git a/tests/10-clone.html b/tests/10-clone.html new file mode 100644 index 00000000..e3ace7d5 --- /dev/null +++ b/tests/10-clone.html @@ -0,0 +1,42 @@ + + + + + + +Clone + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Clone
open/phpMinAdmin/?db=selenium&select=albums
clickAndWaitlink=clone
typefields[album]Black and White
clickAndWait//input[@value='Save']
verifyTextPresentItem has been inserted.
+ + diff --git a/tests/11-reference.html b/tests/11-reference.html new file mode 100644 index 00000000..183fe9f3 --- /dev/null +++ b/tests/11-reference.html @@ -0,0 +1,32 @@ + + + + + + +Reference + + + + + + + + + + + + + + + + + + + + + + +
Reference
open/phpMinAdmin/?db=selenium&select=albums
clickAndWaitlink=1
verifyTextPresentMichael Jackson
+ + diff --git a/tests/12-update.html b/tests/12-update.html new file mode 100644 index 00000000..e561be01 --- /dev/null +++ b/tests/12-update.html @@ -0,0 +1,37 @@ + + + + + + +Update + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Update
open/phpMinAdmin/?db=selenium&edit=albums&where%5Bid%5D=2
typefields[album]Black or White
clickAndWait//input[@value='Save']
verifyTextPresentItem has been updated.
+ + diff --git a/tests/13-delete.html b/tests/13-delete.html new file mode 100644 index 00000000..b3b9db40 --- /dev/null +++ b/tests/13-delete.html @@ -0,0 +1,37 @@ + + + + + + +13-delete + + + + + + + + + + + + + + + + + + + + + + + + + + + +
13-delete
open/phpMinAdmin/?db=selenium&edit=albums&where%5Bid%5D=2
clickAndWaitdelete
assertConfirmationAre you sure?
verifyTextPresentItem has been deleted.
+ + diff --git a/tests/14-truncate.html b/tests/14-truncate.html new file mode 100644 index 00000000..0e3b1ad2 --- /dev/null +++ b/tests/14-truncate.html @@ -0,0 +1,42 @@ + + + + + + +Truncate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Truncate
open/phpMinAdmin/?db=selenium&select=albums
clickall
clickAndWaitdelete
assertConfirmationAre you sure?
verifyTextPresentNo rows.
+ + diff --git a/tests/15-privileges.html b/tests/15-privileges.html new file mode 100644 index 00000000..5ec8e2ae --- /dev/null +++ b/tests/15-privileges.html @@ -0,0 +1,137 @@ + + + + + + +Privileges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Privileges
open/phpMinAdmin/?user=
typeuserselenium
typeobjects[0]selenium.*
clickgrants[0][ALTER]
clickgrants[0][CREATE]
click//input[@name='grants[0][CREATE VIEW]']
clickgrants[0][DELETE]
clickgrants[0][DROP]
clickgrants[0][INDEX]
clickgrants[0][INSERT]
clickgrants[0][REFERENCES]
clickgrants[0][SELECT]
click//input[@name='grants[0][SHOW VIEW]']
clickgrants[0][TRIGGER]
clickgrants[0][UPDATE]
click//input[@name='grants[0][CREATE TEMPORARY TABLES]']
click//input[@name='grants[0][LOCK TABLES]']
click//input[@name='grants[0][CREATE ROUTINE]']
clickAndWait//input[@value='Save']
verifyTextPresentUser has been created.
clickAndWait//div[@id='content']/table/tbody/tr[td[2]='selenium']/td[1]/a
clickAndWaitdrop
assertConfirmationAre you sure?
verifyTextPresentUser has been dropped.
+ + diff --git a/tests/16-processlist.html b/tests/16-processlist.html new file mode 100644 index 00000000..3d57b3c7 --- /dev/null +++ b/tests/16-processlist.html @@ -0,0 +1,27 @@ + + + + + + +Process list + + + + + + + + + + + + + + + + + +
Process list
open/phpMinAdmin/?processlist=
verifyTextPresentSHOW PROCESSLIST
+ + diff --git a/tests/17-export.html b/tests/17-export.html new file mode 100644 index 00000000..4b2947e0 --- /dev/null +++ b/tests/17-export.html @@ -0,0 +1,47 @@ + + + + + + +Export + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Export
open/phpMinAdmin/?db=selenium&dump=
clickAndWait//input[@value='Export']
verifyTextPresentCREATE TABLE `interprets`
verifyTextPresentCREATE TRIGGER `albums_ai`
verifyTextPresentINSERT INTO `interprets`
verifyTextPresentVIEW `albums_interprets`
+ + diff --git a/tests/2-create-table.html b/tests/2-create-table.html new file mode 100644 index 00000000..2a070304 --- /dev/null +++ b/tests/2-create-table.html @@ -0,0 +1,82 @@ + + + + + + +Create table + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create table
open/phpMinAdmin/?db=selenium
clickAndWaitlink=Create new table
typenameinterprets
selectEnginelabel=InnoDB
typefields[1][field]id
selectfields[1][type]label=int
click//input[@name='auto_increment_col' and @value='1']
clickadd[1]
typefields[1.1][field]interpret
selectfields[1.1][type]label=varchar
typefields[1.1][length]50
clickAndWait//form[@id='form']/p[3]/input[2]
verifyTextPresentTable has been created.
+ + diff --git a/tests/3-create-index.html b/tests/3-create-index.html new file mode 100644 index 00000000..fa606814 --- /dev/null +++ b/tests/3-create-index.html @@ -0,0 +1,47 @@ + + + + + + +Create index + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create index
open/phpMinAdmin/?db=selenium&table=interprets
clickAndWaitlink=Alter indexes
selectindexes[1][type]label=INDEX
selectindexes[1][columns][1]label=interpret
clickAndWait//input[@value='Alter indexes']
verifyTextPresentIndexes has been altered.
+ + diff --git a/tests/4-create-table-2.html b/tests/4-create-table-2.html new file mode 100644 index 00000000..155e2a5c --- /dev/null +++ b/tests/4-create-table-2.html @@ -0,0 +1,92 @@ + + + + + + +Create table 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create table 2
open/phpMinAdmin/?db=selenium&table=interprets&lang=en
clickAndWaitlink=Create new table
typenamealbums
selectEnginelabel=InnoDB
typefields[1][field]id
selectfields[1][type]label=int
click//input[@name='auto_increment_col' and @value='1']
clickadd[1]
typefields[1.1][field]interpret
clickadd[1.1]
typefields[1.11][field]album
selectfields[1.11][type]label=varchar
typefields[1.11][length]50
clickAndWait//form[@id='form']/p[3]/input[2]
verifyTextPresentTable has been created.
+ + diff --git a/tests/5-foreign-key.html b/tests/5-foreign-key.html new file mode 100644 index 00000000..0f9d3666 --- /dev/null +++ b/tests/5-foreign-key.html @@ -0,0 +1,47 @@ + + + + + + +Foreign key + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Foreign key
open/phpMinAdmin/?db=selenium&table=albums
clickAndWaitlink=Add foreign key
selectAndWaittablelabel=interprets
selectsource[0]label=interpret
clickAndWait//input[@value='Save']
verifyTextPresentForeign key has been created.
+ + diff --git a/tests/6-alter-table.html b/tests/6-alter-table.html new file mode 100644 index 00000000..28c112a7 --- /dev/null +++ b/tests/6-alter-table.html @@ -0,0 +1,57 @@ + + + + + + +Alter table + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Alter table
open/phpMinAdmin/?db=selenium&table=interprets
clickAndWaitlink=Alter table
clickadd[2]
typefields[2.1][field]albums
selectfields[2.1][type]label=int
typefields[2.1][length]
clickAndWait//form[@id='form']/p[3]/input[2]
verifyTextPresentTable has been altered.
+ + diff --git a/tests/7-create-trigger.html b/tests/7-create-trigger.html new file mode 100644 index 00000000..99b10ab0 --- /dev/null +++ b/tests/7-create-trigger.html @@ -0,0 +1,42 @@ + + + + + + +Create trigger + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create trigger
open/phpMinAdmin/?db=selenium&trigger=albums
selectTiminglabel=AFTER
typeStatementUPDATE interprets SET albums = albums + 1 WHERE interpret = NEW.interpret
clickAndWait//input[@value='Save']
verifyTextPresentTrigger has been created.
+ + diff --git a/tests/8-create-view.html b/tests/8-create-view.html new file mode 100644 index 00000000..752ffcc0 --- /dev/null +++ b/tests/8-create-view.html @@ -0,0 +1,42 @@ + + + + + + +Create view + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create view
open/phpMinAdmin/?db=selenium&createv=
typeselectSELECT albums.id, albums.album, interprets.interpret
FROM albums
LEFT JOIN interprets ON albums.interpret = interprets.id
typenamealbums_interprets
clickAndWait//input[@value='Save']
verifyTextPresentView has been created.
+ + diff --git a/tests/9-insert.html b/tests/9-insert.html new file mode 100644 index 00000000..6f42a94f --- /dev/null +++ b/tests/9-insert.html @@ -0,0 +1,62 @@ + + + + + + +Insert + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Insert
open/phpMinAdmin/?db=selenium&edit=interprets
typefields[interpret]Michael Jackson
clickAndWait//input[@value='Save']
verifyTextPresentItem has been inserted.
open/phpMinAdmin/?db=selenium&edit=albums
typefields[interpret]1
typefields[album]Dangerous
clickAndWait//input[@value='Save']
verifyTextPresentItem has been inserted.
+ + diff --git a/tests/selenium.html b/tests/selenium.html new file mode 100644 index 00000000..f6ff9df0 --- /dev/null +++ b/tests/selenium.html @@ -0,0 +1,31 @@ + + + + + + Test Suite + + + + + + + + + + + + + + + + + + + + + + +
Test Suite
Login
Create database
Create table
Create index
Create table 2
Foreign key
Alter table
Create trigger
Create view
Insert
Clone
Reference
Update
Delete
Truncate
Privileges
Process list
Export
+ +