QA Interview Handbook
  • ๐Ÿ Home Page
  • About Testing
    • ๐Ÿ’–Qualities of A Great Tester
  • Manual Testing
    • ๐Ÿ’กOverview
      • โœ‹Demand for Software Testing
      • ๐Ÿ˜„Tester's Role in Manual Testing
      • 7๏ธTesting Principles
      • ๐ŸšจV & V
      • โ”Interview Questions
    • โ™ป๏ธSDLC
      • ๐Ÿ“’Phase 1: Planning
      • ๐Ÿ”Phase 2: Requirement Analysis
      • ๐Ÿ‘”Phase 3: Design
      • โ›‘๏ธPhase 4: Development
      • ๐ŸงชPhase 5: Testing
      • ๐ŸššPhase 6: Deployment
      • ๐Ÿ–ฑ๏ธPhase 7: Maintenance
      • โš”๏ธCommon Challenges
      • โ”Interview Questions
    • ๐ŸŒ€STLC
    • ๐ŸŒŠWaterfall
    • โœณ๏ธAgile
      • ๐Ÿ˜Tester's Role in Scrum
    • ๐Ÿ”ขTypes
      • โฌœWhite Box Testing
      • โฌ›Black Box Testing
        • ๐Ÿ”ฐTechniques Used in Black Box Testing
        • ๐Ÿš˜Functional Testing
          • 1๏ธโƒฃUnit Testing
          • 2๏ธโƒฃIntegration Testing
            • ๐Ÿ”ฐTechniques Used in Integration Testing
          • 3๏ธโƒฃSystem Testing
            • ๐Ÿ“ผTypes of System Testing
            • ๐ŸŒŠPhases of System Testing
            • ๐ŸŒ€Regression Testing
            • ๐ŸŒซ๏ธSmoke Testing
          • 4๏ธโƒฃAcceptance Testing
            • โš™๏ธUser Acceptance Testing
            • ๐Ÿ…ฐ๏ธAlpha Testing
            • ๐Ÿ…ฑ๏ธBeta Testing
        • ๐Ÿ•ณ๏ธNon Functional Testing
      • ๐Ÿ“‘Grey Box Testing
    • ๐Ÿช„User Story
      • โบ๏ธSample User Stories
    • ๐Ÿ““Test Cases
      • โบ๏ธSample Test Cases
      • โ”Interview Questions
    • โœ–๏ธDefect Life Cycle
      • โ˜ฃ๏ธPriority + Severity
      • โบ๏ธSample Defect Reports
      • โ”Interview Questions
      • ๐Ÿ›Buggy Questions
    • ๐ŸŒAtlassian JIRA
      • ๐ŸžJIRA Issues
      • โ”Interview Questions
    • โ”Interview Questions
  • Accessibility Testing
    • ๐Ÿ’กOverview
    • ๐Ÿค“Tester's Role in Accessibility Testing
    • ๐Ÿ“šWCAG Principles
      • ๐Ÿ‘๏ธPerceivable
      • ๐ŸนOperable
      • ๐Ÿง Understandable
      • ๐Ÿค–Robust
    • ๐Ÿ”งAxe DevTools
      • โ”Interview Questions
    • ๐Ÿ““Test Cases
    • โ”Interview Questions
  • API Testing
    • ๐Ÿ’กOverview
    • ๐Ÿ˜€Tester's Role in API Testing
    • ๐ŸŠHTTP Methods & CRUD
      • ๐Ÿ‚HTTP Status Codes
    • ๐ŸAPI Tools
      • ๐ŸŸ Postman
        • โ˜„๏ธSending your first API request
        • ๐Ÿ”ฌHTTP Requests with Java
        • ๐ŸŽฒGitHub Sample
        • โ”Interview Questions
      • โ›‘๏ธREST Assured
        • ๐ŸŽ‡Dependency
        • โ”Interview Questions
    • ๐Ÿ““Test Cases
    • ๐ŸฆงAPI Cheatsheet
    • โ”Interview Questions
  • Database Testing
    • ๐Ÿ’กOverview
    • ๐Ÿ˜†Tester's Role in Database Testing
    • ๐Ÿ”ตSQL
      • โ›“๏ธConstraints
      • ๐Ÿ›ข๏ธReferencing a Column
      • ๐Ÿ”ผDDL Commands
      • ๐Ÿ”ผDML Commands
        • ๐Ÿ–Œ๏ธOperators
        • ๐Ÿ› ๏ธFunctions
          • โฏ๏ธAggregate Functions
        • ๐ŸŽ…Clauses
          • โซJoin Clauses
          • ๐Ÿ”ตFilter Clauses
          • โฌSet Operations
      • ๐ŸƒWildcard Character
      • โ”Interview Questions
    • ๐Ÿ““Test Cases
    • ๐ŸงคSQL Practice Sites
    • ๐ŸซSQL Cheatsheet
    • โ”Interview Questions
  • Java
    • โ›ฉ๏ธIntroduction
    • ๐Ÿ˜„Tester's Reason to Learn Java
    • โ“‚๏ธMain Method
      • โ”Interview Questions
    • ๐Ÿ“Variables & Types
      • ๐ŸชขSpecial Types
    • ๐ŸฅModifiers
    • ๐Ÿ…พ๏ธOperators
    • ๐ŸชกString
      • ๐ŸฉบString Methods
        • String Method Problems
      • ๐ŸšจDelimiter
      • โ”Interview Questions
    • ๐Ÿ–‡๏ธConditionals
      • ๐Ÿ’ŽCommon If Statements
      • ๐Ÿ’ŽCommon Ternary Operator Statements
    • โ“‚๏ธMath Class
    • ๐ŸŒŠLoops
      • ๐Ÿ’ŽCommon Loop Examples
      • ๐Ÿ”ƒNested For Loops
    • ๐ŸผOOPS
      • ๐Ÿ›๏ธClasses and Objects
        • โ”Interview Questions
      • ๐ŸŽƒConstructor
        • โšกStatic
          • โ”Interview Questions
        • ๐Ÿ“This() & Super()
          • โ”Interview Questions
        • ๐Ÿ€Finalization
      • ๐Ÿ”“Encapsulation
      • ๐ŸฅInheritance
      • ๐Ÿฆ‹Polymorphism
      • ๐Ÿ•ธ๏ธAbstraction
    • ๐ŸฎJava Practice Sites
    • โ˜‘๏ธData Structures + Algorithms
      • ๐Ÿ…พ๏ธBig O
      • โ˜‘๏ธData Structures
        • ๐Ÿ”ธArray
        • ๐Ÿ”ณArray Problems
        • Page
      • ๐ŸชŸSliding Window Technique
        • ๐ŸชŸSliding Window Problems
        • ๐ŸฅLeetCode #53
        • ๐ŸฅLeetCode #209
    • โ”Interview Questions
  • Automation Testing
    • ๐ŸšฐFlow
      • ๐Ÿ’กOverview
      • ๐ŸคฉTester's Role in Automation Testing
      • ๐Ÿ€Selenium
        • ๐Ÿ•ธ๏ธSelenium WebDriver
          • ๐Ÿ•ท๏ธWebDriver Commands
            • ๐ŸŒWebElement
              • ๐Ÿ”†HTML Tags
              • ๐Ÿ”ฌFind Element(s)
              • ๐ŸฆŽLocators
                • โŒXpath
                • ๐ŸฐCSS Selector
                • ๐Ÿ“€DOM
                • ๐Ÿ Quick Reference for XPath + CSS
            • โœ‹Waits
            • Browser Management
            • ๐ŸŽ๏ธNavigation
            • Alerts
          • ๐Ÿท๏ธAdvanced User Interactions
            • ๐Ÿ—ฏ๏ธAction vs. Actions
            • ๐Ÿ’งDrop Down
            • โœ…Check Box
            • ๐Ÿ–‡๏ธForms
          • โš ๏ธExceptions
        • ๐ŸOOPS + Selenium
        • ๐ŸšขFrameworks
          • โš“Module Based Framework
          • ๐ŸŽนKeyword Driven Framework
          • ๐ŸŽ‹Data Driven Framework
          • ๐ŸŒบHybrid Framework
          • ๐ŸŒดLog4j
          • ๐Ÿ“„Page Object Model
        • ๐ŸงชTesting Frameworks
          • ๐Ÿ’กTestNG
          • ๐Ÿ‰‘JUnit
          • ๐Ÿฅ’BDD
            • ๐Ÿฅ’Cucumber
        • ๐ŸŒ‰Selenium Grid
          • โœ–๏ธDesired Capabilities
        • โ”Interview Questions
      • ๐Ÿ”„API Testing with Selenium
      • โชDatabase Testing with Selenium
      • โ“‚๏ธMaven
      • ๐Ÿ™Git
        • โ”Interview Questions
      • ๐Ÿ•ต๏ธโ€โ™‚๏ธJenkins
        • โ”Interview Questions
      • ๐ŸณDocker
        • โ”Interview Questions
      • ๐Ÿ“™AWS
        • โ”Interview Questions
  • Behavioral
    • ๐Ÿ“ฃMixed Interview Questions
    • โญSTAR Method
      • ๐ŸŒŸSample Responses
Powered by GitBook
On this page

Was this helpful?

  1. Database Testing

Test Cases

Manual Test Case

Test Case ID
Test Case Description
Test Steps
Expected Results
Actual Results
Pass/Fail

TC-001

Verify data integrity

1. Retrieve a record from the database. 2. Modify a value in the record. 3. Update the record in the database. 4. Retrieve the updated record from the database.

The modified value should be reflected in the updated record.

TC-002

Verify data validation

1. Attempt to insert a record with invalid data into the database. 2. Attempt to update a record with invalid data in the database.

The database should reject the invalid data and return an error message.

TC-003

Verify data security

1. Attempt to access the database without proper authentication. 2. Attempt to access a record in the database that the user does not have permission to access.

The database should deny access and return an error message.

TC-004

Verify performance

1. Insert a large number of records into the database. 2. Retrieve a large number of records from the database. 3. Update a large number of records in the database. 4. Delete a large number of records from the database.

The database should be able to handle the operations within an acceptable timeframe without slowing down or crashing.

Scenario:

You are a database administrator for a company that sells products online. You have a database that contains information about products, customers, orders, and shipments. Your goal is to ensure that the database is reliable, efficient, and secure.

Test Cases:

Test Case
Explanation
Application to Scenario

Verify that a new record can be added to the database.

This tests whether the database can successfully add new data.

Add a new product to the database.

Verify that a record can be updated in the database.

This tests whether the database can successfully modify existing data.

Update the price of a product in the database.

Verify that a record can be deleted from the database.

This tests whether the database can successfully remove data.

Delete a customer record from the database.

Verify that a record can be retrieved from the database.

This tests whether the database can successfully retrieve data.

Retrieve the order history for a specific customer.

Verify that a table can be created in the database.

This tests whether the database can successfully create a new table.

Create a new table to track product reviews.

Verify that a table can be dropped from the database.

This tests whether the database can successfully delete a table.

Drop the table that tracks abandoned shopping carts.

Verify that a unique constraint can be added to a table.

This tests whether the database can successfully enforce uniqueness on a column.

Add a unique constraint to the email column in the customer table.

Verify that a foreign key constraint can be added to a table.

This tests whether the database can successfully enforce referential integrity between tables.

Add a foreign key constraint to the order table that references the customer table.

Verify that a primary key constraint can be added to a table.

This tests whether the database can successfully enforce uniqueness and non-nullability on a column.

Add a primary key constraint to the product table that uses the product ID column.

Verify that a check constraint can be added to a table.

This tests whether the database can successfully enforce a custom condition on a column.

Add a check constraint to the order table that ensures the order amount is greater than zero.

Verify that a trigger can be created on a table.

This tests whether the database can successfully execute a custom action on a table.

Create a trigger on the shipment table that sends an email notification to customers when their order is shipped.

Verify that a view can be created in the database.

This tests whether the database can successfully create a virtual table based on other tables.

Create a view that shows the total revenue generated by each product.

Verify that a stored procedure can be created in the database.

This tests whether the database can successfully create a reusable block of code.

Create a stored procedure to update the inventory levels of a product based on recent orders.

Verify that a user can be granted permissions on a table.

This tests whether the database can successfully manage access to data.

Grant a customer service representative permission to view customer records.

Verify that a user can be denied permissions on a table.

This tests whether the database can successfully restrict access to data.

Deny a marketing analyst permission to view sales data.

Verify that a backup can be created for the database.

This tests whether the database can successfully create a copy of the data for disaster recovery.

Create a backup of the database every night at midnight.

Verify that a restore can be performed on the database.

This tests whether the database can successfully recover from a backup.

Restore the database from a backup after a hardware failure.

Verify that a database can be detached from the server.

This tests whether the database can successfully be removed from the server for maintenance.

Detach the database from the server to install a software update.

Verify that a database can be attached to the server.

This tests whether the database can successfully be added back to the server after maintenance.

Attach the database back to the server after completing the software update.

Verify that a database can be renamed.

This tests whether the database can successfully be given a new name.

Rename the database to reflect a recent rebranding of the company.

Verify that a database can be shrunk.

This tests whether the database can successfully reduce its size.

Shrink the database to free up disk space.

Verify that a database can be expanded.

This tests whether the database can successfully increase its size.

Expand the database to accommodate increased traffic during a holiday sale.

Verify that a database can be optimized.

This tests whether the database can successfully improve its performance.

Optimize the database by rebuilding indexes and updating statistics.

Verify that adatabase can be backed up while in use.

This tests whether the database can successfully create a backup while users are accessing it.

Create a backup of the database during business hours to ensure continuous availability.

Verify that a database can be migrated to a new server.

This tests whether the database can successfully move to a different server.

Migrate the database to a new server with better performance and reliability.

Verify that a database can be replicated.

This tests whether the database can successfully create copies to improve performance and availability.

Replicate the database to a secondary server for load balancing and failover.

Verify that a database can be mirrored.

This tests whether the database can successfully create a secondary copy for disaster recovery.

Mirror the database to a secondary server for automatic failover in case of a primary server failure.

Verify that a database can be clustered.

This tests whether the database can successfully be distributed across multiple servers for high availability.

Cluster the database across multiple servers to ensure continuous availability and scalability.

Verify that a database can be secured.

This tests whether the database can successfully protect against unauthorized access and attacks.

Secure the database by implementing strong passwords, encryption, and access controls.

PreviousInterview QuestionsNextSQL Practice Sites

Last updated 1 year ago

Was this helpful?

๐Ÿ““