You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utility-guides/Oracle.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,18 @@
1
1
# Utility Guide: Oracle
2
2
3
-
The Oracle Utility provides an easy way to interact with an Oracle database directly from your Playwright test suite.It can be used to run SQL queries or stored procedures on the Oracle database.
3
+
The Oracle Utility provides an easy way to interact with an Oracle database directly from your Playwright test suite.It can be used to run SQL queries or stored procedures on the Oracle database.
4
4
5
5
## When and Why to Use the Oracle Utility
6
6
7
-
You might need to use this utility in scenarios such as:
7
+
You might use this utility for:
8
8
9
-
- To run SQL queries or stored procedures on the Oracle database.
10
-
- Verifying that data is correctly written to or updated in the database after a workflow is completed in your application.
9
+
- Running SQL queries or stored procedures on the Oracle database
10
+
11
+
- Validating application workflows against live database records
12
+
13
+
- Creating test data dynamically via helper functions
14
+
15
+
- Verifying data integrity after system events
11
16
12
17
## Table of Contents
13
18
@@ -26,6 +31,10 @@ You might need to use this utility in scenarios such as:
26
31
27
32
To use the Oracle Utility, import the 'OracleDB' class into your test file and then call the OracleDB methods from within your tests, as required.
28
33
34
+
```python
35
+
from utils.oracle.oracle import OracleDB
36
+
```
37
+
29
38
## Required arguments
30
39
31
40
The functions in this class require different arguments.<br>
@@ -42,6 +51,7 @@ The docstrings also specify when arguments are optional, and what the default va
42
51
-**execute_stored_procedure(self, `procedure_name`, params=None)**: Executes a named stored procedure with optional parameters.
43
52
-**exec_bcss_timed_events(self, nhs_number_df)**: Runs the `bcss_timed_events` stored procedure for each NHS number provided in a DataFrame.
44
53
-**get_subject_id_from_nhs_number(self, nhs_number)**: Retrieves the `subject_screening_id` for a given NHS number.
54
+
-**create_subjects_via_sspi(...)**: Creates synthetic subjects using stored procedure `PKG_SSPI.p_process_pi_subject`
45
55
46
56
For full implementation details, see utils/oracle/oracle.py.
0 commit comments