diff --git a/tests/cocroachdb.html b/tests/cocroachdb.html new file mode 100644 index 00000000..3d0f5cca --- /dev/null +++ b/tests/cocroachdb.html @@ -0,0 +1,300 @@ + + + + + + Katalon CockroachDB + + + + + + + + + + + + + + + + + +
Login
open/adminer/
selectname=langlabel=English
clickAndWaitcss=#lang > input[type="submit"]
selectname=auth[driver]label=PostgreSQL
typename=auth[server]localhost:26257
typeid=usernameODBC
typename=auth[password]ODBC
typename=auth[db]adminer_test
clickAndWaitxpath=//input[@value='Login']
+ + + + + + + + + + + + + + + + + + + + +
Create table
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public
clickAndWaitlink=Create table
typenameinterprets
typefields[1][field]id
selectfields[1][type]label=integer
click//input[@name='auto_increment_col' and @value='1']
typefields[1.1][field]name
selectfields[1.1][type]label=character varying
typefields[1.1][length]50
uncheckname=comments
clickAndWaitname=comments
typefields[1.1][comment]Interpret
typeCommentInterprets
clickAndWait//input[@value='Save']
verifyTextPresentTable has been created.
+ + + + + + + + + + + + + + + +
Create index
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&table=interprets
clickAndWaitlink=Alter indexes
selectindexes[2][type]label=PRIMARY
selectindexes[2][columns][1]label=name
verifyValuename=indexes[2][name]interprets_name
clickAndWait//input[@value='Save']
verifyTextPresentmultiple primary keys for table "interprets" are not allowed
selectindexes[2][type]label=INDEX
clickAndWait//input[@value='Save']
verifyTextPresentIndexes have been altered.
+ + + + + + + + + + + + + + + + + + + + +
Create table 2
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&table=interprets
clickAndWaitlink=Create table
typenamealbums
click//input[@name='auto_increment_col' and @value='1']
typefields[1.1][field]interpret
selectfields[1.1][type]label=integer
typefields[1.11][field]title
selectfields[1.11][type]label=character varying
typefields[1.11][length]50
checkname=comments
typefields[1.1][comment]Interpret
typefields[1.11][comment]Album
typeCommentAlbums
clickAndWait//input[@value='Save']
verifyTextPresentTable has been created.
+ + + + + + + + + + + +
Foreign key
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&table=albums
clickAndWaitlink=Add foreign key
selectAndWaittablelabel=interprets
selectsource[0]label=interpret
clickAndWait//input[@value='Save']
verifyTextPresentForeign key has been created.
+ + + + + + + + + + + + + + + + +
Alter table
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&table=interprets
clickAndWaitlink=Alter table
clickadd[2]
typefields[3][field]albums
selectfields[3][type]label=integer
typefields[3][length]
uncheckname=defaults
clickAndWaitname=defaults
typename=fields[3][default]0
clickAndWait//input[@value='Save']
verifyTextPresentTable has been altered.
+ + + + + + + + + + + + + + + + +
Check constraints
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&table=albums
clicklink=Create check
typename=namealbums_interpret_check
typename=clauseinterpret > 0
clickxpath=//input[@value='Save']
verifyTextPresentCheck has been created.
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&check=albums&name=albums_interpret_check
verifyTextname=clause((interpret > 0:::INT8))
chooseOkOnNextConfirmationDrop albums_interpret_check?
clickname=drop
verifyTextPresentCheck has been dropped.
+ + + + + + + + + + +
Create view
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&view=
typeselectSELECT albums.id, albums.title, interprets.name +FROM albums +LEFT JOIN interprets ON albums.interpret = interprets.id
typenamealbums_interprets
clickAndWait//input[@value='Save']
verifyTextPresentView has been created.
+ + + + + + + + + + + + + + + + +
Insert
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&edit=interprets
selectname=function[id]label=
typefields[id]1
typefields[name]Michael Jackson
clickAndWait//input[@value='Save']
verifyTextPresentItem has been inserted.
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&edit=albums
typefields[interpret]1
typefields[title]Dangerous
clickAndWait//input[@value='Save']
verifyTextPresentItem has been inserted.
+ + + + + + + + + + + + +
Clone
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&select=albums
clickcheck[]
clickAndWaitclone
typefields[id]2
typefields[title]Black and White
clickAndWait//input[@value='Save']
verifyTextPresent1 item has been affected.
+ + + + + + + + + + +
Explain
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&select=albums
clickAndWaitlink=Edit
clickAndWait//input[@value='Execute']
clicklink=Explain
verifyTextPresentestimated row count
+ + + + + + + + +
Reference
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&select=albums
clickAndWaitlink=1
verifyTextPresentMichael Jackson
+ + + + + + + + + +
Update
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&edit=albums&where%5Bid%5D=2
typefields[title]Black or White
clickAndWait//input[@value='Save']
verifyTextPresentItem has been updated.
+ + + + + + + + + + + +
Delete
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&select=albums
click//input[@name='check[]' and @value='where%5Bid%5D=2']
waitForChecked//input[@name='check[]' and @value='where%5Bid%5D=2']
chooseOkOnNextConfirmationAre you sure?
clickdelete
verifyTextPresent1 item has been affected.
+ + + + + + + + + + + +
Truncate
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&select=albums
clickall
waitForCheckedall
chooseOkOnNextConfirmationAre you sure?
clickdelete
verifyTextPresentNo rows.
+ + + + + + + + + + + + + + +
Export
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&dump=
clickoutput
clickformat
selecttable_stylelabel=DROP+CREATE
selectdata_stylelabel=INSERT
clickAndWait//input[@value='Export']
verifyTextPresentCREATE TABLE "public"."interprets"
verifyTextPresentINSERT INTO "interprets"
verifyTextPresentVIEW "albums_interprets"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Procedures
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&procedure=
clickAndWaitadd[0]
typefields[1][field]interpret_name
selectfields[1][type]label=character varying
typefields[1][length]50
typefields[1.1][field]album_title
selectfields[1.1][type]label=character varying
typefields[1.1][length]50
typedefinitionSELECT id FROM interprets;
typenameinsert_album
selectname=languagelabel=sql
clickAndWait//input[@value='Save']
verifyTextPresentRoutine has been created.
clickAndWaitlink=insert_album
typefields[interpret_name]Michael Jackson
typefields[album_title]Dangerous
clickAndWait//input[@value='Call']
assertTextPresentRoutine has been called,
clickAndWaitlink=public
clickAndWaitlink=Alter
chooseOkOnNextConfirmationDrop insert_album?
clickdrop
verifyTextPresentRoutine has been dropped.
+ + + + + + + + + + +
Drop
open/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public
clickid=check-all
chooseOkOnNextConfirmationAre you sure?
clickname=drop
verifyTextPresentNo tables.
+ + + + + + + +
Variables
open/adminer/?pgsql=localhost:26257&username=ODBC&variables=
verifyTextPresentcrdb_version
+ + + + + + + + + +
Logout
open/adminer/?pgsql=localhost:26257&username=ODBC
clickAndWaitlogout
verifyTextPresentLogout successful.
open/coverage.php
+ + diff --git a/tests/pgsql.html b/tests/pgsql.html index 117ec93e..1d27391f 100644 --- a/tests/pgsql.html +++ b/tests/pgsql.html @@ -280,6 +280,7 @@ LEFT JOIN interprets ON albums.interpret = interprets.id clickid=check-all chooseOkOnNextConfirmationAre you sure? clickname=drop +verifyTextPresentNo tables.