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
Category: 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
JSTest.NET from Nuget integration with MS Test Series Part 4
This is part 4 of 6 posts, you can find the previous post here. Creating JavascriptTestBase C# class as a helper class: The above class is self explanatory. Other points will be explained in following post, read Part 5 here.
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
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
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
Branch in Team Foundation Server
Branches on a source control is very hard to maintain. I hope most of you will agree to it. I am not a guru in it either. We had a release based branching in our previous project. Problem statement: When we had same code file to be changed and are in different branches for 2… Continue reading Branch in Team Foundation Server
Json Data between UI and handler continued…
I hope you have read the initial part of this post here. 5. Lesson i have learned the hard way is, If we are dealing with complex objects a mix of array and complex object. Make sure the property name of the javascript class and .Net class is exactly same. For instance if the JavaScript… Continue reading Json Data between UI and handler continued…
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
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?