Procedures
open | adminer/?username=ODBC&db=adminer_test&procedure= |
clickAndWait | add[0] |
type | fields[1][field] | interpret_name
select | fields[1][type] | label=varchar
type | fields[1][length] | 50
type | fields[1.1][field] | album_title
select | fields[1.1][type] | label=varchar
type | fields[1.1][length] | 50
type | 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 | insert_album
clickAndWait | //input[@value='Save'] |
verifyTextPresent | Routine has been created. |
clickAndWait | link=insert_album |
type | fields[interpret_name] | Michael Jackson
type | fields[album_title] | Dangerous
clickAndWait | //input[@value='Call'] |
assertTextPresent | Routine has been called, 1 row affected. |
clickAndWait | link=adminer_test |
clickAndWait | link=Alter |
clickAndWait | drop |
assertConfirmation | Are you sure? |
verifyTextPresent | Routine has been dropped. |