You are on page 1of 6


net for Manual testing

Database Testing

for QTP Scripts and Documents for QTP


1) Data validity testing. How to Test database in Manually? Explain with an example Observing that operations.gcreddy. The approach is as follows: While adding a record thru' front-end check back-end that addition of record is effected or not. update.. triggers and functions. For testing Procedure triggers and functions you should be able to understand the same. Tester must be aware of the database design concepts and implementation rules 4).net for Manual testing 1). What we normally check for in the Database Testing? Database testing involves some in-depth knowledge of the given application and requires more defined plan of approach to test the data. For performance related things you should have idea about the table structure and design. 2). www. 3). 4) Testing of Procedure. What is database testing and what we test in database testing Data base testing basically include the following.gcreddy. which are operated on front-end is effected on back-end or not. Key issues include: 1) data Integrity 2) data validity 3) data manipulation and updates. For doing data validity testing you should be good in SQL queries For data integrity testing you should know about referential integrity and different constraint..www. So same for delete. What is Database testing? Testing the backend databases like comparing the actual results with expected for QTP 2 . 2) Data Integrity testing 3) Performance related to database.

DMLDML is Data Manipulation Language statements. Check constraints.· LOCK TABLE DCLDCL is Data Control Language statements.· RENAME . 7). 8).· EXPLAIN PLAN . How to test a SQL Query in WinRunner? With out using Database Checkpoints? By writing scripting procedure in the TCL we can connect to the database and we can test database and queries.· DELETE .gcreddy. The field size validation 2.· ROLLBACK COMMIT -· SET TRANSACTION .The field size defined in the application is matching with that in the db. What SQL statements have you used in Database Testing? DDLDDL is Data Definition Language statements.· COMMIT . If that information is correct then we will see query for Manual testing Ex: Enter employee record in database thru' front-end and check if the record is added or not to the back-end (manually). Stored procedures.www.· REVOKE . 6) . 3. 1. www.· INSERT .· DROP -· TRUNCATE -· COMMENT . 5). What are the different stages involved in Database Testing In DB testing we need to check for.UPSERT -· CALL . Some examples: · GRANT . Some examples: · SELECT .· MERGE . Will get some session names using that session names we search in backend.· UPDATE .· SAVEPOINT . but in manual we will go to front end using some information. 5. Some examples: · CREATE · ALTER .This are the Database testing commands.gcreddy. Indexes are done or not (for performance related issues) for QTP 3 .How does you test whether a database in updated when information is entered in the front end? With database check point only in WinRunner.

Is an "A fast database retrieval rate" a testable requirement? Since the requirement seems to be ambiguous. 11). 10). updated or deleted using a text files? www.gcreddy. How to check a trigger is fired or not.gcreddy. updated by. 12). It should say like 'A DB retrieval rate of 5 micro sec'. What steps does a tester take in testing Stored Procedures? In my view. update and delete? What should be considered in the above case while testing it? What conditions are to be checked if the data is inserted.www.e. joins. while doing Database testing? It can be verified by querying the common audit log where we can able to see the triggers fired. Select SQL manual queries option And enter the "select" queries to retrieve data in the database and compare The expected and actual. 13). How to test a DTS package created for data Insert. updates. as to why the particular stored procedure is written for? And check whether all the required indexes. etc. The SRS should clearly mention the performance or transaction requirements for Manual testing 9). the tester has to go through the for QTP 4 . How to use SQL queries in WinRunner/QTP In QTP Using output database check point and database check point. deletions are correct comparing with the tables mentions in the Stored Procedure. And also he has to ensure whether the Stored Procedure follows the standard format like comments.

8. columns. 7. www. maintain a backup of the previous database. You have to do the following things while you are involving in Data Load testing.gcreddy. Check to see if any of the constraints have thrown an error. 15). The most important command will have to be the DELETE command. 1. How to test data loading in Data base testing Using with Query analyzer. data types and Constraints) 2.www. What is way of writing test cases for database testing? You have to do the following for writing the database test cases. You have to Open corresponding DTS package in SQL Enterprise Manager and run the DTS package (If you are using SQL Server). You have to check the number to rows of Source and Target. You have to check the compatibility of Source and Target. then that should be maintained. Then you have to update the data in Source and see the change is reflecting in Target or not. columns. 5. IF the database schema is 3rd normal for QTP 5 . 14). Then you should compare the column's data of Source and Target. You have to know about Target data (table(s). 4. That is where things can go really wrong. 6.gcreddy. data types and Constraints) 3. You have know about source data (table(s). You have to check about junk character and Nulls. Most of for Manual testing Data Integrity checks should be performed.

triggers used (if any). First of all you have to understand the functional requirement of the application thoroughly. One thing writing test cases for backend testing not like functional testing. After knowing all these things you have to write the test cases with different input values for checking all the paths of SP. for Manual testing 1. joined used between the tables.gcreddy. Then you have to find out the back end tables used. input parameter used and output parameters used for developing that requirement.gcreddy. You have to use white box testing techniques. stored procedures used (if any).www. 3. for QTP 6 . cursors used (if any).