HTML 5 Form Validation with JavaScript, JQuery and Ajax

HTML Form validation is important part while building a website having form fields. The input fields need to validated and checked if there are null values. This post will show you different types of validation possible using Client side browser validation and using JavaScript. input "required" The required attribute is a boolean attribute. When present, … Continue reading HTML 5 Form Validation with JavaScript, JQuery and Ajax

Advertisements

Test Automation: Running Cucumber feature files using Node.js

Cucumber.js is a Node.js library used for automation. Cucumber.js helps to test our site's features using pure JavaScript and the Selenium WebDriver. It is powerful library to setup your testing environment compared to java which requires you to install various packages and jars which seems to be hectic and takes time and sometimes prone to … Continue reading Test Automation: Running Cucumber feature files using Node.js

How to use Timers in Node.js?

If you want to execute after set period of time, timers are used for that. Timers are globally available in node.js. Check official documentation here. Three types of timers are: setTimeout() setImmediate() setInterval(); setTimeout() - "When I say so!" used for scheduling execution of code after set of milliseconds. accepts set of arguments - first arg. … Continue reading How to use Timers in Node.js?

Asynchronous call to a REST API using Node.js and using the Promises.

There is nothing new about sending a request to a REST API and fetching a response. In this blog we will show how can we make an asynchronous call to a API, which means your node.js code will be able to perform other operations while it requests sent to an API fetched the response. What … Continue reading Asynchronous call to a REST API using Node.js and using the Promises.

Resolved! – AWS Lex: ‘An error has occurred: Received error response from Lambda: Handled’

While invoking Lambda function through AWS Lex we generally get below error. An error has occurred: Received error response from Lambda: Handled There could be many reasons for this error to occur. Suppose lambda has following callback response function in node.js: Now according to the AWS docs here the fullfilmentState is a mandatory key field also … Continue reading Resolved! – AWS Lex: ‘An error has occurred: Received error response from Lambda: Handled’