Testing

Jmeter Data Extraction from File

Reading Time: 2 minutes When we talking about Performance Testing, Some time we faces the scenario like we have to extract data from file. Extraction data from file is very important part of performance testing. In this blog, we will learn Data Extraction from File using Jmeter. First of all we will create a .xlsx file. which consist our test data. Now we open the jmeter and make a Continue Reading

Testability of Database Applications

Reading Time: 2 minutes Testability Testability is a non-functional requirement important to the testing team members and the users who are involved in user acceptance testing. Testability is mainly depends on the degree on which software team works like SRS (software requirement specification) FRD (Functional Design document) Software system, etc. Support testing for the software application under test. Minimum number of test cases that covers the entire testing scope Continue Reading

Mocking Mail API in Scala

Reading Time: 2 minutes Few days ago I was working on a Mailing API of my project and used javax-mail API but encountered the problem of how to write unit test cases for that without actually mocking the mail. I searched for it but was unable to find a proper documentation about mocking a mailing service. I tried few methods but some were confusing and some were really complex. Then I Continue Reading

Testing grammar using ANTLR4 TestRig (Grun)

Reading Time: 5 minutes “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” –Martin Golding Quotes like above tell us the importance of testing the modules that we develop. Testing for different languages is done using various tools for example JUNIT for java, FunSuite for scala and TestRig (grun on command line) for grammar(.g4). In this Continue Reading

Integration Test Configuration in Play Framework

Reading Time: 1 minute A few days ago I’ve come across a problem while writing integration testing of my play application. My need was like to run unit and Integration test separately, in a normal sbt project, it’s easy to configure it, but I couldn’t find proper documentation about how to do this in play application, because there are difference in the folder structure in both of them. The reason why I wanted Continue Reading

How to write test-case for Scala.js application

Reading Time: 1 minute Few months ago, I created a web application ‘Weather Report‘, based on Scala.js.  In this blog, I have explained how we can test our Scala.js application. Since I am still exploring it, so I took help from scalajs-tutorial.  I have used µTest as testing library. // uTest settings libraryDependencies += “com.lihaoyi” %%% “utest” % “0.3.0” % “test” testFrameworks += new TestFramework(“utest.runner.Framework”) Here is example of test-cases: def tests = Continue Reading

How To Handle CSRF Token in Jmeter

Reading Time: 2 minutes What is CSRF– CSRF  stands for Cross-Site Request Forgery. Generally when we login in website it always ask for authentication. For the security point of view developer mostly time pass the csrftoken with login parameter. but our topic is how to handle this csrf token in jmeter. when we do load testing using jmeter and if we not handle the csrf token we get this Continue Reading

Customized Response Time in Gatling Report

Reading Time: 3 minutes Gatling is a highly capable load testing tool which gives high performance. Some times we face problem in customization response time for our application. In this Blog we will analyse how can we customize response time in Gatling. In Global Information Section In graphical format,this Section Displays the Number of Requests captures in the given Load testing. Every requests are displays according to their Response Continue Reading

TestNG

Reading Time: 2 minutes ‘TestNG is a testing framework which is inspired by junit. It is the latest framework of selenium. it gives to complete freedom to write the testcases in group or dependent to the other method. NG  stand for ‘NEXT GENERATION’. testing of next generation. TestNG gives the lot of advantage over the other testing framework. 1-we  can run the parallel test cases using TestNG. 2-It gives Continue Reading

Configuring SonarQube with Scoverage plug-in : The Complete Guide

Reading Time: 4 minutes This blog will guide you through the successful configuration of Scoverage plug-in with SonarQube for Scala source code statement coverage analysis. How Does it Work? The Scoverage plug-in for SonarQube reads the report generated by sbt scoverage plug-in and generate several reports like Statement Coverage % Analysis Lines covered by test Drilling down report to the file level The greatest advantage of SonarQube is the Continue Reading

Playing JSONP : A basic example to integrate JSONP mechanism in Play Application with the help of play-jsonp-filter module

Reading Time: 3 minutes Playing JSONP Basic example to integrate JSONP mechanism in Play Application with the help of play-jsonp-filter module play-jsonp-filter This filter enables JSONP on your existing API: any resource that returns a JSON content will return a JavaScript fragment if there is an additional callback parameter in the query string. For example, if the resource /foo gives the following JSON result: {“foo”: “bar”}, the resource /foo?callback=f Continue Reading

Playing MultipartFormData: A basic example to handle and test MultipartFormData request in Play Framework 2.3.8

Reading Time: 2 minutes Playing MultipartFormData The following blog and attached code represent an example to upload file using MultipartFormData request and Testing it into Play Application. A basic example to handle and test MultipartFormData request in Play Framework 2.3.8 The standard way to upload files in a web application is to use a form with a special multipart/form-data encoding, which lets you mix standard form data with file attachment Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!