Sie sind auf Seite 1von 10

Copyright 2012 The Nielsen Company. Confdential and proprietary.

Fitnesse SMD session

Fitnesse- Introduction

FitNesse is an open source automated framework created for


software testing purposes.

FitNesse works by executing Wiki pages which call custom


written Fixtures. Fixtures are a bridge between the Wiki pages

Copyright 2012 The Nielsen Company. Confdential and proprietary.

and the System Under Test (SUT), which is the actual system
to test.

These Fixtures can be written in many programming


languages like Java, C#, and Ruby

Whenever a Wiki test is executed, the Fixtures works by


calling the System Under Test (SUT) with the appropriate
parameters, execute a piece of business logic in the software
system, and pass the results (if any) of the SUT back to the

Installing fitnesse

1.Download the most recent version from the web and place
it in server.

2.Run java -jar ftnesse.org. FitNesse will extract itself and


will try to run itself on port 80.

3.Access FitNesse by pointing your web browser to

Copyright 2012 The Nielsen Company. Confdential and proprietary.

http:/localhost:<port-number> to see the FitNesse Front page

Importing user created jar files in


fitnesse

User can create their own jar fles based on the requirement
and import it via ftnesse by placing the jar fles in ftnesse
server and using the below command in ftnesse front page.

Copyright 2012 The Nielsen Company. Confdential and proprietary.

!path <jar fle location>

Creating pages in fitnesse

1.Click edit on the front page

2.Type [[Pagename] [Frontpage.Pagename]]

3.Click Save

4.Page will be created in the front page and we can edit this

Copyright 2012 The Nielsen Company. Confdential and proprietary.

page by clicking on the question mark symbol.

Existing fixtures in fitnesse

TableAccumulationFixturePipe: This fxture creates a pipe


delimited fle in the ftnesse server by taking an input fle.
Input fle can be created in ftnesse by Copying data from
excel and pasting it in ftnesse page edit window.Clicking
Spreadsheet to FitNesse will convert copied spreadsheet
content in to FitNesse tables.

Copyright 2012 The Nielsen Company. Confdential and proprietary.

FtpFixture:This fxture takes destination server details, fle name


and path and transfers the fle created in ftnesse server to
qa server path.
InformaticaFixture: This fxture gets the unix command line as
input and executes it in unix box.
NetezzaFixture: This fxture gets netezza server details as input
and establishes connection with netezza DB. If we pass the
query as input ,this fxture will run the SQL in DB and ftnesse

Existing fixtures in fitnesse

OracleFixture:This fxture gets oracle connection details as input


and establishes connection with oracle DB. If we pass the
query as input ,this fxture will run the SQL in oracle DB and
ftnesse will turn green if the query ran sucessfully.
DB_Comparator: This fxture can be used to compare data from
two different databases in different servers.It gets database

Copyright 2012 The Nielsen Company. Confdential and proprietary.

details and SQL as input and extracts the data from DB to a


flat fle and fle to fle comparsion is done.
Fitnesse will turn green if data matches exactly. If there are
differences, ftnesse will turn red and we can view the
mismtach results in the html link.
TwoDriverComparator:This fxture will compare data between two
different connections i.e netezza and oracle.
7

Running a test in fitnesse

Once test page is created,click on the properties and enable


the test button.

When we click on the test button, ftnesse page will execute and
turns green if the test passes and red if it fails.

To execute a set of ftnesse pages in a organised manner, we

Copyright 2012 The Nielsen Company. Confdential and proprietary.

can enable the suite button in properties which will execute


all the subpages in that link in alphabetical order.

Copyright 2012 The Nielsen Company. Confdential and proprietary.

QUESTION
S?

Copyright 2012 The Nielsen Company. Confdential and proprietary.

THANK
YOU!!!

10

Das könnte Ihnen auch gefallen