Databases are also indispensable in the financial, leasing, retail, mailing, and medical fields.
As the complexity of applications increases, databases with higher security requirements can meet the needs. To meet high-frequency application transactions (such as banking or financial applications), database security is the primary concern.
At present, there are many active database tools in the market, such as MS-Access2010, ms SQL Server2008 r2, Oracle 10g, Oracle Financial, MySQL, PostgreSQL, DB2 and so on. They have their own advantages in cost, reliability, functionality, and security.
The following is a brief introduction of the operations represented by 'crud 'in the database.
C: Create -- create a user.
R: search-execute the search view operation.
U: update -- Update database information.
D: delete -- delete the database.
Generally, the above four operations are used to operate data.
Database test preparation:
ACID properties
ACID refers to the abbreviation of four basic elements for correct execution of database transactions. Includes: Atomicity, Consistency, Isolation, and Durability ). These four elements must be tested during database testing to ensure they are correct.
Data Integrity
Considering that applications of different modules use the same data in different ways and perform all CRUD operations on the data. Ensure that the data contained in the database is as accurate and consistent as possible. This is data integrity.
Business Accuracy
Since its development, databases are no longer simply used to store records. In fact, the database system has developed into a powerful tool that provides developers with enough expansion support. The database system has more powerful functions than before, such as reference integrity, relational constraints, triggers and stored procedures.
How to test the database:
Create Query
To test whether the database is correct and accurate. First, testers should be familiar with SQL and DML statements. Second, testers should master the database structure. If these two conditions are met, you can test them with confidence. It is a good test method for applications developed by small and medium-sized technologies. In addition, if the program is relatively complex, testers need help from developers. However, I suggest you start testing from the beginning, so you can improve your SQL technology with confidence.
Query data tables
Testers can view data tables to verify the operation results of the application GUI. However, this method is tedious and tedious for databases with a large amount of data. It is also quite difficult to verify multiple data tables.
Query from developers
This is the easiest way to test the database. execute any CRUD operations from the GUI and execute their respective SQL queries, and obtain verification and results from developers. This seems to be the best way to test the database. If a query error occurs or does not meet your requirements, you can modify the statement as soon as possible.
Summary
Databases are the core part of each software program. Database testing has been highly valued, and testers need good SQL technology. In order to ensure that the test results are correct, the above four elements should be allocated to different testers for cross-testing to ensure that nothing is lost. (Zhang Qi/compilation)
Original article: softwaretestinghelp.com