Login | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200 | |
select | name=lang | label=English |
clickAndWait | css=#lang > input[type="submit"] | |
type | id=username | ODBC |
type | name=auth[password] | ODBC12 |
clickAndWait | //input[@value='Login'] | |
verifyTextPresent | JSON |
Create table | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic | |
clickAndWait | link=Create table | |
type | name | interprets |
type | fields[1][field] | name |
select | fields[1][type] | label=text |
clickAndWait | //input[@value='Save'] | |
verifyTextPresent | Table has been created. |
Alter table | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&table=interprets | |
clickAndWait | link=Alter table | |
click | add[2] | |
type | fields[3][field] | albums |
select | fields[3][type] | label=integer |
clickAndWait | //input[@value='Save'] | |
verifyTextPresent | Table has been altered. |
Insert | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&edit=interprets | |
type | fields[name] | Michael Jackson |
clickAndWait | //input[@value='Save'] | |
verifyTextPresent | has been inserted. |
Select | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&select=interprets | |
click | link=Search | |
select | name=where[0][col] | label=name |
select | name=where[0][op] | label=should |
type | name=where[0][val] | Jackson |
click | link=Sort | |
select | name=order[0] | label=albums |
clickAndWait | xpath=//input[@value='Select'] | |
verifyTextPresent | 1 row |
Update | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&select=interprets | |
clickAndWait | link=edit | |
type | fields[albums] | 1 |
clickAndWait | //input[@value='Save'] | |
verifyTextPresent | Item has been updated. |
Delete | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&select=interprets | |
click | name=check[] | |
waitForChecked | name=check[] | |
chooseOkOnNextConfirmation | Are you sure? | |
click | delete | |
verifyTextPresent | 1 item has been affected. |
Drop | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC&db=elastic&create=interprets | |
chooseOkOnNextConfirmation | Drop interprets? | |
click | name=drop | |
verifyTextPresent | No tables. |
Logout | ||
open | /adminer/elastic.php?elastic=https%3A%2F%2Flocalhost:9200&username=ODBC | |
clickAndWait | logout | |
verifyTextPresent | Logout successful. | |
open | /coverage.php |