ISTQB Certified Software Test Engineer

Friday, November 19, 2010

How to Block a website access in your machine

How can we block access to Orkut in our machine?Even if we are trying to access ,it should not open...

This is a doubt and order from one of my friends.So I have to answer him,googled and found a solution for this .Blocked orkut in my laptop.

Here is the solution
In
C:>WIndows>system32>drivers>etc

we will find a file called hosts.

Open this file with notepad.Just append this line at the end of file

127.0.0.1 (domain name or url u want to block)

for example 127.0.0.1 www.orkut.com.

Open any of the browsers and try to access orkut now,it will show oops the site u r trying to access is wrong(Not exactly this message,some kind of message like this)

It will work only if we access the site using domain name.If we are using ip this technique will not work.

Again if you want to give access to the blocked site just remove the added entry in hosts file.

Brb.... :)

Wednesday, November 17, 2010

Difefrence between Verify and Assert in Selenium

In selenium while using IDE or RC we will find two methods for

1.Verification
2.Assertion

We know that both are used to find whether a given text(input) was present or not in the loaded(opened)webpage,but why there are two methods defined when they are behaving in a same manner??

There is a difference between these two methods

When we are executing a testcase of 10 lines(assume a testscript of 10 lines in which we used both verify (4line)and assert(6 line)),When Verify text failed(means the input text was not there in the loaded page) it gives the test result as failed but all the steps after this Verify statement were executed till the end of the scrpit.

Coming to Assert if assertion failed, testcase aborted from that line and will stop executing the remaining statements in the script

:)

Monday, November 15, 2010

Test Automation Framework

A framework is an integrated system that sets the rules of Automation of a specific product. This system integrates the function libraries, test data sources, object details and various reusable modules. These components act as small building blocks which need to be assembled to represent a business process. The framework provides the basis of test automation and simplifies the automation effort.

These are the various types of automation frameworks

Data-driven testing:Test Scripts are executed based on the data

Modularity-driven testing :Test Scripts are created based on small and independent modules

Keyword-driven testing :
The keyword-driven testing methodology divides test creation into two stages:-

Planning Stage
A simple keyword (one action on one object), e.g. entering a username into a textfield

Implementation Stage

or test designers (who don’t have to know how to program) write test cases based on the keywords defined in the planning stage that have been implemented by the engineers. The test is executed using a driver that reads the keywords and executes the corresponding code.

Hybrid testing :The hybrid Test Automation Framework is what most frameworks evolve into over time and multiple projects


Model-based testing: Model-based testing is the application of Model based design for designing and executing the necessary artifacts to perform software testing. This is achieved by having a model that describes all aspects of the testing data, mainly the test cases and the test execution environment. Usually, the testing model is derived in whole or in part from a model that describes some (usually functional) aspects of the system under test (SUT).

Will update each approach in detail :)