How to format code in Visual Studio Code

You code fast and could not maintain the formatting of the code and or you keep getting Pull Request review comments about your poor code format. The formatted code makes life easy for reader and reviewer. Follow the simple tips given on this blog and it will make your life easy with a few clicks. If you want to auto-format your code in Visual Studio Code you have to enable…

Read More

How to create a package.json

CREATING A DEFAULT PACKAGE.JSON FILE To create a default package.json using information extracted from the current directory, use the npm init command with the –yes or -y flag You can create package.json from the command prompt or directly from Visual Studio Code. 1. Open Visual Studio Code2. Click on Terminal menu3. Click ‘New Terminal’4. You will see that Terminal is open at the bottom-most screen of Visual Studio Code5. Run below command npm init…

Read More

Install or Update WebDriver Manager

To install the required jar and driver for Selenium WebDriver when using Protractor automation too you have to install WebDriver Manager which downloads all the required jar and driver. You can install WebDriver Manager from the command prompt or directly from Visual Studio Code. This is one of the powerful features which I like most in VSCode. 1. Open Visual Studio Code 2. Click on Terminal menu 3. Click ‘New Terminal’ 4. You will see…

Read More

Install Jasmine

Jasmine is a behavior-driven development framework for testing JavaScript code. You can install Jasmine from the command prompt or directly from Visual Studio Code. This is one of the powerful features which I like most in VSCode. Step 1) Open Visual Studio Code Step 2) Click on Terminal menu Step 3) Click ‘New Terminal’ Step 4) You will see that Terminal is open at the bottom-most screen of Visual Studio Code…

Read More

Install Protractor

You can install Protractor from the command prompt or directly from Visual Studio Code. This is one of the powerful which I like most in VSCode. Step 1) Open Visual Studio CodeStep 2) Click on Terminal menuStep 3) Click ‘New Terminal’Step 4) You will see that Terminal is open at the bottom-most screen of Visual Studio CodeStep 5) Now create a folder in the location where you want to install the ProtractorStep 6) The…

Read More

Install Node.js

We will be using Node.js in end-to-end automation test design. This will help us in getting access of n-number of npm libraries. 1. Go to website https://nodejs.org 2. Click on ‘Other Download’ link 3. Download installer based on your system architecture. 4. Double click the installer and follow on-screen instructions to complete the installation.5. Now, open Command Prompt and type node, if cmd does not throw any error then NodeJS got installed successfully. node 6.…

Read More