Posts

Showing posts with the label Microsoft Visual Studio 2013

Open Dialog Box from Server side code

Open Dialog Box from Server side code If your requirement is to open a dialog box from the code behind, this post will help you in this. Mainly we need this when we are performing the validation on server side and wants to open the error messages in dialog box. Follow the below steps to implement this in your web application Step 1 – Prerequisite                 Jquery CDN < script   type ="text/javascript"   src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></ script > < script   src ="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"   type ="text/javascript"></ script > Step 2 – Html Code             < div id ="dialog" title ="Warning" style =" display :none;">                 ...

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...

NuGet Package Manager - Execution Policy Error on VS 2013 & VS 2015

Last night, I installed update 5 of Microsoft Visual Studio 2013 and I experienced strange behaviour in entity framework. I was unable to perform any database operation. I wasted couple of hours in trying multiple options but all ended up with nothing. I started googing the error on the internet and found the root cause of the issue. I am hoping that this will help and save the time of other. The actual culprit of this issue was nuget and you can fix this issue by installing the latest version of nuget. You can download the compatible installer from below url’s. For VS 2013 https://github.com/NuGet/Home/releases/download/2.8.7/NuGet.Tools.vsix For VS 2015: https://github.com/NuGet/Home/releases/download/3.1.1/NuGet.Tools.vsix