BlazeMeter – Work with Selenium Webdriver

It was a long time we wrote about the BlazeMeter and during this time it comes more reliable, easy to use and there are also some new, great tools (Here you can find our latest post about BlazeMeter: Previous post about loadtesting with BlazeMeter).
Maybe the most important feature is that now you can use Selenium Webdriver to describe your test scenario. There are two ways of creating Selenium Webdriver test on BlazeMeter. You can write your own Selenium Webdriver script or you can record it. Unfortunately recording function was not published yet, so we will explain it in one future post (the link will be placed here).

Handling CSRF prevention tokens / dynamic data in JMeter

In today’s web technologies a common defensive mechanism against csrf attacks is to use a synchronizer token.
This token is unique for each request and thus it blocks us from using the recorded JMeter test session off the shelf.

The solution is to identify and extract the token from the html form.
Identification can be tricky as the dynamic data not always stand out in the html code.
A good practice is to record two test cases with different user credentials and compare the parameters.
Try to identify the technologies used and Google for some documentation.

Event logging with aspects in automated testing

One of the most important goals in automated testing is to identify when and why the errors are shown in the test cases. Logging is a useful tool to find the answers to these questions. However the implementation of a logger unit is not so easy in accordance with the object oriented principles. The aspect oriented programing can solve this problem on a way where the logger unit could be a separate module besides the tests and other parts.

There are more slightly different implementations of aspect oriented programing in Java just like JBoss, Java Aspect Components or Spring but in this example the AspectJ is used to present the basic functionalities and to help with the first steps of logging on this way. Eclipse IDE needs to contain the appropriate plugin which is available here: https://eclipse.org/aspectj/

SEO for beginners

I will show you what kind of things you shouldn’t miss if you want a better SEO. Don’t expect too much after one day or a week. SEO process is like a lifetime challenge. The world of SEO is constantly changing, so you must follow and study constantly. If you had the possibility it is always a good choice to hire a professional.

It doesn’t matters is it Google, Bing or Yahoo etc. your target where you want better ranking, but keep in mind, nowadays Google had the biggest traffic between the search engines. First define your clear goals, check all the Webmaster tools for SEO what you can find, they can really help you. Do not focus your traffic only on Google, use all the way you can make it. I think on other search engines and on social networks, too.

Creating a Website Testing Plan

After the front-end design of a website has been created it’s time to test it. There are many things to consider, such as cross browser and device testing, bug tracking, team management, etc.
As the scale of the projects grows larger, a more efficient way of testing is required. This efficiency is best achieved by putting together a thorough plan.

Benefits Of Planning

Establishing the project’s specification and which browsers and devices are used will reduce development time and costs, and help to keep focus. By showing detailed reports of completed test plans, based on the project specification, a better understanding is achieved with clients and friction is reduced. Knowing that you have thoroughly tested the project you can have confidence that the deployed product will perform to specification.

Webdriver using javascript expressions in Browser Console

Today I will write about javascript expressions executing in browser consoles during testsing. Sometimes you need to inject some javascript code into the web page, for additional testing, additional features or by client request.
In some cases a simple console.log() could do the trick, but sometimes it is not enough , especially when you use an already opened cmd.exe through which you run tests, because that way the console.log() will write in that console not into the browser’s.

Java Selenium Element Locations

Sometimes you need to test are the elements in place regarding to each other. Finding inner-child elements, to check do they overlap partially or totally each other.
Are they visible and dimensions regarding the display and so forth. It depends on what do you need, there are wide varieties for testing, from which I will cover the most used cases.

Is this quick tutorial I will cover three basic tests :

  1. Is one element inside the other
  2. Do elements have overlap of borders
  3. Are two elements apart from each others (outside one another with no overlap of borders)

Let see some code, I shall use Java program language with Selenium 2 Webdriver and testNG for unit testing.

Setting up and running a simple AngularJS test

For running our tests we will use Protractor. Protractor is an end-to-end test framework for AngularJS applications.
We will use an existing Selenium grid to run our tests.

You will need NodeJS to install Protractor. You can download it from here: http://nodejs.org/.

Getting started with Webdriver python guide

If you are interested in automated testing web applications with Selenium or Webdriver but you prefer python over Java this getting started guide can help you with basic steps and setup.
The first step is to install python. You can download it from the official site (https://www.python.org/downloads/) or if you use Linux install it from the repositories.

Some useful information for Android and IOS testing

This basic information wrote down in this post is maybe unneeded and not necessary for most of users, but just remember, when you got the first Android/IOS device and need to setup something. So the information below is a basic testing startup guide.

First important thing is to check your Android or IOS device system version. The possibilities are different for Android or IOS systems and the application settings are depending of the OS versions. It is very important to the developers to have the information, which device was used for testing and which characteristics they have.