JSTest.NET from Nuget integration with MS Test Series Part 6

This is the concluding post part 6 of 6 posts. you can find the previous post here. Guideline and thought process of using the complete structure: Always keep the JavaScript tests in .js files under Test projects Refer production files from Main project. Reason to write tests for each function separately because it will help in troubleshooting  to correct… Continue reading JSTest.NET from Nuget integration with MS Test Series Part 6

Published
Categorized as Technical

JSTest.NET from Nuget integration with MS Test Series Part 5

This is part 5 of 6 posts, you can find the previous post here. Integrating MS Test to execute the JavaScript test: Code is explained below: File names of JavaScript test file must be written as private class variable. Setup must load all production file. RunTest Method will be used to execute the Tests. Read post… Continue reading JSTest.NET from Nuget integration with MS Test Series Part 5

Published
Categorized as Technical

JSTest.NET from Nuget integration with MS Test Series Part 3

This is part 3 of 6 posts, you can find the previous post here. Sample JavaScript test in .js file: The Add function mentioned in the previous post can have a test code as mentioned below: The keyword here is assertEqual to match the expected output to actual output. Other points will be explained in following… Continue reading JSTest.NET from Nuget integration with MS Test Series Part 3

Published
Categorized as Technical

JSTest.NET from Nuget integration with MS Test Series Part 2

This is part 2 of 6 posts, you can find the previous post here. Structural Overview of different component & its role: Below mentioned are different component of Tests: Actual JavaScript file which contains the production code. JavaScript Test file which contains the test methods. JavaScriptTestBase.cs is a helper class for writing better MS Test. Actual… Continue reading JSTest.NET from Nuget integration with MS Test Series Part 2

Published
Categorized as Technical

JSTest.NET from Nuget integration with MS Test Series Part 1

JSTest.Net is an framework for xUnit testing of java script without browser. You can find the basic information here. Since I cannot complete the detail information, this is a 6 part series of post Part 1: Intro & Installation of JSTest.Net using NuGet in Visual Studio. Part 2: Structural Overview of different component & its role. Part 3:… Continue reading JSTest.NET from Nuget integration with MS Test Series Part 1

Published
Categorized as Technical

Json Data between UI and handler

Below are the code snippet to JavaScript and C# handler code. Objective is to know how to keep the property name of the classes in JavaScript and C#. 1. Create a javascript object in .js file 2. Convert javascript object to Json string using a tool JSON.stringify 3.  Pass it as 3rd parameter in DoAjaxCall() function 4.Now in… Continue reading Json Data between UI and handler

Published
Categorized as Technical

How to replace a column name in multiple stored procedure efficiently and quickly?

Below are steps to replace column name form multiple stored procedure. Refrence is found here. Step 1. Press Ctrl+T or change “Result to Text” mode. Step 2. Execute below comand. Replace “” with text, you want to search in store procedures. Step 3. Now copy the restult and paste in new window. again Press Ctrl+T or… Continue reading How to replace a column name in multiple stored procedure efficiently and quickly?

Published
Categorized as Technical