Posts

Consume Microsoft Enterprise Library – Data Access Application Block

Image
If you planning to use the Microsoft Enterprise Library in your existing/next .Net project, you can do this by following the below steps Step 1. Add the assemblies of references of Microsoft Enterprise Library. You can do this by NuGet package manager and search for Enterprise Library Data and install Enterprise Library – Data Access Application Block. Step 2. Once the required assemblies are added to the project. The next step is to consume the assemblies based on the need of the project. Here, I am going to explain how to do the database operations. First thing first, add the below references to your class. using Microsoft.Practices.EnterpriseLibrary.Data; using Microsoft.Practices.EnterpriseLibrary.Data.Sql; Create abstract class “Database” Object        Use below code to set the connection string        Step 3. Once the database object is ready, you can perform any DML operation on database.

Create Unit/Regression test case using Selenium

Image
In this post, I am going to explain you how to automate the testing of web application using the selenium. There are 2 ways of doing this. Use Selenium IDE plugin. Only available in Mozilla. Write the custom test cases using selenium Let me explain you both the options in detail. Selenium IDE                 The plugin is available on Mozilla. You can add it and start recording the test cases. It is very simple and easy to understand. Type in the website URL for which you are recording the test cases. Click on the RED button on top right of the screen. Perform the test action on the site. In the background, selenium IDE will record your test and when you complete the test cases, click on the RED button again to stop recording. You can test the test case by clicking on the “Play” button and you have the leverage to slow and fast the execution of the test case. Cu...