Académique Documents
Professionnel Documents
Culture Documents
SUMMER TRAINING(COE 409) PROJECT REPORT ON FITNESSE-API TESTING DONE AT THE ROYAL BANK OF SCOTLAND
Supreet Narang 314/CO/09 Final Year, NSIT, DWARKA
2|Page
PREFACE
The purpose of this report is to explain what I did and learned during my internship period with the Royal bank of Scotland in the Division of Post Execution Services. The report is also a partial fulfillment of the requirement for the award of the degree of Bachelor of Engineering in Computer Engineering. The report focuses primarily on the assignments handled, working environment that I encountered when handling various tasks assigned to me by the supervisor.
3|Page
ACKNOWLEDGEMENT
I want to express my deep sense of gratitude to Mr.Prashant kumar Jha, Technical manager The supervision and support that he gave truly help the progression and smoothness of the internship program. The co-operation is much indeed appreciated My grateful thanks also goes to Mr. Kshitij Gupta and rest of the team member of post execution services. A big contribution and hard worked from them during the eight week is very great indeed. Besides, this internship program makes me realized the value of working together as a team and as a new experience in working environment, which challenges us every minute.
4|Page
CHAPTER TWO ..................................................................................................8 2.0 Acceptance testing ........................................................................................ 8 2.0.1 What is acceptance testing? 2.0.2 Advantages of Acceptance Testing 2.0.3 Where does testing fits in? 2.1 Fitnesse........................................................................................................... 9 2.1.1 wiki pages 2.1.2 Fixtures 2.1.3 Test System 2.2 Advantage of Fitnesse As a tool ..........................................................................11 2.3 Acceptance test vs unit test................................................................................. 12 2.4 Fitnesse test setup-Netting use test.................................................................... 12 2.5 Fitnesse test setup-Splitting use test13
5|Page
6|Page
RBS India offers an unparalleled suite of client services in India. Using global reach and drawing on the expertise of our team of research, sales and trading, equity capital market and mergers & acquisitions (M&A) advisory professionals, the bank has led many of the biggest and most innovative landmark transactions in India for Corporate and Institutional Clients. The bank offers a broad range of transaction banking, fixed income and foreign exchange products and services, including sales and trading, fixed income origination, derivatives, structured lending and commodity financing. Additionally, it provides a diverse range of product offerings including personal loans, credit cards, savings accounts, financial planning, investment and insurance services, to meet the everyday financial needs of over a million Personal Banking clients in India. Asset Management is among the fastest growing asset managers, with just two years of operations in the country. The bank has ever-increasing distribution and aim to emerge as a leading player in the Indian asset management industry. Leveraging the Group's comprehensive research and diverse range of investment products, it offers clients investment options in fixed income, equities, money markets and structured products. Microfinance program, the largest amongst its peer foreign banks in India, is aimed at delivering credit to our target community of impoverished rural woman through intermediaries called microfinance institutions.
7|Page
Client and Sales Equities and Structured Retail Fixed Income Currencies and Commodities Risk and Finance Lending, Operations and Financing Business Improvement
8|Page
9|Page
tests will reveal defects within the system. The work associated with UAT begins after requirements are written and continues through the final stage of testing.
FitNesse enables customers, testers, and programmers to learn what their software should do, and to automatically compare that to what it actually does do. It compares customers' expectations to actual results. It's an invaluable way to collaborate on complicated problems (and get them right) early in development.Fitnesse is a WIKI WEB SERVER.It is more like a wiki web GUI working on a test system(slim and fit).Acceptance tests are what Fitnesse is about. Fitnesse can be described in the terms of three major system: 1.Wiki Pages 2.Fixtures 3. Test System(slim and fit)
2.1.2 Fixtures
What is Fixture Code? The fixture is the Java (or some other supported language) class that Slim to process the contents of the table.
10 | P a g e
JdbcFixtures : A set of Fixtures that provide simple database access. FitLibrary : Home of the DoFixture, as well as many other helpful fixtures and add-ons. JfcFixtures A set of Fixtures to test through Swing GUIs . CommandLineFixture:This fixture launches commands as if they were run from a shell's command line input. ServiceFixture :This fixture library can be used to test service oriented or distributed systems. It also provides fixtures to access database.
11 | P a g e
Slim is newer. As the diagram shows, there is very code on the SUT. This is because all the table processing is done inside FitNesse, within the Slim runners. The Slim Executor and the fixtures are the only code that lives on the SUT. The Slim Executor is very small and easy to port. The Test pages are broken down into simple instructions by the Slim Runners. Those instructions are passed to the Slim Executor which directs the fixtures to call the SUT. This means that new features added to Slim Runners will not require changes on the Slim Executor, and that all test pages written for a Slim Runner will work on any different Slim platform.
2.2 The Advantages of FitNesse Tests
Fitnesse automated acceptance tests have several advantages over many kinds of traditional black-box, GUI-based functional tests: 1. Fitnesse tests can give us feature feedback very early in the project. In fact, the tests ought to be written first, so programmers can code to the tests. 2. Fitnesse tests can give us feature feedback very frequently. They can be run manually or automatically by anyone with web access to the server, as frequently as required. Every week, every day, every hour in a crunch. 3. Fitnesse tests are deterministic: they either run green or red. If they run green for a given requirement, either the requirement is done and we move on to others, or the set of tests is not yet exactly right, in which case we refine them. Either way, we are successively refining the system in an orderly way. With each new test running green, we can all see the system getting better, more valuable, closer to what we need. Being based on example data, Fitnesse tests exercise more paths through the business logic. When you use Fitnesse, you run less risk of missing important features or functional behavior.
12 | P a g e
FitNesse: Building the Right Code FitNesse automated tests are about building the right code in the first place: the code with the most business value. While programmers may be involved in writing such tests, they are not just for programmers. FitNesse tests are especially for customers, business analysts, testing professionals, support staff, management, and all other stakeholders who need evidence that the project is producing solid return on investment.
13 | P a g e
Benefits of Netting Netting potentially address four major risk in financial area, there are
Reduction of credit risk Reduction of settlement risk Reduction of liquidity risk Reduction of systemic risk
The Netting process occurs in a single transaction and includes: 1.Cancelling all the original trades 2.Booking a single trade with the netted amounts, into one of the trades books 3. IDTs are then created to move the risk from the netted risk book to the original books, this will ensure that there are no position movements on any of the trader books.
14 | P a g e
15 | P a g e
3.2 References:
1 http://fitnesse.org/FitNesse. 2. http://fitnesse.org/FitNesse.UserGuide.CreatingTestTables 3. http://fitnesse.org/.FitNesse.UserGuide 4. http://www.guru99.com/user-acceptance-testing.html 5. http://softwaretestingfundamentals.com/acceptance-testing/