can we do database testing in manual testing? then how we
write the test case?
Answer Posted / lakshmanaraj bg
Yes of course,
Many beginner and intermediate database testing examples in any programming language suggest that it is perfectly easy to test your application's logic with simple tests. For database-centric applications this is far away from the reality. Start using Wordpress, TYPO3 or Symfony with Doctrine or Propel, for example, and you will easily experience considerable problems with PHPUnit: just because the database is so tightly coupled to these libraries.
You probably know this scenario from your daily work and projects, where you want to put your fresh or experienced PHPUnit skills to work and get stuck by one of the following problems:
The method you want to test executes a rather large JOIN operation and uses the data to calculate some important results.
Your business logic performs a mix of SELECT, INSERT, UPDATE and DELETE statements.
You need to setup test data in (possibly much) more than two tables to get reasonable initial data for the methods you want to test.
The DbUnit extension considerably simplifies the setup of a database for testing purposes and allows to verify the contents of a database after performing a series of operations.
Sample test case for database testing:
The test case for the above requirement is mentioned below:
Test_Case_Id:1
Test_Case_Name:Check the unique identity of Student.
Description:Test case to check the unique identity of Student.
Prerequisite:
1.Database should be present 2.Student records should be present in student table.
Input Data:1.Open your database(SQl,oracle or any which you are using)
2.Open its command prompt editor.
3.Select the proper database
4.Enter the query as:"Select * from Student_Details"
5.Run the query.
Expected Result: The all unique student records will be displayed.
Validation:Student is should be unique.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Can automation testing replace manual testing?
discuss black box and white box testing is not widely used if you disagree tell me why?
What is the difference between system testing and integration testing?
What is the difference between functional testing and integration testing?
Can some one help me writing a manual test case for email applications like yahoo i need for www.everonn.com
Any one please can u tell me what is composer? An interviewer asked me do u have experience in Composer? its urgent.
What is difference between Manual testing and Pega/BPM testing?
What is Web architecture that are followed while doing online project and tell the samples of architecture?
You may undergone many projects. Do all the projects match up with customer’s expectations?
What is Wound Fixing?
What is mean by incident logging system ?
Do submit teststrategy to customer if yes at what time
1.What is bidirectional traceability ??? and how it is implemented? 2.What is Automation Test frame work ? 3. Define the components present in test strategy? 4. Define the components present in test plan? 5. Have u written Test plan ?…. thank u!plz reply........
What is the difference between latent and masked defects?
What is the test case?