marin
13 years agoFrequent Contributor
How to dynamically set SQL query for database table checkpoint?
Hello all,
I wonder if it is possible to dynamically set SQL query which is the source for DB table checkpoint?
My test scenario includes data consistency check that needs to be preformed at runtime e.g.:
- user enters some order data in a GUI that is bound to e.g. Northwind database (e.g. user orders a number of products for a customer for a specific date)
- order is saved in the GUI and corresponding records in tables Orders and Products are saved in the database (a web service in the background is actually writing the order into DB).
- the order overview is displayed in the GUI
Now I need to compare the overview in the GUI (ordered components for specific customer for a specific date are displayed in a form inside a panel) with corresponding situation in the database after order was saved.
Is there any possibility to create the SQL query on the fly (with dynamic values for date and customer) and to compare returned DB table with data displayed on the GUI form?
Many thanks for any hints...
I wonder if it is possible to dynamically set SQL query which is the source for DB table checkpoint?
My test scenario includes data consistency check that needs to be preformed at runtime e.g.:
- user enters some order data in a GUI that is bound to e.g. Northwind database (e.g. user orders a number of products for a customer for a specific date)
- order is saved in the GUI and corresponding records in tables Orders and Products are saved in the database (a web service in the background is actually writing the order into DB).
- the order overview is displayed in the GUI
Now I need to compare the overview in the GUI (ordered components for specific customer for a specific date are displayed in a form inside a panel) with corresponding situation in the database after order was saved.
Is there any possibility to create the SQL query on the fly (with dynamic values for date and customer) and to compare returned DB table with data displayed on the GUI form?
Many thanks for any hints...