katalon

Login
open | /coverage.php?coverage=0 /coverage.php?coverage=0 |
open | /adminer/?username=ODBC /adminer/?username=ODBC |
select | name=lang name=lang | label=English
clickAndWait | css=#lang > input[type="submit"] css=#lang > input[type="submit"] |
verifyTextPresent | Logged as Logged as |
clickAndWait | link=SQL command link=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 OK Query executed OK |

Create database
open | /adminer/?username=ODBC /adminer/?username=ODBC |
clickAndWait | link=Create database link=Create database |
type | name name | adminer_test
select | collation collation | 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 table link=Create table |
type | name name | interprets
select | Engine Engine | 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
click | name=comments name=comments |
type | fields[1.1][comment] fields[1.1][comment] | Interpret
type | Comment Comment | 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 indexes link=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 defined Multiple 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 table link=Alter table |
select | partition_by partition_by | label=HASH
click | link=Partition by link=Partition by |
type | partition partition | id
type | partitions partitions | 2
clickAndWait | //input[@value='Save'] //input[@value='Save'] |
verifyTextPresent | Table has been altered. Table has been altered. |
clickAndWait | link=Alter table link=Alter table |
select | partition_by partition_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 table link=Alter table |
select | partition_by partition_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 table link=Create table |
type | name name | 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
click | name=comments name=comments |
type | fields[1.1][comment] fields[1.1][comment] | Interpret
type | fields[1.11][comment] fields[1.11][comment] | Album
type | Comment Comment | 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=interprets /adminer/?username=ODBC&db=adminer_test&table=interprets |
clickAndWait | link=Add foreign key link=Add foreign key |
selectAndWait | table table | 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 table link=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] |
uncheck | name=defaults name=defaults |
click | name=defaults name=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 | Timing Timing | label=AFTER
type | Statement Statement | 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 | select select | SELECT albums.id, albums.title, interprets.name FROM albums LEFT JOIN interprets ON albums.interpret = interprets.id
type | name name | 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 | clone clone |
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=Edit link=Edit |
clickAndWait | //input[@value='Execute'] //input[@value='Execute'] |
click | link=Explain link=Explain |
verifyTextPresent | possible_keys possible_keys |

Reference
open | /adminer/?username=ODBC&db=adminer_test&select=albums /adminer/?username=ODBC&db=adminer_test&select=albums |
clickAndWait | link=1 link=1 |
verifyTextPresent | Michael Jackson Michael 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 | delete delete |
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 | all all |
waitForChecked | all all |
chooseOkOnNextConfirmation | Are you sure? Are you sure? |
click | delete delete |
verifyTextPresent | No rows. No rows. |

Privileges
open | /adminer/?username=ODBC&user= /adminer/?username=ODBC&user= |
type | user user | 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 | drop drop |
verifyTextPresent | User has been dropped. User has been dropped. |

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

Export
open | /adminer/?username=ODBC&db=adminer_test&dump= /adminer/?username=ODBC&db=adminer_test&dump= |
click | output output |
click | format format |
select | table_style table_style | label=DROP+CREATE
select | data_style data_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_NAME EVENT_NAME | no_albums
select | INTERVAL_FIELD INTERVAL_FIELD | label=DAY
type | INTERVAL_VALUE INTERVAL_VALUE | 1
click | ON_COMPLETION ON_COMPLETION |
type | EVENT_DEFINITION EVENT_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=Alter link=Alter |
chooseOkOnNextConfirmation | Drop no_albums? Drop no_albums? |
click | drop drop |
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 | definition definition | 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 | name name | insert_album
clickAndWait | //input[@value='Save'] //input[@value='Save'] |
verifyTextPresent | Routine has been created. Routine has been created. |
clickAndWait | link=insert_album link=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_test link=adminer_test |
clickAndWait | link=Alter link=Alter |
chooseOkOnNextConfirmation | Drop insert_album? Drop insert_album? |
click | drop drop |
verifyTextPresent | Routine has been dropped. Routine has been dropped. |

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

History
open | /adminer/?username=ODBC&sql= /adminer/?username=ODBC&sql= |
verifyTextPresent | DROP DATABASE IF EXISTS adminer_test DROP 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(),'=')])[3] xpath=(//a[contains(text(),'=')])[3] |
type | name=where[0][val] name=where[0][val] | 1.2.3
submit | id=form id=form |
click | link=Warnings link=Warnings |
click | //div[@id='warnings']/table/tbody/tr/td[3] //div[@id='warnings']/table/tbody/tr/td[3] |
verifyText | //div[@id='warnings']/table/tbody/tr/td[3] //div[@id='warnings']/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=lang name=lang | label=English
clickAndWait | css=#lang > input[type="submit"] css=#lang > input[type="submit"] |
clickAndWait | link=Interprets link=Interprets |
clickAndWait | link=New item link=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 item link=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 | logout logout |

SQLite
open | /adminer/sqlite.php /adminer/sqlite.php |
select | name=auth[driver] name=auth[driver] | label=SQLite 3
type | id=username id=username | admin
type | name=auth[password] name=auth[password] |
click | css=input[type="submit"] css=input[type="submit"] |
click | link=Create database link=Create database |
type | id=name id=name | adminer_test
click | css=input[type="submit"] css=input[type="submit"] |
verifyTextPresent | Please use one of the extensions Please use one of the extensions |
type | id=name id=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 table link=Create table |
type | name=name name=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 item link=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 table link=Create table |
type | name=name name=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 item link=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=1 link=1 |
verifyTextPresent | Select: interprets Select: interprets |
click | link=adminer_test.sqlite link=adminer_test.sqlite |
click | link=Alter database link=Alter database |
chooseOkOnNextConfirmation | Drop adminer_test.sqlite? Drop adminer_test.sqlite? |
click | name=drop name=drop |
verifyTextPresent | Database has been dropped. Database has been dropped. |
click | id=logout id=logout |
verifyTextPresent | Thanks for using Adminer, consider donating. Thanks for using Adminer, consider donating. |

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