Currently Browsing

Posts Tagged ‘ automated testing ’

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/

Some thoughts on Sauce

We’re started using this service a long time ago, and I can say they improved a lot in the recent years.
It became a reliable cloud system for running automated tests and for manual testing with a wast amount of virtual machine/browser combinations and what I love about them that almost everything is documented.

sc1

Graphwalker – how to start guide

Graphwalker (http://www.graphwalker.org/) is a state machine based tool, written in Java, generating sequences of tests both for online and offline testing. Diagrams are not UML models (which do not have any functionality) and as a result, much easier to get start with them.
The goal is to create long and unpredictable test sequences. The tool allows to create unique variation of paths across the edges and make these all randomly. The models do not contain any stop or exit points, however stop criteria make it possible to shut them down. In online test cases it makes possible to create the „walking path” during the actual execution. Graphwalker also supports switching between models.

Overview of automated testing

Software testing has become a more and more significant step in the process of developing. As requirements and expectations grow in IT organizations, the relevance of testing grows in the case of small and big companies as well. The process has two main parts: manual and automation testing and they have the same types, but the essential difference between them is the way of execution. Both types of testing have pros and cons, so testers have to choose the good one in the given situation. In this text the issue of automation testing will be discussed, more precisely the problem of how could a developer who has not done this kind of projects before start it and which is the best way to go.
Test automation offers a possibility to improve the efficiency of the testing. Once automated tests have been developed, they can be run quickly and repeatedly. It could be a cost-effective method for the testing of software products.

Writing effective test cases

Everybody can write a test case. What’s difficult is writing an effective test case. Luckily it’s a learnable skill, but it requires in-depth knowledge of the software it is written for.

Before we start writing one let’s ask “What is a test case?”.  A test case can be defined as “a set of conditions or variables under which a tester will determine whether a software, or a piece of it, works correctly”.

Open source testing tools

There are tons of applications available for testing, some of them are free(open source), some of them are commercial. This time I have prepared a list of useful and open source testing tools.

Selenium – Web app testing tool – http://seleniumhq.org/

Selenium is a suite of tools such as Selenium IDE, Selenium Remote Control and Selenium Grid used for testing web applications. Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. It supports record and playback.

Test complete – first impressions

As a QA engineer today, it is hard to choose the right tools to help us get our job done and to remain competitive. There is a constant need to try out and learn how to use these new tools.

Today we will look into TestComplete.

On their site, there is a one-month trial which can be downloaded and installed. The application is well documented and there are a lot of video tutorials which can speed up the learning process.

Here are some instructions for those who want to quickly try out this tool:

1. To create a test suite open TestComplete and click on “Create a New Project”.

Create a New Project

Enter project name and click finish.

Enter Project Name