Login
open | /coverage.php?coverage=0/coverage.php?coverage=0 |
open | /adminer/?username=ODBC/adminer/?username=ODBC |
select | name=langname=lang | label=English
clickAndWait | css=#lang > input[type="submit"]css=#lang > input[type="submit"] |
verifyTextPresent | Logged asLogged as |
clickAndWait | link=SQL commandlink=SQL command |
open | /adminer/?username=ODBC&sql=DROP+DATABASE+IF+EXISTS+adminer_test/adminer/?username=ODBC&sql=DROP+DATABASE+IF+EXISTS+adminer_test |
clickAndWait | //input[@value='Execute']//input[@value='Execute'] |
verifyTextPresent | Query executed OKQuery executed OK |

Create database
open | /adminer/?username=ODBC/adminer/?username=ODBC |
clickAndWait | link=Create databaselink=Create database |
type | namename | adminer_test
select | collationcollation | label=utf8_general_ci
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Database has been created.Database has been created. |

Create table
open | /adminer/?username=ODBC&db=adminer_test/adminer/?username=ODBC&db=adminer_test |
clickAndWait | link=Create tablelink=Create table |
type | namename | interprets
select | EngineEngine | label=InnoDB
type | fields[1][field]fields[1][field] | id
select | fields[1][type]fields[1][type] | label=int
click | //input[@name='auto_increment_col' and @value='1']//input[@name='auto_increment_col' and @value='1'] |
type | fields[1.1][field]fields[1.1][field] | name
select | fields[1.1][type]fields[1.1][type] | label=varchar
type | fields[1.1][length]fields[1.1][length] | 50
check | name=commentsname=comments |
type | fields[1.1][comment]fields[1.1][comment] | Interpret
type | CommentComment | Interprets
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been created.Table has been created. |

Create index
open | /adminer/?username=ODBC&db=adminer_test&table=interprets/adminer/?username=ODBC&db=adminer_test&table=interprets |
clickAndWait | link=Alter indexeslink=Alter indexes |
select | indexes[2][type]indexes[2][type] | label=PRIMARY
select | indexes[2][columns][1]indexes[2][columns][1] | label=name
verifyValue | name=indexes[2][name]name=indexes[2][name] | name
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Multiple primary key definedMultiple primary key defined |
select | indexes[2][type]indexes[2][type] | label=INDEX
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Indexes have been altered.Indexes have been altered. |

Partitioning
open | /adminer/?username=ODBC&db=adminer_test&table=interprets/adminer/?username=ODBC&db=adminer_test&table=interprets |
clickAndWait | link=Alter tablelink=Alter table |
select | partition_bypartition_by | label=HASH
click | link=Partition bylink=Partition by |
type | partitionpartition | id
type | partitionspartitions | 2
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been altered.Table has been altered. |
clickAndWait | link=Alter tablelink=Alter table |
select | partition_bypartition_by | label=RANGE
type | partition_values[]partition_values[] | 10
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been altered.Table has been altered. |
clickAndWait | link=Alter tablelink=Alter table |
select | partition_bypartition_by | label=
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been altered.Table has been altered. |

Create table 2
open | /adminer/?username=ODBC&db=adminer_test&table=interprets&lang=en/adminer/?username=ODBC&db=adminer_test&table=interprets&lang=en |
clickAndWait | link=Create tablelink=Create table |
type | namename | albums
type | fields[1][field]fields[1][field] | id
select | fields[1][type]fields[1][type] | label=int
click | //input[@name='auto_increment_col' and @value='1']//input[@name='auto_increment_col' and @value='1'] |
type | fields[1.1][field]fields[1.1][field] | interpret
select | fields[1.1][type]fields[1.1][type] | label=int
type | fields[1.11][field]fields[1.11][field] | title
select | fields[1.11][type]fields[1.11][type] | label=varchar
type | fields[1.11][length]fields[1.11][length] | 50
check | name=commentsname=comments |
type | fields[1.1][comment]fields[1.1][comment] | Interpret
type | fields[1.11][comment]fields[1.11][comment] | Album
type | CommentComment | Albums
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been created.Table has been created. |

Foreign key
open | /adminer/?username=ODBC&db=adminer_test&table=albums/adminer/?username=ODBC&db=adminer_test&table=albums |
clickAndWait | link=Add foreign keylink=Add foreign key |
selectAndWait | tabletable | label=interprets
select | source[0]source[0] | label=interpret
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Foreign key has been created.Foreign key has been created. |

Alter table
open | /adminer/?username=ODBC&db=adminer_test&table=interprets/adminer/?username=ODBC&db=adminer_test&table=interprets |
clickAndWait | link=Alter tablelink=Alter table |
click | add[2]add[2] |
type | fields[2.1][field]fields[2.1][field] | albums
select | fields[2.1][type]fields[2.1][type] | label=int
type | fields[2.1][length]fields[2.1][length] |
check | name=defaultsname=defaults |
type | name=fields[2.1][default]name=fields[2.1][default] | 0
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Table has been altered.Table has been altered. |

Create trigger
open | /adminer/?username=ODBC&db=adminer_test&trigger=albums/adminer/?username=ODBC&db=adminer_test&trigger=albums |
select | TimingTiming | label=AFTER
type | StatementStatement | UPDATE interprets SET albums = albums + 1 WHERE id = NEW.interpret
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Trigger has been created.Trigger has been created. |

Create view
open | /adminer/?username=ODBC&db=adminer_test&view=/adminer/?username=ODBC&db=adminer_test&view= |
type | selectselect | SELECT albums.id, albums.title, interprets.name FROM albums LEFT JOIN interprets ON albums.interpret = interprets.id
type | namename | albums_interprets
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | View has been created.View has been created. |

Insert
open | /adminer/?username=ODBC&db=adminer_test&edit=interprets/adminer/?username=ODBC&db=adminer_test&edit=interprets |
type | fields[name]fields[name] | Michael Jackson
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Item 1 has been inserted.Item 1 has been inserted. |
open | /adminer/?username=ODBC&db=adminer_test&edit=albums/adminer/?username=ODBC&db=adminer_test&edit=albums |
type | fields[interpret]fields[interpret] | 1
type | fields[title]fields[title] | Dangerous
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Item 1 has been inserted.Item 1 has been inserted. |

Clone
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
click | check[]check[] |
clickAndWait | cloneclone |
type | fields[title]fields[title] | Black and White
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Item 2 has been inserted.Item 2 has been inserted. |

Explain
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
clickAndWait | link=Editlink=Edit |
clickAndWait | //input[@value='Execute']//input[@value='Execute'] |
click | link=Explainlink=Explain |
verifyTextPresent | possible_keyspossible_keys |

Reference
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
clickAndWait | link=1link=1 |
verifyTextPresent | Michael JacksonMichael Jackson |

Update
open | /adminer/?username=ODBC&db=adminer_test&edit=albums&where%5Bid%5D=2/adminer/?username=ODBC&db=adminer_test&edit=albums&where%5Bid%5D=2 |
type | fields[title]fields[title] | Black or White
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Item has been updated.Item has been updated. |

Delete
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
click | //input[@name='check[]' and @value='where%5Bid%5D=2']//input[@name='check[]' and @value='where%5Bid%5D=2'] |
waitForChecked | //input[@name='check[]' and @value='where%5Bid%5D=2']//input[@name='check[]' and @value='where%5Bid%5D=2'] |
chooseOkOnNextConfirmation | Are you sure?Are you sure? |
click | deletedelete |
verifyTextPresent | 1 item has been affected.1 item has been affected. |

Truncate
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
click | allall |
waitForChecked | allall |
chooseOkOnNextConfirmation | Are you sure?Are you sure? |
click | deletedelete |
verifyTextPresent | No rows.No rows. |

Privileges
open | /adminer/?username=ODBC&user=/adminer/?username=ODBC&user= |
type | useruser | adminer_test
type | objects[0]objects[0] | adminer_test.*
click | grants[0][ALTER]grants[0][ALTER] |
click | grants[0][CREATE]grants[0][CREATE] |
click | //input[@name='grants[0][CREATE VIEW]']//input[@name='grants[0][CREATE VIEW]'] |
click | grants[0][DELETE]grants[0][DELETE] |
click | grants[0][DROP]grants[0][DROP] |
click | grants[0][INDEX]grants[0][INDEX] |
click | grants[0][INSERT]grants[0][INSERT] |
click | grants[0][REFERENCES]grants[0][REFERENCES] |
click | grants[0][SELECT]grants[0][SELECT] |
click | //input[@name='grants[0][SHOW VIEW]']//input[@name='grants[0][SHOW VIEW]'] |
click | grants[0][UPDATE]grants[0][UPDATE] |
click | //input[@name='grants[0][CREATE TEMPORARY TABLES]']//input[@name='grants[0][CREATE TEMPORARY TABLES]'] |
click | //input[@name='grants[0][LOCK TABLES]']//input[@name='grants[0][LOCK TABLES]'] |
click | //input[@name='grants[0][CREATE ROUTINE]']//input[@name='grants[0][CREATE ROUTINE]'] |
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | User has been created.User has been created. |
clickAndWait | //div[@id='content']/form/table/tbody/tr[td[1]='adminer_test']/td[3]/a//div[@id='content']/form/table/tbody/tr[td[1]='adminer_test']/td[3]/a |
chooseOkOnNextConfirmation | Drop adminer_test@localhost?Drop adminer_test@localhost? |
click | dropdrop |
verifyTextPresent | User has been dropped.User has been dropped. |

Process list
open | /adminer/?username=ODBC&processlist=/adminer/?username=ODBC&processlist= |
verifyTextPresent | SHOW FULL PROCESSLISTSHOW FULL PROCESSLIST |

Export
open | /adminer/?username=ODBC&db=adminer_test&dump=/adminer/?username=ODBC&db=adminer_test&dump= |
click | outputoutput |
click | formatformat |
select | table_styletable_style | label=DROP+CREATE
select | data_styledata_style | label=INSERT
clickAndWait | //input[@value='Export']//input[@value='Export'] |
verifyTextPresent | CREATE TABLE `interprets`CREATE TABLE `interprets` |
verifyTextPresent | CREATE TRIGGER `albums_ai`CREATE TRIGGER `albums_ai` |
verifyTextPresent | INSERT INTO `interprets`INSERT INTO `interprets` |
verifyTextPresent | VIEW `albums_interprets`VIEW `albums_interprets` |

Events
open | /adminer/?username=ODBC&db=adminer_test&event=/adminer/?username=ODBC&db=adminer_test&event= |
type | EVENT_NAMEEVENT_NAME | no_albums
select | INTERVAL_FIELDINTERVAL_FIELD | label=DAY
type | INTERVAL_VALUEINTERVAL_VALUE | 1
click | ON_COMPLETIONON_COMPLETION |
type | EVENT_DEFINITIONEVENT_DEFINITION | DELETE FROM albums WHERE interprets = 0
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Event has been created.Event has been created. |
clickAndWait | link=Alterlink=Alter |
chooseOkOnNextConfirmation | Drop no_albums?Drop no_albums? |
click | dropdrop |
verifyTextPresent | Event has been dropped.Event has been dropped. |

Procedures
open | /adminer/?username=ODBC&db=adminer_test&procedure=/adminer/?username=ODBC&db=adminer_test&procedure= |
clickAndWait | add[0]add[0] |
type | fields[1][field]fields[1][field] | interpret_name
select | fields[1][type]fields[1][type] | label=varchar
type | fields[1][length]fields[1][length] | 50
type | fields[1.1][field]fields[1.1][field] | album_title
select | fields[1.1][type]fields[1.1][type] | label=varchar
type | fields[1.1][length]fields[1.1][length] | 50
type | definitiondefinition | BEGIN SELECT id INTO @interpret FROM interprets WHERE name = interpret_name; IF @interpret IS NULL THEN INSERT INTO interprets (name) VALUES (interpret_name); SET @interpret = LAST_INSERT_ID(); END IF; INSERT INTO albums (interpret, title) VALUES (@interpret, album_title); END
type | namename | insert_album
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Routine has been created.Routine has been created. |
clickAndWait | link=insert_albumlink=insert_album |
type | fields[interpret_name]fields[interpret_name] | Michael Jackson
type | fields[album_title]fields[album_title] | Dangerous
clickAndWait | //input[@value='Call']//input[@value='Call'] |
assertTextPresent | Routine has been called, 1 row affected.Routine has been called, 1 row affected. |
clickAndWait | link=adminer_testlink=adminer_test |
clickAndWait | link=Alterlink=Alter |
chooseOkOnNextConfirmation | Drop insert_album?Drop insert_album? |
click | dropdrop |
verifyTextPresent | Routine has been dropped.Routine has been dropped. |

Variables
open | /adminer/?username=ODBC&variables=/adminer/?username=ODBC&variables= |
verifyTextPresent | basedirbasedir |

History
open | /adminer/?username=ODBC&sql=/adminer/?username=ODBC&sql= |
verifyTextPresent | DROP DATABASE IF EXISTS adminer_testDROP DATABASE IF EXISTS adminer_test |

Warnings
open | /adminer/?username=ODBC&db=adminer_test&select=albums/adminer/?username=ODBC&db=adminer_test&select=albums |
click | xpath=(//a[contains(text(),'=')])[1]xpath=(//a[contains(text(),'=')])[1] |
type | name=where[0][val]name=where[0][val] | 1.2.3
submit | id=formid=form |
click | link=Warningslink=Warnings |
verifyText | //div[@id='warnings']/div/table/tbody/tr/td[3]//div[@id='warnings']/div/table/tbody/tr/td[3] | Truncated incorrect DOUBLE value: '1.2.3'

Editor
open | /editor/example.php?username=admin/editor/example.php?username=admin |
select | name=langname=lang | label=English
clickAndWait | css=#lang > input[type="submit"]css=#lang > input[type="submit"] |
clickAndWait | link=Interpretslink=Interprets |
clickAndWait | link=New itemlink=New item |
type | fields[name]fields[name] | Michael Jackson
clickAndWait | //input[@value='Save']//input[@value='Save'] |
clickAndWait | //div[@id='content']/form[2]/table/tbody/tr[1]/td[3]/a//div[@id='content']/form[2]/table/tbody/tr[1]/td[3]/a |
clickAndWait | link=New itemlink=New item |
type | fields[title]fields[title] | Dangerous
clickAndWait | //input[@value='Save']//input[@value='Save'] |
verifyTextPresent | Item 4 has been inserted.Item 4 has been inserted. |
clickAndWait | logoutlogout |

SQLite
open | /adminer/sqlite.php/adminer/sqlite.php |
select | name=auth[driver]name=auth[driver] | label=SQLite 3
type | id=usernameid=username | admin
type | name=auth[password]name=auth[password] |
click | css=input[type="submit"]css=input[type="submit"] |
click | link=Create databaselink=Create database |
type | id=nameid=name | adminer_test
click | css=input[type="submit"]css=input[type="submit"] |
verifyTextPresent | Please use one of the extensionsPlease use one of the extensions |
type | id=nameid=name | adminer_test.sqlite
click | css=input[type="submit"]css=input[type="submit"] |
verifyTextPresent | Database has been created.Database has been created. |
click | link=Create tablelink=Create table |
type | name=namename=name | interprets
click | css=label.block > input[name="auto_increment_col"]css=label.block > input[name="auto_increment_col"] |
type | name=fields[1.1][field]name=fields[1.1][field] | name
select | name=fields[1.1][type]name=fields[1.1][type] | label=text
click | xpath=(//input[@value='Save'])[2]xpath=(//input[@value='Save'])[2] |
verifyTextPresent | Table has been created.Table has been created. |
click | link=New itemlink=New item |
type | name=fields[name]name=fields[name] | Michael Jackson
click | css=input[type="submit"]css=input[type="submit"] |
verifyTextPresent | Item 1 has been inserted.Item 1 has been inserted. |
click | link=Create tablelink=Create table |
type | name=namename=name | albums
click | css=label.block > input[name="auto_increment_col"]css=label.block > input[name="auto_increment_col"] |
type | name=fields[1.1][field]name=fields[1.1][field] | interpret
select | name=fields[1.1][on_delete]name=fields[1.1][on_delete] | label=CASCADE
type | name=fields[1.11][field]name=fields[1.11][field] | title
select | name=fields[1.11][type]name=fields[1.11][type] | label=text
click | xpath=(//input[@value='Save'])[2]xpath=(//input[@value='Save'])[2] |
verifyTextPresent | interprets(id)interprets(id) |
click | link=New itemlink=New item |
type | name=fields[interpret]name=fields[interpret] | 1
type | name=fields[title]name=fields[title] | Dangerous
click | css=input[type="submit"]css=input[type="submit"] |
click | link=1link=1 |
verifyTextPresent | Select: interpretsSelect: interprets |
click | link=adminer_test.sqlitelink=adminer_test.sqlite |
click | link=Alter databaselink=Alter database |
chooseOkOnNextConfirmation | Drop adminer_test.sqlite?Drop adminer_test.sqlite? |
click | name=dropname=drop |
verifyTextPresent | Database has been dropped.Database has been dropped. |
click | id=logoutid=logout |
verifyTextPresent | Thanks for using Adminer, consider donating.Thanks for using Adminer, consider donating. |

Logout
open | /adminer/?username=ODBC/adminer/?username=ODBC |
clickAndWait | logoutlogout |
verifyTextPresent | Logout successful.Logout successful. |
selectAndWait | //select[@name='lang']//select[@name='lang'] | label=Čeština
verifyTextPresent | Přihlásit sePřihlásit se |
open | /coverage.php/coverage.php |