? QA Design Gurus: Node.js ! What is it for testing

Mar 27, 2015

Node.js ! What is it for testing

Node.js has become extremely popular for its ability to run javascript in any platform with a Google chrome runtime engine for windows,unix and mac platforms, moreover as a server. Most important features that makes node.js adaptable are

1. Non-blocking event driven approach for handling requests(less CPU Intensive)
2. Two way HTTP communication
3. Amazing source-control mechanism

In addtion to that, it is all about javascript. So now, what is it for testing and where can we use it.

Node.js for testing javascript
In the Agile world, changes happen very frequently and rapidly. To keep upto the speed and validate the functionality instead of the UI changes one can just run the javascript over node.js on only platform. Instead of using heavy UI tools,one can use node.js which is sufficient and leight weight to execute and validate the javascript functionality.

Node.js for API  and BaaS testing
While working on a heterogenous applications to make everything consumable across different applications/languages they have to be exposed as services, that is where we have REST and SOAP API's. Executing REST API's are very easy using node.js and at the end it gives json which does not need to parsed and straight away displayed in the browser if we would like to look it in the browser elements. In addition to REST, node.js provides few libraries to even test SOAP API's like node-soap. The same applies for backend services which might be either REST or SOAP API's.

Node.js in Performance testing
While doing Performance testing, node.js can be developed as a driver to execute,monitor and display the results. Most of you have might seen the sample chat application that one can develop using node.js. We can take the advantage of node.js of two HTTP Communication in displaying the response times/execution times or OS resources data in graphs immediately.


Rather developing applications, hosting and maintaing them is very difficult. Progress helps you do that much easily with Modulus. Progress Modulus help's you deploy and run your node.js application on the cloud or on-premise.
In addition to that Progress Modulus provides detailed Performance metrics of the node.js application and a high speed load balancer(faster than nginx).

With all these tools, I hope it will be fun to develop apps and test using node.js

No comments:

Post a Comment