2025-02-09 19:48:22 +01:00
|
|
|
Feature: manipulate tables:
|
|
|
|
create, insert, update, select, delete from, drop
|
|
|
|
|
|
|
|
Scenario: create, insert, select from, update, drop table
|
|
|
|
When we connect to test database
|
|
|
|
then we see database connected
|
|
|
|
when we create table
|
|
|
|
then we see table created
|
|
|
|
when we insert into table
|
|
|
|
then we see record inserted
|
2025-02-09 20:05:08 +01:00
|
|
|
when we select from table
|
|
|
|
then we see data selected: initial
|
2025-02-09 19:48:22 +01:00
|
|
|
when we update table
|
|
|
|
then we see record updated
|
|
|
|
when we select from table
|
2025-02-09 20:05:08 +01:00
|
|
|
then we see data selected: updated
|
2025-02-09 19:48:22 +01:00
|
|
|
when we delete from table
|
2025-02-09 20:05:08 +01:00
|
|
|
then we respond to the destructive warning: y
|
2025-02-09 19:48:22 +01:00
|
|
|
then we see record deleted
|
|
|
|
when we drop table
|
2025-02-09 20:05:08 +01:00
|
|
|
then we respond to the destructive warning: y
|
2025-02-09 19:48:22 +01:00
|
|
|
then we see table dropped
|
|
|
|
when we connect to dbserver
|
|
|
|
then we see database connected
|
2025-02-09 20:05:08 +01:00
|
|
|
|
|
|
|
Scenario: transaction handling, with cancelling on a destructive warning.
|
|
|
|
When we connect to test database
|
|
|
|
then we see database connected
|
|
|
|
when we create table
|
|
|
|
then we see table created
|
|
|
|
when we begin transaction
|
|
|
|
then we see transaction began
|
|
|
|
when we insert into table
|
|
|
|
then we see record inserted
|
|
|
|
when we delete from table
|
|
|
|
then we respond to the destructive warning: n
|
|
|
|
when we select from table
|
|
|
|
then we see data selected: initial
|
|
|
|
when we rollback transaction
|
|
|
|
then we see transaction rolled back
|
|
|
|
when we select from table
|
|
|
|
then we see select output without data
|
|
|
|
when we drop table
|
|
|
|
then we respond to the destructive warning: y
|
|
|
|
then we see table dropped
|