REST API Automation using request npm, Protractor, Jasmine, and TypeScript

Functional automation is done when you want to be sure everything on UI is working fine and there are no regression issues. But there is a need to test backend too so that you are sure the request is handled by the server. There are some great tools available to achieve this and I have selected ‘request’ npm so that it can easily work with my functional automation framework. Even if you are targeting the only backend this tutorial will help you achieve that.

Read More

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