Sie sind auf Seite 1von 76

1 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

ACKNOWLEDGEMENT

The satisfaction and happiness that accompanies the successful completion of any task would be incomplete without the Expression of gratitude and appreciation to the people who made it Possible.

We sincerely express our gratitude to our beloved principal K. L. E. Society's Dr. M.S.Sheshgiri College of Engineering and Technology, Dr. S. C. Pilli, for his constant source of encouragement and inspiration throughout our study period.

We express our deep gratitude and sincere thanks to Prof

V.

T. Desai, Head Of the M. C. A

Department, K. L. E. Society's Dr. M.S.Sheshgiri College of Engineering and Technology, for his inspiration during the metamorphosis of our project.

Sincere thanks to our guide Prof. Mrs. C. B. Charantimath for the constant guidance, support, suggestions and encouragement without which we could not have completed our project.

Lastly, we want to thank all the staff of M. C. A Department for their invaluable cooperation extended to us during the tenure of the project.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

2 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

INDEX
TITLE
1. Abstract 1.1 1.2 1.3 Problem statement Procedure Results

PAGE NO.

2. Introduction 3. Literature Survey 3.1 Introduction 3.1.1 3.1.2 3.1.3 Background Purpose and scope of this document Reference documents

3.2 Existing System 3.2.1 Overview 3.2.2 Need for the project 3.2.3 Objectives of the project 4. Hardware requirements 5. Software requirements Specification 5.1 Functional Requirements 5.2 Non-functional Requirements 5.3 Assumptions 6. System Definition 6.1 System Design(data Flow diagram) 6.2 Software Paradigm Applied 7. Detailed Design(Algorithm) 8. Implementation 9. Testing and Results 10. Conclusion 11. Future Enhancements 12. Bibliography
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

3 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

1. ABSTRACT
1.1 Problem statement
With the advance in time and technology, software based companies are facing heavy workload so with the help of software management system, the workload can be distributed among various clients and hence it can be decreased. The Software Management System can be used by users who are well trained in the environment. The user must have some knowledge of computer network in order to use the system.

1.2 Procedures
First the administrator has to load the software based projects onto the server and also administrator should give date of submission. On client machine the created projects are listed. Projects can be chosen of his/her interest, and then client can download, and register for the project. And in administrator machine, list of clients with registered projects are available. Then after completing the job, client will upload the project.

1.3 Results
In the administrator machine, the list of created projects, assigned projects, uploaded projects by clients are available. And in the client machine, the list of projects, uploaded projects by a particular client are available. When client uploads the project, the project file is tested and compiled (only java compiler is used, here only java projects are compiled). After compiling, client is notified, whether the project is accepted or rejected.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

4 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

2. INTRODUCTION

Software Management is an empirical investigation conducted to provide stakeholders with information about the quality of the product or service under test. Software Management also provides an objective, independent view of the software to allow the business to appreciate and understand the risks at implementation of the software. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs. The scope of software Management often includes examination of code as well as execution of that code in various environments and conditions as well as examining the aspects of code: does it do what it is supposed to do and do what it needs to do. In the current culture of software development, a testing organization may be separate from the development team. There are various roles for testing team members. Information derived from software Management may be used to correct the process by which software is developed. We being the software developers are going to maintain the server machine, where all the files which are sent by the administrator get downloaded automatically on the local machines. The developers can request any number of projects as per their capability, from the local server machines (1 or more files at a time). Depending upon the requirements the developers will work on the project, and upload it to the servers where the automatic testing of the software takes place. The software which passes testing process satisfactorily is uploaded back to the servers of first world nations, else rejected and dumped back for redevelopment.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

5 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

3. LITERATURE SURVEY

3.1 Introduction
3.1.1 Overview 3.1.2 Purpose and scope of this document Purpose of the document: The purpose of this project is to upload the files to the clients machine for providing software based jobs for various clients and hence clients will work on the files as per the procedures and upload the files back onto the server. We are elaborating this project for uploading and downloading of any software based jobs which will help lot of software industries in coming years. Scope of the document: The Software Management System can be used by users who are well trained in the environment. The user must have some knowledge of computer network in order to use the system.

3.1.3 Reference documents

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

6 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

3.2 Existing System


3.2.1 Overview
The existing system is network based and can be used by trained employees of the company.

Working: Jobs like software development are outsourced from first world nations to the third world nations. These jobs are kept ready for developers at server side. The software developer sitting at the client machine requests for the job. After processing the job it is then sent to the Analyst and Code tester for testing. After testing is done the job is sent for report generation and then sent back to server At server machine the completed jobs along with their reports are arranged and sent back to the respective companies. All the above process is carried out manually.

Drawbacks of Existing System: Time consumption Lack of flexibility The current system does take into account the ISO Standards. Hardware requirements and their maintenance are expensive. As the testing is done manually errors are likely to happen. The system is not secured.

Proposed System: The objective of the proposed system is to provide time efficient, user friendly, reliable, error free, maintenance free system. The system covers following modules:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

7 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

1. Server Module 2. Client Module These modules are integrated and linked together to achieve the principle objectives. Server Module: Employee Registration Download Jobs Upload Jobs Remove Records Automatic Testing Backup Client Module: Requests and Registers jobs Upload Jobs

Advantages: Better product quality. As the testing and quality analysis is automated lots of time is reduced. Flexible workload, flexible work hours and flexible location will be available to the employees. Cost-reduction.

3.2.2 Need for the project


As in every organization the testing of software is done manually there rises a need, where we can do this procedure automatically. To reduce workload on the system. To reduce number of errors To provide flexible work hours for the users

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

8 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Preliminary Investigation: Preliminary Investigation was carried out in the initial stages of the project. The basic process of preliminary investigation was carried out under the following stages:

Understanding the present scenario Understanding the needs. Developing a concept for the system.

3.2.3 Objectives of the project

Objective of the System: The objective of this project is to upload the files to the clients machine for providing jobs for various clients and hence clients will work on the files as per the procedures and upload the files back onto the server. We are elaborating this project for uploading and downloading of any software based jobs which will help lot of software industries in coming years. The objective can be summarized as below: Flexible workload: Developers can choose the amount of work they want, that is consistent with their training, experience, availability and work available. Flexible Hours: Developers can set their own work hours.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

9 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

4. HARDWARE AND SOFTWARE REQUIREMENTS

Our system is intended to work on all Pentium machines, which run Microsoft Windows Operating System. The versions of the same like Windows XP and above which all support Java Runtime Environment.

Hardware Requirements
Pentium Machine RAM of 128 Mb and above Hard Disk with capacity of 20 GB and above. LAN Card.

Software Requirements
Windows XP Professional or above IIS (Internet Information Server) J2EE (Java 2 Enterprise Edition) Microsoft Access Jakarta Apache Tomcat Server Macromedia Dreamweaver

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

10 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

5. SOFTWARE REQUIREMENTS SPECIFICATION


5.1 Functional Requirements
We should load the projects onto the server We should be able to test the uploaded projects We should maintain a database to store the details of employees, projects and uploaded projects We should get appropriate results for tested files

5.2 Non-Functional Requirements


Quick response time Minimized error rate

5.1 Assumptions

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

11 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

6. SYSTEM DEFINITION
6.1 System Design
CONTEXT LEVEL DATA FLOW DIAGRAM OF EXISTING SYSTEM:

Job Details Rejected Job Reques t Developed Job SERVER Job Details Completed Job and Documentation Test Report

DEVELOPER

SYSTEM ADMINISTRATOR

Employee Details

CODE TESTER

NETWORK ADMINISTRATOR

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

12 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TOP LEVEL DATA FLOW DIAGRAM OF EXISTING SYSTEM:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

13 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

CONTEXT LEVEL DATA FLOW DIAGRAM OF PROPOSED SYSTEM:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

14 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TOP LEVEL DATA FLOW DIAGRAM OF PROPOSED SYSTEM:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

15 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

DETAILED LEVEL DATA FLOW DIAGRAM OF PROPOSED SYSTEM:

Processed Job 5.1 Unit Testing Test Results

5.2 Module Rejected Job Testing

Test Details Test Details Test Details Test Results TEST BENCH

5.3 Subsystem Testing

5.4 System Testing

Test Details Test Results

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

16 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Use-Case Diagram

Registration
<<Uses>>

Login

Approval Process
<<extends>>

Invalid User

CLIENT

Request for job


ADMINISTRATOR

Upload Jobs

Process the job

Generate Report

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

17 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Activity Diagram

START CREATE USER ENTER PASSWORD NO YES CREATE PROJECT PROJECT REMINDER
REQUEST FOR PROJECT

PROCESS PROJECT UPLOAD PROJECT TESTING PROCESS

FAILURE REPORT

APPROVAL REPORT

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

18 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

6.2 Software paradigm Applied


There are times when the requirements of a problem are reasonably well understood when work flows from communication through deployment in a reasonably linear fashion. This situation is sometimes encountered when well-defined adoptions or enhancements to an existing system must be made.

The Waterfall model, sometimes called the classic life cycle, suggests a systematic, sequential approach to software development that begins with deciding what is to be done (What is the problem). Once the requirements have been determined, we next must decide how to accomplish them. This followed by a step in which we do it, whatever it has required us to do. We then must test the result to see if we have satisfied the users requirements. Finally, we use what we have done.

The different phases in waterfall model are 1. Requirements analysis & definition 2. System & software design 3. Implementation & unit testing 4. Integration & system testing 5. Operation & maintenance

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

19 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Waterfall Model

Communication: Project initiation Requirements gathering Planning: Estimating Scheduling Tracking Modelling: Analysis Design Construction: Code Test Deployment: Delivery Support Feedback

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

20 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

7. DETAILED DESIGN

Entity-Relationship (ER) Diagram:

Address1

Address2
E-mail

Addres Lname

Essn

Etype
Mname Name

EMPLOYEE

Fname
M

Administrator
N 1 1

Administration

WORKS ON

WORKS_FOR

MANAGES

Mgrstdate

SYS_ADMIN

N
1 N

TOU
HANDLES

PROJECT
DOU

DEPARTMENT
Dno Pcode TOD Pname

DOD
Dname Platform

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

21 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Data Dictionary:
TABLE NAME: Employee Table PURPOSE: To maintain employee details

PRIMARY KEY: Essn FOREIGN: Field Name Essn Fname Mname Lname Address1 Address2 City State Zipcode Mobile uname pass Etype Foreign Key Foreign Key Not Null uname,pass Description Primary Key Not Null Type Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar Int Int Varchar Varchar Varchar Length 15 15 15 9 25 25 15 15 Int Int 15 15 10 Not Null Not Null Not Null Null Not Null Not Null

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

22 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TABLE NAME: Project Table PURPOSE: To upload projects for clients

PRIMARY KEY: Pcode Field Name Pcode Pname Platform Description DOS ProjectSRS Category Not Null Description Primary Key Not Null Not Null Data Type Varchar Varchar Varchar Text Date Time Text Not Null Length 10 20 15 Null Not Null Not Null

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

23 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TABLE NAME: System Table PURPOSE: To manage employees user name, password and type

PRIMARY KEY: uname FOREIGN KEY: essn

Field Name essn uname pass emp_type

Description Foreign Key Primary Key Not Null Not Null

Data Type Text Text Text Text

Length

Null Not Null Not Null Not Null Not Null

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

24 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TABLE NAME: Testbench Table: PURPOSE: Field Name testid Categoryid test_file parameters result To maintain tested and completed job files Description Not Null Not Null Not Null Not Null Not Null Data Type Number Number Text Text Text Length Null Not Null Not Null Not Null Not Null Not Null

TABLE NAME: Upload Table PURPOSE: To maintain uploaded files FOREIGN KEY: Field Name Essn Pcode Pname DOU TOU Essn, Pcode Data Type Text Text Text Date Time Length Null Not Null Not Null

Description Foreign Key Foreign Key

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

25 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

TABLE NAME: Category Table PURPOSE: To maintain categories of project

Field Name categoryid categoryname

Description Not Null Not Null

Data Type Number Text

Length

Null Not Null Not Null

TABLE NAME: Download Table PURPOSE: To maintain downloaded files PRIMARY KEY: Pcode

Field Name Pcode Pname Platform Description DOD DOS Category

Description Primary Key Not Null Not Null

Data Type Varchar Varchar Varchar Text Date

Length 10 20 15

Null Not Null Not Null Not Null

Not Null

Date Text

Not Null

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

26 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

7. IMPLEMENTATION
Employee Registration: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Software Management in Distributed Architectue</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Place your description here" /> <meta name="keywords" content="put, your, keyword, here" /> <meta name="author" content="Templates.com - website templates provider" /> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .box{margin-bottom:20px;clear:both;} .box h2{margin-bottom:10px;} <!-.style1 { font-family: Arial, Helvetica, sans-serif; font-size: xx-large; color: #CCCCCC; } .style2 {font-size: x-large} --> </style> HTML 4.01 Transitional//EN"

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

27 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</head> <script language="javascript"> function validate(frm) { if(frm.essn.value=="") { alert('Enter Employee SSN'); return false; } if(frm.fname.value=="") { alert('Enter Name'); return false; } if(frm.address1.value=="") { alert('Enter Address1'); return false; }

if(frm.city.value=="") { alert('Enter City'); return false; } if(frm.state.value=="") {

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

28 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

alert('Enter State'); return false; }

if(frm.mobile.value=="") { alert('Enter Mobile No'); return false; } if(isNaN(frm.mobile.value) == true) { alert("Enter only number for Mobile Number"); frm.mobile.focus(); return false; } if(frm.email.value=="") { alert('Enter Email'); return false; } if(frm.gender.value==-1) { alert('Select Gender'); return false; } if(frm.etype.value==-1) {

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

29 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

alert('Select User Type'); return false; } if(frm.uname.value=="") { alert('Enter Username'); return false; } if(frm.pass.value=="") { alert('Enter Password'); return false; } } </script> <% if(request.getMethod().equals("POST")) { String fname,address1,city,state,email,etype,uid,pass; String eid,mobileno,gender,dob; boolean flag=false; eid=request.getParameter("essn"); fname=request.getParameter("fname"); address1=request.getParameter("address1"); city=request.getParameter("city"); state=request.getParameter("state"); mobileno=request.getParameter("mobile");

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

30 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

email=request.getParameter("email"); gender=request.getParameter("gender"); etype=request.getParameter("etype"); uid=request.getParameter("uname"); pass=request.getParameter("pass"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); java.sql.ResultSet rs=st.executeQuery("Select * from employee where essn='"+eid+"' and uname='"+uid+"'"); while(rs.next()) { flag=true; break; } if(flag) { out.println("<script Employee SSN already exists')</script>"); } else { st.executeUpdate("insert into Employee(essn,fname,address1,city,state,mobile,email,gender,etype,uname,pass) values('"+eid+"','"+fname+"','"+address1+"','"+city+"','"+state+"','"+mobileno+"','"+email+"','"+g ender+"','"+etype+"','"+uid+"','"+pass +"')"); language='javascript'>alert('Username or

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

31 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

out.println("<script language='javascript'>alert('Client Registered Successful')</script>"); } } catch (Exception e) { out.println(e); } } %>

<body id="page1"> <div class="tail-top-right"></div> <div id="main"> <!-- header --> <div id="header"> <ul class="site-nav"> </ul> <div class="logo style1"> <p>&nbsp;</p> <p class="style2">Software Management In Distributed Architecture</p> </div> </div> <!-- content --> <div id="content"> <div class="wrapper"> <div class="col-1"> <!-- First box -->
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

32 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <h2>Main Menu</h2> <ul class="list">

<li><a href="index.jsp">Home</a></li> <li><a href="employee.jsp">Register</a></li> <li><a href="aboutus.jsp">About Us</a></li>

</ul> </div> </div> </div> </div> </div> </div> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <h2>Category Section</h2>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

33 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<ul class="list">

<% String eid="",fname="", ladr="",city="", state="", mobile="", email=""; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); java.sql.ResultSet from category"); while(rs.next()) { rs=st.executeQuery("Select *

eid=rs.getString("categoryId"); fname=rs.getString("categoryName");

%> <li><span><a href="login.jsp"><%=fname%></a></span></li> <% } } catch(Exception e){ out.println(e);} %> </ul>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

34 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</div> </div> </div> </div> </div> </div> <div class="banner"></div> </div> <div class="col-2"> <div class="indent"> <div class="title"></div> <p class="p1">&nbsp;</p> </div> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> Employee Registration <ul class="list1"> <li> <form action="" method="post" name="frm" id="frm" onSubmit="return validate(frm)"> <table cellspacing="0"> <tr> width="52%" border="0" align="center" cellpadding="0"

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

35 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<td width="46%"><div align="right">Employee Id</div></td> <td width="5%"><div align="center"><strong>:</strong></div></td> <td width="49%"><input name="essn" type="text" id="essn"> *</td> </tr> <tr> <td><div align="right">Employee Type</div></td> <td><div align="center"><strong>:</strong></div></td> <td><select name="etype" id="etype"> <option value="-1">Select Type</option> <option value="emp">Client</option> <option value="admin">Administrator</option> </select></td> </tr> <tr> <td><div align="right">Name</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="fname" type="text" id="fname"> *</td> </tr> <tr> <td><div align="right">Local Address</div></td> <td><div align="center"><strong>:</strong></div></td> <td><textarea name="address1" id="address1"></textarea></td> </tr> <tr> <td><div align="right">City</div></td>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

36 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<td><div align="center"><strong>:</strong></div></td> <td><input name="city" type="text" id="city"> *</td> </tr> <tr> <td><div align="right">State</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="state" type="text" id="state"> *</td> </tr> <tr> <td><div align="right">Mobile Number </div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="mobile" type="text" id="mobile"> *</td> </tr> <tr> <td><div align="right">Emai Id</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="email" type="text" id="email"> *</td> </tr> <tr> <td><div align="right">Gender</div></td> <td><div align="center">:</div></td> <td><select name="gender" id="gender"> <option value="-1">Select Gender</option>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

37 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<option value="M">Male</option> <option value="F">Female</option> </select></td> </tr> <tr> <td><div align="right">User Id</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="uname" type="text" id="uname"> *</td> </tr> <tr> <td><div align="right">Password</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="pass" type="password" id="pass"> *</td> </tr> <tr> <td><div align="right"></div></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td><div align="right"></div></td> <td>&nbsp;</td> <td><input type="submit" name="Submit" value="Register"></td> </tr> </table>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

38 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</form> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footer"> <div class="indent"> <div class="fleft"></div> <div class="fright"></div> </div> </div> </div> </body> </html> Creating projects: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*, javazoom.upload.*,java.util.*" errorPage="ExceptionHandler.jsp" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD "http://www.w3.org/TR/html4/loose.dtd"> <html> <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" > HTML 4.01 Transitional//EN"

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

39 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<jsp:setProperty name="upBean" value="C:/tomcat/webapps/examples/softwaretest1/projects" /> </jsp:useBean> <head> <title>Software Management in Distributed Architectue</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Place your description here" /> <meta name="keywords" content="put, your, keyword, here" />

property="folderstore"

<meta name="author" content="Templates.com - website templates provider" /> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> <style type="text/css"> </style> </head> <script language="javascript"> function validate(frm){ if(frm.txtProjectCode.value==""){ alert('Enter Project Code'); frm.txtProjectCode.focus(); return false; } if(frm.txtProjectName.value==""){ alert('Enter Project Name'); frm.txtProjectName.focus(); return false; } if(frm.txtPlatform.value==""){ alert('Enter Platform');
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

40 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

frm.txtPlatform.focus(); return false; } } </script> <body id="page1"> <% if (MultipartFormDataRequest.isMultipartFormData(request)) { String ProjectCode,ProjectName,Platform,Category,Description,DOS,ProjectSRS; String dd,mm,yy; MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request); String todo = null; if (mrequest != null) todo = mrequest.getParameter("todo"); if ( (todo != null) && (todo.equalsIgnoreCase("upload")) ){ Hashtable files = mrequest.getFiles(); if ( (files != null) && (!files.isEmpty()) ){ UploadFile file = (UploadFile) files.get("uploadfile"); upBean.store(mrequest, "uploadfile"); ProjectCode=mrequest.getParameter("txtProjectCode"); ProjectName=mrequest.getParameter("txtProjectName"); Platform=mrequest.getParameter("txtPlatform"); Category=mrequest.getParameter("cboCategory"); Description=mrequest.getParameter("txtDescription"); dd=mrequest.getParameter("dd"); mm=mrequest.getParameter("mm"); yy=mrequest.getParameter("yy"); DOS=mm+"/"+dd+"/"+yy;

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

41 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

ProjectSRS=file.getFileName(); try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); st.executeUpdate("insert into Projects (ProjectCode,ProjectName,Platform,Category,Description,DOS,ProjectSRS)values ('"+ProjectCode+"','"+ProjectName+"','"+Platform+"','"+Category+"','"+Description+"','"+DOS+ "','"+ProjectSRS+"')"); out.println("<script language='javascript'>alert('Project Added Successfully')</script>"); } catch(Exception e){ out.println(e); } } else{ out.println("<li>No uploaded files"); } } else out.println("<BR> todo="+todo); } %> <div class="tail-top-right"></div> <div id="main"> <div id="header"> <ul class="site-nav"> </ul> <div class="logo style1">

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

42 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<p>&nbsp;</p> <p class="style2">Software Management In Distributed Architecture</p> </div> </div> <div id="content"> <div class="wrapper"> <div class="col-1"> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <div class="title">Welcome: </div> <ul class="list"> <li><span><a href="admin_dashboard.jsp">Home</a></span></li> <li><span><a href="employee.jsp">Add Users </a></span></li> <li><span><a href="viewEmp.jsp">Edit Users </a></span></li> <li><span><a href="projectRegistration.jsp">Create Projects </a></span></li> <li><span><a href="viewProject1.jsp">Edit Projects </a></span></li> <li><span><a href="viewAssignedProjects.jsp">Assigned Projects </a></span></li> <li><span><a href="UploadedProjects.jsp">Uploaded Projects</a></span></li> <li><span><a href="testbench.jsp">Add Test Bench </a></span></li> <li><span><a href="viewTestbench.jsp">Edit Test Bench </a></span></li> <li><span><a href="category.jsp">Add Category </a></span></li> <li><span><a href="viewCategory.jsp">Edit Category </a></span></li> <li><span><a href="changePassword.jsp">Change Credentials </a></span></li>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

43 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<li class="last"><span><a href="logout.jsp">Logout</a></span></li> </ul> </div> </div> </div> </div> </div> </div> <div class="banner"></div> </div> <div class="col-2"> <div class="indent"> <p class="p1">&nbsp;</p> </div> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <form action="" method="post" onSubmit="return validate(frm)"> enctype="multipart/form-data" name="frm" id="frm"

<table width="81%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="37%"><div align="right">Project Code </div></td> <td width="7%"><div align="center"><strong>:</strong></div></td> <td width="56%"><input name="txtProjectCode" type="text" id="txtProjectCode"></td> </tr>
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

44 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<tr> <td><div align="right">Project Name </div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="txtProjectName" type="text" id="txtProjectName"></td> </tr> <tr> <td><div align="right">Platform</div></td> <td><div align="center"><strong>:</strong></div></td> <td><input name="txtPlatform" type="text" id="txtPlatform"></td> </tr> <tr> <td><div align="right">Category</div></td> <td><div align="center"><strong>:</strong></div></td> <td><select name="cboCategory" id="cboCategory"> <option value="-1">Select Category</option> <% try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); java.sql.ResultSet rs=st.executeQuery("Select * from category"); while(rs.next()){ %> <option value="<%=rs.getString("categoryId")%>"><%=rs.getString("categoryName")%></option> <% } }
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

45 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

catch(Exception e){ out.println(e); } %> </select></td> </tr> <tr> <td><div align="right">Description </div></td> <td><div align="center"><strong>:</strong></div></td> <td><textarea name="txtDescription" id="txtDescription"></textarea></td> </tr> <tr> <td><div align="right">Date of Upload </div></td> <td><div align="center"><strong>:</strong></div></td> <td><select name="dd" id="dd"> <option value="-1">Day</option> <option value="01">1</option> <option value="02">2</option> <option value="03">3</option> <option value="04">4</option> <option value="05">5</option> <option value="06">6</option> <option value="07">7</option> <option value="08">8</option> <option value="09">9</option> <option value="10">10</option> <option value="11">11</option>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

46 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="mm" id="mm"> <option value="-1">Month</option> <option value="01">Jan</option> <option value="02">Feb</option> <option value="03">Mar</option> <option value="04">Apr</option>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

47 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<option value="05">May</option> <option value="06">Jun</option> <option value="07">Jul</option> <option value="08">Aug</option> <option value="09">Sep</option> <option value="10">Oct</option> <option value="11">Nov</option> <option value="12">Dec</option> </select> <select name="yy" id="yy"> <option value="-1">Year</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> </select></td> </tr> <tr> <td><div align="right">Project SRS </div></td> <td><div align="center"><strong>:</strong></div></td> <td><input type="file" name="uploadfile" size="50"></td> </tr> <tr> <td><div align="right"></div></td> <td><div align="center"></div></td>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

48 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<td><input type="hidden" name="todo" value="upload"> <input type="submit" name="Submit" value="Upload"> <input type="reset" name="Reset" value="Cancel"></td> </tr> </table> </form> <p>&nbsp; </p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footer"> <div class="indent"> <div class="fright"></div> </div> </div> </div> </body> </html>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

49 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Download and Register projects: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*,java.util.*" errorPage="" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Home - Home Page | Computers - Free Website Template from Templates.com</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Place your description here" /> <meta name="keywords" content="put, your, keyword, here" /> <meta name="author" content="Templates.com - website templates provider" /> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> <style type="text/css"> </style> <% String projectcode=request.getParameter("ProjectCode"); String projectname=request.getParameter("ProjectName"); String platform=request.getParameter("Platform"); String category=request.getParameter("Category"); String description=request.getParameter("Description"); String dos=request.getParameter("DOS");

%> </head> <body id="page1"> <div class="tail-top-right"></div>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

50 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<div id="main"> <div id="header"> <ul class="site-nav"> </ul> <div class="logo style1"> <p>&nbsp;</p> <p class="style2">Software Management In Distributed Architecture</p> </div> </div> <div id="content"> <div class="wrapper"> <div class="col-1"> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <div class="title">Welcome: </div> <ul class="list"> <li><span><a href="client_dashboard.jsp">Home</a></span></li> <li><span><a href="DownloadProject.jsp">Download Project </a></span></li> <li><span><a href="viewDownloadwdProjects.jsp">View Projects </a></span></li> <li><span><a href="SimpleUpload.jsp">Uploaded Project</a></span></li> <li><span><a href="viewUploadedProjects.jsp">Upload Report</a></span></li> <li><span><a href="#">View Profile </a></span></li> <li><span><a href="logout.jsp">Logout</a></span></li>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

51 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<li></li> </ul> </div> </div> </div> </div> </div> </div> <div class="banner"></div> </div> <div class="col-2"> <div class="indent"> <p class="p1">&nbsp;</p> </div> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <form action="" method="post" name="form1" id="form1"> <table width="37%" border="1" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFCCFF"> <td colspan="3"><div align="center">PROJECT DETAILS </div></td> </tr> <tr> <td colspan="3">&nbsp;</td>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

52 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</tr> <tr> <td width="37%"><div align="right">Project Code </div></td> <td width="7%"><div align="center"><strong>:</strong></div></td> <td width="56%"><%=projectcode%></td> </tr> <tr> <td><div align="right">Project Name </div></td> <td><div align="center"><strong>:</strong></div></td> <td><%=projectname%></td> </tr> <tr> <td><div align="right">Platform</div></td> <td><div align="center"><strong>:</strong></div></td> <td><%=platform%></td> </tr> <tr> <td><div align="right">Category</div></td> <td><div align="center"><strong>:</strong></div></td> <td><%=category%></td> </tr> <tr> <td><div align="right">Description </div></td> <td><div align="center"><strong>:</strong></div></td> <td><%=description%></td> </tr> <tr>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

53 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<td><div align="right">Date of Upload </div></td> <td><div align="center"><strong>:</strong></div></td> <td><%=dos%> </td> </tr> <tr> <td><div align="right">Project SRS </div></td> <td><div align="center"><strong>:</strong></div></td> <td><a href="projects/<%=request.getParameter("ProjectSRS")%>">Download</a></td> </tr> <tr> <td><div align="right"></div></td> <td><div align="center"></div></td> <td>&nbsp;</td> </tr> <tr> <td colspan="3"><div align="center"> <input type="submit" name="Submit" value="Confirm Registration" /> </div></td> </tr> </table> </form> </div> </div> </div> </div> </div> </div>
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

54 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</div> </div> </div> <div id="footer"> <div class="indent"> </div> </div> </body> </html> <% if(request.getMethod().equals("POST")){ String uname=(String)session.getAttribute("uname"); Calendar cal=Calendar.getInstance(); int dd=cal.get(Calendar.DATE); int mm=cal.get(Calendar.MONTH)+1; int yy=cal.get(Calendar.YEAR); String dod=mm+"/"+dd+"/"+yy; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); st.executeUpdate("insert into downloads(projectcode,uname,projectname,platform,description,dod,dos,category) values ('"+projectcode+"','"+uname+"','"+projectname+"','"+platform+"','"+description+"','"+dod+"','"+d os+"','"+category+"')"); st.executeUpdate("delete from Projects where ProjectCode='"+projectcode+"'"); out.println("<script Successfully')</script>"); } language='javascript'>alert('Project Registered </div>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

55 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

catch(Exception e){ out.println(e); } } %>

Upload project: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html> <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" > <jsp:setProperty name="upBean" value="C:/tomcat/webapps/examples/softwaretest1/uploadfile" /> </jsp:useBean> <head> <title>Home - Home Page | Computers - Free Website Template from Templates.com</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Place your description here" /> <meta name="keywords" content="put, your, keyword, here" /> <meta name="author" content="Templates.com - website templates provider" /> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> </head> <body id="page1"> <div class="tail-top-right"></div> property="folderstore"

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

56 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<div id="main"> <div id="header"> <div class="logo style1"> <p>&nbsp;</p> <p class="style2">Software Management In Distributed Architecture</p> </div> </div> <div id="content"> <div class="wrapper"> <div class="col-1"> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <div class="title">Welcome: </div> <ul class="list"> <li><span><a href="client_dashboard.jsp">Home</a></span></li> <li><span><a href="DownloadProject.jsp">Download Project </a></span></li> <li><span><a href="viewDownloadwdProjects.jsp">View Projects </a></span></li> <li><span><a href="SimpleUpload.jsp">Upload Project</a></span></li> <li><span><a href="viewUploadedProjects.jsp">Uploaded Projects</a></span></li> <li><span><a href="viewProfile.jsp">View Profile </a></span></li> <li><span><a href="logout.jsp">Logout</a></span></li> <li></li> </ul>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

57 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

</div> </div> </div> </div> </div> </div> <div class="banner"></div> </div> <div class="col-2"> <div class="indent"> <div class="title style3"></div> <p class="p1">&nbsp;</p> </div> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="inner"> <div class="title"> <form method="post" action="" name="upform" enctype="multipart/form-data"> <table width="40%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="33%">Category </td> <td width="9%">&nbsp;</td> <td width="58%"><select name="cid" id="cid"> <option value="-1">Select Category</option>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

58 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<% try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); java.sql.ResultSet rs=st.executeQuery("Select * from category"); while(rs.next()){ %> <option value="<%=rs.getString("categoryId")%>"><%=rs.getString("categoryName")%></option> <% } } catch(Exception e){ out.println(e); } %> </select> </td> </tr> <tr> <td>Project</td> <td>&nbsp;</td> <td><select name="pno" id="pno"> <option value="-1">Select Project</option> <% try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

59 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement st=con.createStatement(); java.sql.ResultSet rs=st.executeQuery("Select * from downloads where uname='"+session.getAttribute("uname")+"'"); while(rs.next()){ %> <option value="<%=rs.getString("projectcode")%>"><%=rs.getString("projectname")%></option> <% } } catch(Exception e){ out.println(e); } %> </select></td> </tr> <tr> <td>Select File </td> <td>&nbsp;</td> <td><input type="file" name="uploadfile" size="50" /></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

60 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

<td>&nbsp;</td> <td>&nbsp;</td> <td><input type="hidden" name="todo" value="upload" /> <input type="submit" name="Submit" value="Upload" /> <input type="reset" name="Reset" value="Cancel" /></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="3"><% if (MultipartFormDataRequest.isMultipartFormData(request)) { // Uses MultipartFormDataRequest to parse the HTTP request. MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request); String todo = null; if (mrequest != null) todo = mrequest.getParameter("todo"); if ( (todo != null) && (todo.equalsIgnoreCase("upload")) ){ String pname="",eno="",tup="",dup="",loc="", ftext="",pnm="",platform="",description=""; String cid="",pno=""; String fname=""; boolean exist=false; Hashtable files = mrequest.getFiles(); if ( (files != null) && (!files.isEmpty()) ){ UploadFile file = (UploadFile) files.get("uploadfile"); upBean.store(mrequest, "uploadfile");

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

61 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

pname=file.getFileName(); } else { out.println("<li>No uploaded files"); } Calendar cal=Calendar.getInstance(); int dd=cal.get(Calendar.DATE); int mm=cal.get(Calendar.MONTH)+1; int yy=cal.get(Calendar.YEAR); dup=mm+"/"+dd+"/"+yy; cid=mrequest.getParameter("cid"); pno=mrequest.getParameter("pno"); fname=pname; File f1=new File("C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\comp.bat"); FileWriter fr=new FileWriter(f1); fr.write("javac C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\"+pname+"\n"); fr.write("\n\n\n"); fr.write("Exit"); fr.close(); try{ Runtime r=Runtime.getRuntime(); Process P; P=r.exec("C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\comp.bat"); try { String clsname = pname.substring(0,pname.length()-4); String dataq=clsname; out.println(dataq);

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

62 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

String[] res = dataq.split("\\."); FileInputStream fin = new FileInputStream("C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\test.class"); fin.close(); exist = true; out.println("<h4>Compile Test Passed<h4><br>"); out.println("Black box testing Passed<br>"); } catch(IOException e){ exist = false; //out.println(e); out.println("Compile Test Failed"); out.println("Black box testing Failed<br>"); } if(exist){ String input_file="", parameter="", result=""; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:swtest"); java.sql.Statement stmt = con.createStatement(); System.out.println(cid); java.sql.ResultSet rs = stmt.executeQuery("select * from testbench where categoryid='"+ cid+"'"); while(rs.next()){ input_file = rs.getString("testfile"); parameter = rs.getString("parameter"); result = rs.getString("result"); }

String clsname1 = pname.substring(0,pname.length()-5); FileWriter fr1=new FileWriter(f1); fr1.write("java "+clsname1+" "+input_file+" "+parameter); fr1.close();

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

63 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Runtime r1=Runtime.getRuntime(); Process P1; P1=r1.exec("C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\comp.bat"); FileReader fread = new FileReader("C:\\tomcat\\webapps\\examples\\softwaretest1\\uploadfile\\output.txt"); BufferedReader br = new BufferedReader(fread); char[] buff = new char[100096]; int nch; while ((nch = br.read(buff, 0, buff.length)) != -1) { ftext = new String(buff, 0, nch); } fread.close(); if(ftext.equals(result)){ out.println("Operational test Passed<br>"); exist = true; } else{ exist = false; File f2 = new File(pname); f2.delete(); out.println("Operational Test Failed<br>");

} if(exist){ String up_date=""; rs=stmt.executeQuery("Select * from downloads where projectcode='"+ pno+"'"); while(rs.next()){ eno=rs.getString("uname"); pnm=rs.getString("projectname"); platform=rs.getString("platform");
K. L. E. COLLEGE, BELGAUM DEPT. OF MCA

64 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

description=rs.getString("description"); up_date = rs.getString("dos"); } Calendar calendar1 = Calendar.getInstance(); Calendar calendar2 = Calendar.getInstance(); int umm=Integer.parseInt(up_date.substring(0,2)); int udd=Integer.parseInt(up_date.substring(3,5)); int uyy=Integer.parseInt(up_date.substring(6,10)); calendar2.set(uyy, umm, udd); calendar1.set(yy, mm, dd); long milliseconds1 = calendar1.getTimeInMillis(); long milliseconds2 = calendar2.getTimeInMillis(); long diff = milliseconds2 - milliseconds1; long diffDays = diff / (24 * 60 * 60 * 1000); if(diffDays>=0){ stmt.executeUpdate("insert into uploads(uname,projectcode,projectname,DOU,TOU,platform,description) values ('"+eno+"',"+pno+",'"+pnm+"','"+dup+"','"+tup+"','"+platform+"','"+description+"')"); stmt.executeUpdate("delete from downloads where projectcode='"+ pno+"'"); out.println("Regression Testing Passed<br>"); out.println("Project Accepted<br>"); } else{ out.println("Regression Testing Failed<br>"); out.println("You are trying to submit project after Due Date, Hence it is rejected<br>"); } con.close(); }

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

65 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

} } catch(Exception e){ out.println(e); } } else out.println("<BR> todo="+todo); } %></td> </tr> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footer"> <div class="indent"> </div> </div> </body> </html> </div>

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

66 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

9. TESTING AND RESULTS


Testing:
The Primary and Larger objective of testing is to deliver quality software. Quality software is one that is devoid of error and meets with customers stated requirements. If errors are found, then the software must be debugged to locate these errors in the various parts of the program. Corrections are then made. The program/system must be tested once again after corrections have been implemented- this time with additional objective of finding out whether or not corrections in one part of the system have introduced any new errors elsewhere in the system. Once all errors are found, then another objective must be accomplished that is to check whether or not the system is doing what it is supposed to do. So another aspect of testing is that it must also ensure that the system meets with user requirements. Here are some of the testing techniques: 1. Unit testing 2. Module Testing 3. Sub System Testing 4. System Testing 5. Black Box Testing 6. White Box Testing

The Testing Cases used in this project are as follows: 1. Unit Testing: Individual components are tested to ensure that they operate correctly. Each component is tested independently without other system components. 2. Module Testing:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

67 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Module is collection of independent components such as an object class, an abstract data type or some loser collection of procedures and functions. A module encapsulates related components so can be tested without other modules. 3. Sub System Testing: This phase involves testing collection of modules, which have been integrated into subsystems. Subsystems may be independently designed and implemented. The most common problems, which arise in the large software systems, are subsystems interface mismatches. The subsystem test process should therefore concentrate on the detection of interface errors by rigorously exercising these interfaces. 4. System Testing: The subsystems are integrated to makeup the entire system. The testing process is concerned with finding errors, which result from unanticipated interactions between subsystems and system components. It is also concerned with validating that the system is functional or non-functional requirements. 5. Black Box Testing: This is a technique that assumes no knowledge of the internals of software program. It focuses the attention of a tester on providing a certain input and getting the desired output. If the desired output is not got then an error is reported and the system should be able to return back to its earliest status. While this test is being conducted the tester is not expected to determine how many lines of code were executed to achieve, were all loops executed etc. 6. White Box Testing: This is done with intention of determining whether or not all parts of a program code are executed. Test cases are designed. Test cases are designed to execute all paths of a loop, all branches in a decision, which, ultimately leads to 100% execution of statements in a program.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

68 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Results:
Home page:

Employee Registration:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

69 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Login page:

Administrator page:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

70 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Creating projects:

Viewing projects:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

71 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Client page:

Download and Register projects:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

72 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

View registered projects:

Upload project:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

73 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

Uploaded project:

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

74 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

10. CONCLUSION

The Software Management System can be used by users who are well trained in the environment. The user must have some knowledge of computer network in order to use the system. Using software management system for the above mentioned applications, it helps many software industries to break the work load and complete the work quickly and it also provides flexible work hours for clients.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

75 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

11. FUTURE ENHANCEMENT


Future Enhancements:
1. As the software provides automatic testing for limited types of softwares, we can enhance
this software by providing automatic testing for all types of softwares.

2. There are always chances of improving or enhancement of this project by adding more
features or also by modifying the existing features.

3. The same software can be rebuilt using various web developing tools and languages for
better efficiency and reliability.

Limitations:
1. As the physical distance between client and server is large, network related problems
have not been taken care.

2. As this software does not take care of accountability of employees the organization have
to maintain it manually.

3. The software provides automatic testing for limited types of softwares.

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

76 SOFTWARE MANAGEMENT IN DISTRIBUTED ARCHITECTURE

12. BIBLIOGRAPHY

S.No

Title of the Book/Paper

Author

1)

Internet & World Wide Web How To Program

Deitel & Deitel Goldberg

2)

The Complete Reference J2EE

Herbert Schildt

3)

Introduction To Data Base Systems

Elmasri and Navathe

4)

Oracle Handbook

SSI Press

5)

System Analysis And Design

Elias M. Awad

6)

Software Engineering

Ian Somerville

Websites:
1) For Information www.google.com 2) For Information www.supersitebpo.com 3) For Pictures www.ritescribe.com

K. L. E. COLLEGE, BELGAUM

DEPT. OF MCA

Das könnte Ihnen auch gefallen