Академический Документы
Профессиональный Документы
Культура Документы
Unit 9
Unit 9
System Analysis II
Structure:
9.1
Introduction
9.2
File Organisation
Serial organisation
Sequential organisation
Indexed sequential organisation
Inverted list organisation
Random file organisation
9.3
System Testing
9.4
Test Plan and Test Data
Test plan
Test data
9.5
Types of System Test
Unit testing
Integration testing
System testing
9.6
Summary
9.7
Glossary
9.8
Terminal Questions
9.9
Answers
9.10 References
9.1 Introduction
In the previous unit, you studied information gathering tools like interviews,
questionnaire, etc. Also you came to know about different tools of structured
analysis like data flow diagram (DFD), data dictionary, etc.
In this unit, we will study the concept of file organisation and system testing.
You will study various methods of organising files like sequential, indexed
sequential, etc. Also, you will understand the concept of test plan and test
data. You will study various types of system test which include unit testing,
integration testing, etc.
You can define file organisation as a process of accumulating data in a file.
There are a various methods of organising files which are discussed in this
unit. System testing is defined as a process of carrying out various tests on
Sikkim Manipal University
Unit 9
Unit 9
Sup. No.
Supplier Name
1149
S01
Calder, James
8302
S04
Brand, Matt
0755
S02
Teff, Sam
Unit 9
Sup. No.
Title of Book
0755
S02
Teff, Sam
1149
S01
Calder James
8302
S04
Brand, Mat
Unit 9
Unit 9
end. You can search the page number of any topic by just going through this
index. Likewise, in Indexed Sequential Organisation, the records are
accumulated in sequence on a data file. However, a second file (known as
Index File) also appears which allows accessing any record directly.
Thus, you can access the records of indexed sequential files sequentially as
well as directly. Direct Access Storage Device (DASD) is used to store the
files for indexed sequential organisation. The floppy and hard disks are
generally considered as direct access storage devices.
Let us first discuss the different areas of disk storage to recognise the
indexed sequential organisation. The three areas of storage where data is
stored are:
Index Area: The values of key fields of records and their storage
locations on the disk are included in an index area.
Unit 9
area by looking for its index value. The new record with employee no. 02,
when incorporated afterwards, is accumulated in overflow area and its
overflow pointer value will be 2000. So, this new record is stored logically in
ascending sequence of Employee no. but physically accumulated on
another storage area.
Advantages of indexed sequential files: The advantages of indexed
sequential files are as follows:
The indexed sequential files offer a very powerful tool to the user. Apart
from processing the files sequentially, they can also be processed
randomly.
In these files, the searching is very quick since the file management
system processes the data records in line with its index value. This
method is known as the Indexed Sequential Access Method (ISAM).
You can also call these files as ISAM files.
Unlike sequential files, when records are updated or inserted, rewriting
the entire file is not required.
Table 9.3: An Example of Indexed Sequential File displaying
Areas of Storage Prime Area
Employee No.
Employee Name
Record Pointer
Overflow Pointer
01
PreetiArora
1002
2000
04
Dr.Suchitra
1006
2010
10
Gaurav
1010
2020
11
Dr.Surendra Kumar
1202
3000
15
Sweety
1206
3090
20
Dr.SudhirKhetrapal
1210
3020
Index Area
Employee No.
Record Pointer
202
S01
199
S02
198
S04
200
S03
201
S02
Unit 9
Overflow Area
Employee No.
Employee Name
Overflow Pointer
02
Mrs.Lajwanti
2000
12
BaldevArora
3000
05
Anita Arora
2010
Unit 9
10:10, but the A8 value leaves at 8:15. The record at position A8 in the data
location area is exhibited for follow up.
Advantages of inverted list organisation: The Inverted List Organisation
includes the following advantages:
The inverted lists are best suitable for applications that demand
particular data on numerous keys.
They are perfect for static files as additions and deletions leads to costly
pointer updating.
9.2.5 Random file organisation
The file organisation where records are organised at random and are not
required to be in sequence is called Random or Direct File Organisation.
In direct access or random file organisation, records or files are positioned
at random. There is no need for records to be in sequence since you can
update the records directly and rewrite them back in the similar location.
Based on software commands, new records are added at the end of the file
or inserted in desired locations.
Records are obtained by addresses that state their disk locations. You need
an address for locating a record, for connecting records or for setting up
relationships.
There are two types of addresses, that is, absolute or relative. An absolute
address signifies the physical location of the record. It is generally specified
in the format of sector/track/record number. For example, 4/13/5 signifies,
go to sector 4, track 13 of that sector and the fifth record of the track.
One difficulty that occurs with absolute address is that they turn out to be
invalid when the file including the records is repositioned on the disk. One
approach to avoid this is to use pointers for the updated record.
A relative address offers a record location in relation to the starting of the
file. Fixed length records must be there for reference. A record can also be
located by the number of bytes it is from the starting of the file. Dissimilar to
absolute addressing, if the file is moved, pointers are not required to be
updated. This is because the relative location of the record is the same as
before.
Unit 9
Unit 9
Activity 1
Visit a nearby organisation and find out the method of file organisation
used and the reason for the use of that particular method. Also, find out
the activity and volatility of their files. Is the method used, efficient for the
kind of business or trade the organisation deals in?
After coding, each program unit must be tested to ensure that it works in a
correct manner. Afterwards, programs are tested in groups, and lastly the
entire system is tested by the development team. The first step is to compile
the program. This is done by means of a CASE tool or a language compiler.
This procedure identifies syntax errors, which are known as language
grammar errors. The errors are corrected by the programmer until the
execution of a program correctly.
Unit 9
Unit 9
Now let us understand the concept of test plan and test data which plays an
important role in testing. These are discussed in the following section.
Self Assessment Questions
6. _______________ of a program is done by means of a CASE tool or a
language compiler.
7. When the project team holds a meeting with users, this process is
known as a structured walkthrough. (True/False)
Unit 9
monitoring and testing reports will be developed with the help of the reviews
received.
You should be clear regarding the methodology used for the test. You can
design better test cases by making the plan more formal. You must
recognise the limits inbuilt in the tests themselves. You must have a steady
schedule for testing. Performing a particular set of tests at suitable points in
the process is more significant than running the tests at a particular time.
Roles of data in functional testing: A large amount of data is consumed
and produced by testing. Data is influenced, extrapolated, summed up and
referenced by the functionality under test, which lastly sends out more data
to be checked against expectations.
Data is an essential part of most functional testing. Testing can be improved
by a cautious selection of input data. The various factors are described
below.
1. A system is programmed by its data: Many current systems permit
incredible flexibility in the manner their fundamental functionality can be
used. Configuration data can state control flow, data handling,
presentation and user interface. A system can be configured to fit
numerous business models, work (almost) flawlessly with various
cooperative systems and offer modified experiences to a host of
dissimilar users.
2. Functional testing suffers if data is poor: Tests having poor data may
not illustrate the business model efficiently. They may be tough to
preserve, or need lengthy and complicated setup. They may obscure
difficulties or avoid them on the whole. Poor data is likely to effect in
poor tests that take much time to perform.
3. Good data is vital to reliable test results:The main objective of
functional testing is to permit the test to be repeated with the similar
result, and varied to permit analysis. Without this, it is hard to converse
problems to programmers, and it can turn out to be complicated to have
assurance in the QA(Quality Assurance) team's outcomes, whether they
are good or bad. Good data permits analysis, effective reporting, and
permits tests to be repeated with assurance.
Unit 9
4. Good data can help testing stay on schedule: A simply logical and
well-understood dataset is a tool used to assist communication. Good
data can to a great extent help in quick analysis and quick re-testing.
Regression testing (Regression testing is type oftesting that seeks to
uncover new software bugs, or regressions, in existing functional and
non-functional areas of a system after changes have been made to
them) and computerised test maintenance can be made faster and
simpler by means of good data, while an elegantly selected dataset can
frequently permit new tests without the overhead of new data. A
document that offers and keeps a record of significant information
regarding a test project is considered as a formal test plan.
Self Assessment Questions
8. A Test Plan is a helpful method to plan through the attempts required to
____________________ the acceptability of a system product.
9. Tests having poor data can describe the business model efficiently.
(True/False)
Unit 9
The first step in testing is unit testing, followed by integration testing, and
then system testing. Now, let us discuss these different types of system
tests.
9.5.1 Unit testing
Unit testing is defined as the testing of an individual program or module. The
purpose is to recognise and remove execution errors that could make the
program to terminate unusually, and logic errors that could have been
overlooked throughout desk checking.
Test data should enclose both accurate data and erroneous data and should
test all probable situations that could take place. For example, for a field that
permits a range of numeric values, the test data should enclose minimum
values, maximum values, values outside the suitable range, and
alphanumeric characters. Throughout testing, programmers can make use
Unit 9
of software tools to find out the location and possible causes of program
errors.
In unit testing, programmers test theprograms that interrelate with other
programs and files independently, before they are incorporated into the
system. This needs a technique known as stub testing.
In stub testing, the programmer simulates each program conclusion or
result and exhibits a message to specify whether or not the program is
executed in a successful manner. Each stub displays an entry or exit point
that will be linked afterwards to another program or data file.
9.5.2 Integration testing
Integration testing is defined as a testing of two or more programs that rely
on each other. It is also known as link testing. For example, consider a
system with a program that verifies and confirms client credit status, and a
different program that updates data in the client master file. The output from
the validation program turns out to be input to the master file update
program. Testing the programs separately does not assure that the data
passed among them is accurate.
Only by carrying out integration testing for this pair of programs can you
confirm that the programs work jointly in a proper manner. Figure 9.6 display
integration testing for numerous groups of programs. Remember, that a
program can contain membership in two or more groups.
Systems analysts typically produce the data that they utilise in integration
testing. Similar to the case with all types of testing, integration test data
takes into account both usual and unusual circumstances. For example,
integration testing might comprise passing typical records among two
programs, followed by blank records, to simulate an abnormal event or an
operational problem.
You should make use of test data that simulates real conditions since you
are testing the interface that connects the programs. A testing series should
not progress towards the integration test phase unless it has been carried
out properly in all unit tests.
Unit 9
Unit 9
Unit 9
9.6 Summary
Let us recapitulate the important concepts discussed in this unit:
File organisation depends on two characteristics, that is, activity and
volatility.
Serial Organisation is defined as the process of storing records serially
without any logical order.
Sequential file organisation is defined as the process of arranging the
records sequentially in a predetermined order.
In Indexed Sequential Organisation, the records are accumulated
sequentially on a data file where a second file (known as Index File) also
appears which allows accessing any record directly.
The inverted list organisation is used to maintain an index similar to the
indexed sequential method.
In direct access or random file organisation, records are positioned at
random all through the file.
System testing performs different types of tests in a system and
identifies the errors occurring in the system.
A Test Plan is considered as a document that illustrates the scope,
strategy, resources and schedule of projected test activities.
The purpose of unit testing is to recognise and remove execution errors
that could make the program to terminate unusually, and logic errors
that could have been overlooked throughout desk checking.
Integration testing is defined as a testing of two or more programs that
rely on each other.
During a system test, users enter data, as well as samples of actual, or
live, data, execute queries, and generate reports to reproduce actual
operating conditions.
9.7 Glossary
Unit 9
9.9 Answers
Self
1.
2.
3.
4.
5.
6.
7.
Assessment Questions
Volatility
True
Sequential
False
Random or Direct
Compilation
False
8.
9.
10.
11.
12.
Unit 9
Authenticate
False
Stub
True
Acceptance
Terminal Questions
1. File organisation is performed to make sure that records are obtainable
for processing. Various methods of organising files are:
Serial Organisation
Sequential Organisation
Unit 9
9.10 References
E-references:
http://instructional1.calstatela.edu/dgadish/CIS%20520/CIS520_CH10.
pdf, 21-03-12
http://www.exforsys.com/tutorials/testing/system-testingwhywhathow.html, 21-03-12
http://www.pearsonschoolsandfecolleges.co.uk
http://www.pearsonschoolsandfecolleges.co.uk
http://www.kabinfo.net/kabinfol_SystemTesting.asp
http://books.google.co.in/books?id=xZVJKFtYrlsC&printsec=frontcover#
v=onepage&q=chapter11&f=false