# Analytic code - is it such an interesting thing?

Web applications are everywhere and most of us test them to earn our bread and butter. Broadly speaking, there are two types of web applications or websites - One which provide service and another which provide content. Web applications such as emails, facebook, bank or blogging platform provide a specific service and BBC, Times and many such sites provide content.

Irrespective of the type of web application, all of them need to understand user behaviour on the site and gather key usage pattern. One common way of doing this is with the help of analytic code. As a tester, it is important for us to understand how it works and how it can be tested. In this entry, I will discuss this in more detail and show you how iCheckWebsite can be used to test analytic code.

So what is Analytic code? Analytic code is usually a java script snippet which ...

# Software Testing - On Off Test

Inspiration for this Testometer test came from the blog ( Boundary Value Testing at WHET4 ). You can find link to this blog in the blog section. Link is not present here, as it will be interesting to do this exercise first and read blog later. This exercise gives us very good indication on how powerful boundary value tests can be and how little we use them. Mostly we use or think of boundary value analysis for integer inputs, this test gives you a chance to think differently.

This test also makes you think about the concept of powerful tests. Time is limited, so how best you can test in a given time and situation.

Lets state the problem now, you have a textbox and you need to write input in this. There are only two valid input values for this textbox (ON and OFF). You need to come up with the ...

# Software Testing - distance test

In your high school, you might have calculated distance between two points, isn't it? Well consider you have a function which takes input as co-ordinates of two points and gives length between two points as output.

There are couple of limitations, for example use only whole numbers and forgot to tell you do not give co-ordinates beyond 999 and -999

# Software Testing - Sine Wave Test

I hope you are familiar with the concept of sine waves. Idea behind this test is to make you familiar with the boundary value conditions. For people not familiar with Sine wave, this is how a sine wave looks.

Now in this figure horizontal scale represent values for the X-Axis and vertical scale represent the values for Y-Axis. Imagine you have a function, which accepts one input which is value of the X-Axis and based on the value of X-Axis, this function gives value of Y-Axis based on the sine wave drawn above. For example, if you give value of X-Axis as 2, function will return 275. Similarly, if you give value of X-Axis as 12 function will return - 275 (negative). Now based on this information you have to write boundary conditions for this function. For the purpose of this puzzle, you can assume that values for the X-Axis can ...

# Software Testing - Testometer Triangle Test

This is probably one of the most common question in software testing interview. This problem was first introduced by Myers, who was one of the first person to treat Software Testing as a different subject all together. This test check your ability to think about generating test data in a given condition.

Suppose your program accepts input as three sides of a triangle and gives output on what type of triangle is this i.e. Scalene (no sides are same), Isosceles (any two sides are same) or Equilateral (All the three sides are same). You have to come up with different test cases to test this program.

You can write your test cases here, by giving side of the triangles and evaluate your test data. Once you are done with all the test cases you can think of, check your performance. If you want to restart your test anytime, just ...

# Software Testing - Testometer Tic-Tac-Toe Game

In the game of tic-tac-toe, two players take turns marking squares of an initially empty 3 × 3 grid with either X’s or O’s. The first player always marks squares using X’s, whereas the second player always marks squares using O’s. If at any point during the game either player manages to mark three consecutive squares in a row, column, or diagonal with his/her symbol, the game terminates.

Well then lets try out testing this TIC-Tac-Toe game. Like previous Testometer Tests, this one also will measure your testing skills. You should have a good understanding of this game and its rule before start writing test cases. Here you go...

- Given a board configuration, your goal is to determine whether the board configuration represents the possible final state of a valid tic-tac-toe game. If you want to leave some field empty, give '.' instead of 'O' and 'X ...