Posts

Showing posts from 2017

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

Randomly Select Data Rows From Sql Database

If your requirement is to select random records from SQL database, you can do with the help of below sql statement select top 1 * from tableName order by NEWID ()

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  

Add/Edit/Delete rows in HTML table using JQuery

Image
If you are looking for a solution to add, delete and update the html table content at client side, you can refer below steps of this post. I am using the jQuery, HTML and REST services languages for this post. Leave your suggestion and question down below in comment section. Let’s get started   Step 1 - Jquery Files -   Step 2 - HTML Table If table columns are not define and you want to add them at run time then use below HTML table structure Otherwise, you can add the column name under thead tag. This table will be used for adding/updating the table records Also, declare the hidden field to store the HTML table row id. Use when we perform edit and delete operation on records Step 3- Add Data to HTML Table As I said in the beginning of this post that I am going to use the WCF REST services to get the data from database and service returns the data in JSON format. 1.     ...