3RD CS PDF
3RD CS PDF
SCIENCE COLLEGE
PONMAR, CHENNAI-600127
Name:
Class:
PRINCE SHRI BALAJI ARTS AND
SCIENCE COLLEGE
PONMAR, CHENNAI-600127
REGISTER NUMBER:
in III B.Sc. (Computer Science) in this college has successfully completed his/her
“CASE TOOLS AND TESTING TOOLS LAB” record for the Semester-VI
EXTERNAL EXAMINERS:
1.
2.
INDEX
Ex.No. DATE TOPICS Pg.No. SIGN
DESIGN AND ANALYSIS OF UML TOOLS
1.
1 10.01.2024 LIBRARY MANAGEMENT
SYSTEM
i. 10.01.2024 Class Diagram
ii. 10.01.2024 Use Case Diagram
iii. 10.01.2024 Deployment Diagram
iv. 10.01.2024 Component Diagram
v. 10.01.2024 State chart Diagram
vi. 10.01.2024 Collaboration Diagram
vii. 10.01.2024 Sequence Diagram
viii. 10.01.2024 Activity Diagram
AIM:
To design an object oriented model for Library Management System using the
ArgoUML software and to implement it using Java.
PROBLEM STATEMENT:
The library management system is a software system that issues books and magazines to
registered students only. The student has to login after getting registered to the system. The
borrower of the book can perform various functions such as searching for desired book, get the
issued book and return the book.
CLASS DIAGRAM:
.
USE CASE DIAGRAM:
login
display page
issue book
return book
DBA
maintain database
logout
DEPLOYMENT DIAGRAM:
library management
system
DBA
user
librarian
COMPONENT DIAGRAM:
library
managem
entsystem
user
DBA
librarian
STATECHART DIAGRAM:
13: if valid
1: login
2: enter details
11: logout
12: requesting book
user
system
5: display page
14: display page
6: requesting book 15:
10: return book 3: check details
9: issue book 7: search book
4: if valid
8: display
details
libra ian
dba
SEQUENCE DIAGRAM:
librarian dba
user system
ACTIVITY DIAGRAM:
login
request book
search book
display book
details
issue book
logout
OUTPUT:
//Source file: C:\Users\HP\Downloads\lab1\Dba.java
private string
dbaName;private
integer dbPwd;
}
//Source file: C:\Users\HP\Downloads\lab1\Librarian.java
public class Librarian
public Librarian
theLibrarian;public
System theSystem;
public Librarian()
{
}
public void issueBook()
{
}
}
//Source file: C:\Users\HP\Downloads\lab1\System.java
public class System
public System()
}
//Source file: C:\Users\HP\Downloads\lab1\User.java
public class User
public Librarian
theLibrarian;public
User()
{
}
RESULT:
Thus, the various UML diagrams for library management system was drawn
and the code was generated successfully.
EX.NO:2
AUTOMATIC TELLER MACHINE
Date :29.01.2024
AIM:
To develop the project of an Automatic Teller Machine using the ArgoUML software and to
implement the software in JAVA.
PROBLEM STATEMENT:
A user may withdraw as much as many amounts as he wants until his account holds a sum greater
than his withdrawal amount. This ATM system can use any kind of interface. But it should be user friendly
and not confusing.
The system will retain information on the entire customer who has necessity rights to access the
service. It will contain the balance amount in the account, rate of interest, any special allowance for that
customer and most of all pin number of the customer. The ATM system should be compatible with any kind
of database such as MS-ACCESS, DB2, ORACLE, SQL, SERVER etc. the emphasis here is on consistency.
The ATM should provide easy access to the data for the customer. It should also have a highly secure
interface so that one can take money one behalf of others. So the security is one of the main aspects in ATM.
CLASS DIAGRAM:-
.
USE CASE DIAGRAM:
Check Exceeding
Balance
Withdraw Cash
«include»
«include»
Transfer Money
Check balance
Print Receipt
Log Out
«extend»
Bank
Customer
Deposit a Check
Deposit Cash
Log in
maintain customer
DEPLOYMENT DIAGRAM:
OUTPUT:
//Source File: C:\Users\HP\Downloads\lab2\Account.java
import java.util.Vector;
Thus the various UML diagrams for automatic Teller Machine have been
created and the code was generated successfully.
EX NO: 3
Date :09.03.2024 STUDENT INFORMATION MANAGEMENT
AIM:
To develop a project Student information system using the ArgoUML Software and to
implement the software in Java.
PROBLEM STATEMENT:
The student must register by entering the name and password to login the form. The admin
selects the particular student to view the details about that student and maintaining the student
details. This process of student information system is described sequentially through following
steps. The student registers the system. The admin login to the student information system.
He/she searches for the list of students. Then select the particular student. Then view the details
of that student. After displaying the student details then logout.
CLASS DIAGRAM:
COLLABORATION DIAGRAM:
staff
student
1: login
10: display
6: logout
7: login
4: display 11: enter profile
12: enter mark
system 16: logout
2: request access
8: request access 15: update data
server DBA
3: allow access
9: allow access
SEQUENCE DIAGRAM:
login
request access
allow access
display
view details
logout
login
allow access
mark
data
update data
logout
COMPONENT DIAGRAM:
USE CASE DIAGRAM:
logout
DEPLOYMENT DIAGRAM:
STATE CHART DIAGRAM:
view details
public DBA() {
public Server() { }
}
//Source file: C:/Users/IT/Desktop/kj/Staff.java
public Staff() {
public System() {
}
public void requestAccess()
}
RESULT:
Thus the various UML diagrams for student information system was
drawn and code was generated successfully.
EX.NO:4
Date :19.03.2024 MATRIMONY SERVICE
AIM:
To develop a project of matrimony service system using the ArgoUML software and to
implement the software in JAVA.
PROBLEM STATEMENT:
Matrimonial Websites are a variation of the standard dating websites. It is popular in
India and it is an alternative to the Traditional Marriage Broker. Matrimonial Services is an
application which will provide all Marriage related services and collect all the service providers
from all over the India at one platform to help parents looking for marriage to their sons and
daughters anywhere in the India. Matrimonial website has similar functionalities like Bharat
matrimony, Shadi.com. It allows user to register his/her profile and search his or her matching
profile and supports quick and advance profile search.
The main objective of Matrimonial Web Application is to provide grooms and brides
with excellent match making experience by exploring the opportunities and resources to meet
true potential partner. Keeping our objective in mind, a world renowned match making service
has been created that will touch the souls of millions of people all over the globe.
CLASS DIAGRAM :-
.
USE CASE DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
STATE DIAGRAM:-
ACTIVITY DIAGRAM:-
Matrimony
Registration
System
Login Server
User
Database
Search
OUTPUT:
}
RESULT:
Thus the various UML diagrams for matrimony service system have been created and the
code was generated successfully.
EX: NO: 5 STOCK MANAGEMENT SYSTEM
Date:29.03.2024
AIM:
PROBLEM STATEMENT:
The stock maintenance system initial requirement is to develop a project about the
mechanism of the stock maintenance system is caught from the customer. The requirement
are analyzed and refined which enables the end-users to efficiently use stock-maintenance
system. The complete project is developed after the while project analysis explaining about
the scope and the project statement is prepared. The process of stock maintenance is that the
customer login to the particular site to place the order for the customer login to the
particular site to place the order for the customer product. The stock maintenance system is
described sequentially through steps. These steps are a customer login to the particular site.
They fill the customer details. They place the order for their product. The vendor login and
views the customer details and orders.
USE CASE DIAGRAM:
CLASS DIAGRAM:
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
ACTIVITY DIAGRAM:
STATECHART DIAGRAM:
OUTPUT:
}
//Source File: C:\Users\HP\Downloads\lab5\Database.java
public class Database {
}
RESULT:
Thus the various UML diagrams for stock maintenance system have been created and
the codewas generated successfully.
Ex.No: 6
STUDY OF OPEN-SOURCE TESTING TOOLS
Date:05.03.2024
AIM:
To study the framework of open source testing tools such as Selenium, Apache
JMeter,TestNG,WATIS and their implementation.
Working of JMeter:
JMeter simulates a group of users sending requests to a target server, and returns
statistics that show the performance/functionality of the target server/application via tables,
graphs, etc.
3) WATIR:
Watir is an open-source web application testing framework that is designed to
make writing Selenium tests simple and efficient. Built on Selenium's Ruby language
bindings, Watir is able to drive the browser in the same way humans do.
Unlike Selenium, Watir does not have an official IDE for recording and editing test
scripts. To use Watir Webdriver one needs to write test scripts by hand using Ruby. The
architecture of Watir Webdriver does not differ from Selenium Webdriver, as Watir
Webdriver is a wrapper of Selenium Webdriver.
4) TEST NG:
TestNG is a testing framework inspired from JUnit and NUnit but introducing some
new functionalities that make it more powerful and easier to use, such as:
⚫ Annotations.
⚫ Run your tests in arbitrarily big thread pools with various policies available (all
methods in their own thread, one thread per test class, etc...).
⚫ Test that your code is multithread safe.
⚫ Flexible test configuration.
⚫ Support for data-driven testing (with @DataProvider).
⚫ Support for parameters.
⚫ Powerful execution model (no more TestSuite).
⚫ Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
⚫ Embeds BeanShell for further flexibility.
⚫ Default JDK functions for runtime and logging (no dependencies).
⚫ Dependent methods for application server testing.
TestNG is designed to cover all categories of tests: unit, functional, end-to-end,
integration, etc…
5) WATIN:
WatiN is an open-source library for automating web browsers using . NET. WatiN,
inspired by the popular Ruby-based Watir project, facilitates automated testing of web
applications through browser interaction. WatiN is written in C#, but tests can be expressed
in . NET language.
Version 1.0 was feature-rich in comparison to most other .NET solutions and
moderately popular as a user interface and user acceptance testing tool, but without
customization, it only supported automating Internet Explorer. Though still in
development, version 2.0 of WatiN supports automating IE and FireFox 2.0 & 3.0.
WatiN relies on browser interaction and uses DOM manipulation and verification to
assert conditions, but WatiN 2.0 has an abstraction layer that facilitates writing cross-
browser tests. The IE test and FireFox test could easily be refactored to a single test that
works against either browser.
Because writing WatiN tests by hand can be tedious, another open-source project
exists to record WatiN tests in a browser. WatiN Test Recorder does not have a new release
available, but version 2.0 is currently in development and promises major enhancements.
SELENIUM TESTING TOOL EXECUTION :
Step 1: Install Selenium IDE from chrome web store
Thus, the framework of various open source testing tools have been studied and the
testing tools are implemented.