×
If you belive yourself, anything is possible.
--Your friends at LectureNotes
Close

List of lab experiments for Web Technologies - WT by Ratnakar babu Mikkili

  • Web Technologies - WT
  • Other
  • 121 Views
  • 3 Offline Downloads
  • Uploaded 8 months ago
Ratnakar Babu Mikkili
Ratnakar Babu Mikkili
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

KESHAV MEMORIAL INSTITUTE OF TECHNOLOGY Narayanaguda, Hyderabad, Telangana-29 (Approved by AICTE New Delhi and Affiliated to JNTUH) CASE TOOLS AND WEB TECHNOLOGIES LAB III B. Tech. CSE-II SEMESTER Academic Year: 2017-18 List of Experiments Regulation: R15 Objectives • • Understand how UML supports the entire GOAD process. Become familiar with all phases of GOAD. Understand different software testing tools and their features 1. Students are divided into batches of 5 each and each batch has to draw the following diagrams using UML for an ATM system whose description is given below. UML diagrams to be developed are 1. 2. 3. 4. 5. 6. 7. 8. 9. Use Case Diagram. Class Diagram. Sequence Diagram. Collaboration Diagram. State Diagram Activity Diagram. Component Diagram Deployment Diagram. Test Design. Description for an ATM System The software to be designed will control a simulated automated teller machine (ATM) having a magnetic stripe reader for reading an ATM card, a customer console (keyboard and display) for interaction with the customer, a slot for depositing envelopes. a dispenser for cash (in multiples of Rs. 100, Rs. 500 and Rs. 1000), a printer for printing customer receipts, and a key-operated switch to allow an operator to start or stop the machine. The ATM will communicate with the bank’s computer over an appropriate communication link. (The software on the latter is not part of the requirements for this problem.) The ATM will service one customer at a time. A customer will be required to insert an ATM card and enter a personal identification number (PIN) – both of which will be sent to the bank for validation as part of each transaction. The customer will then be able to perform one or more transactions. The card will be retained in the machine until the customer indicates that he/she desires no further transactions, at which point it will be returned – except a: noted below. The ATM must be able to provide the following services to the customer: A customer must be able to make a cash withdrawal from any suitable account linked to the card, in multiples of Rs. 100 or Rs. 500 or As 1000. Approval must be obtained from the bank before cash is dispensed. A customer must be able to make a deposit to any account linked to the card, consisting of cash and/or checks in an envelope. The customer will enter the amount of the deposit into the ATM, subject to manual verification when the envelope is removed from the machine by an operator. Approval must be obtained from the bank before physically accepting the envelope. A customer must be able to make a transfer of money between any two accounts linked to the card. A customer must be able to make a balance inquiry of any account linked to the card.

Text from page-2

A customer must be able to abort a transaction in progress by pressing the Cancel key instead of responding to a request from the machine The ATM will communicate each transaction to the bank and obtain verification that it was allowed by the bank. Ordinarily, a transaction will be considered complete by the bank once it has been approved. In the case of a deposit, a second message will be sent to the bank indicating that the customer has deposited the envelope. (If the customer fails to deposit the envelope within the timeout period, or presses cancel instead, no second message will be sent to the bank and the deposit will not be credited to the customer. If the bank determines that the customer’s PIN is invalid, the customer will be required to re-enter the PIN before a transaction can proceed. If the customer is unable to successfully enter the PIN after three tries, the card will be permanently retained by the machine, and the customer will have to contact the bank to get it back. If a transaction fails for any reason other than an invalid PIN, the ATM will display an explanation of the problem, and will then ask the customer whether he/she wants to do another transaction. The ATM will provide the customer with a printed receipt for each successful transactionThe ATM will have a key-operated switch that will allow an operator to start and stop the servicing of customers. After turning the switch to the “on” position, the operator will be required to verify and enter the total cash on hand. The machine can only be turned off when it is not servicing a customer. When the switch is moved to the “off” position, the machine will shut down, so that the operator may remove deposit envelopes and reload the machine with cash, blank receipts, etc. • • • • • Study of any testing tool (e.g. Win runner) Study of any web testing tool (e.g. Selenium) Study of any bug tracking tool (e.g. Bugzilla, bugbit) Study of any test management tool (e.g. Test Director) Study of any open source-testing tool (e.g. Test Link) Outcomes • • Ability to understand the history, cost of using and building CASE tools. Ability to construct and evaluate hybrid CASE tools by integrating existing tools. Programmer Subject Faculty Co-Ordinator HOD Principal

Text from page-3

KESHAV MEMORIAL INSTITUTE OF TECHNOLOGY Narayanaguda, Hyderabad, Telangana-29 (Approved by AICTE New Delhi and Affiliated to JNTUH) CASE TOOLS AND WEB TECHNOLOGIES LAB III B. Tech. CSE-II SEMESTER Academic Year: 2017-18 List of Experiments Regulation: R15 Objectives To enable the student to program web applications using the following technologies HTML ,Javascript ,AJAX ,PHP .Tomcat Server, Servlets ,JSP Note 1. Use LAMP Stack (Linux, Apache. MySQL and PHP) for the Lab Experiments. Though not mandatory, encourage the use of Eclipse platform wherever applicable 2. The list suggests the minimum program set. Hence, the concerned staff is requested to add more problems to the list as needed Install the following on the local machine • • Apache Web Server (if not installed) Tomcat Application Server locally Install MySQL (if not installed) Install PHP and configure it to work with Apache web server and MySQL (if not already configured) Write an HTML page including any required Javascript that takes a number from one text field in the range of 0 to 999 and shows it in another text field in words. If the number is out of range, it should show “out of range” and if it is not a number, it should show not a number” message in the result box. • • • • • • • Write an HTML page that has one input, which can take multi-line text and a submit button. Once the user clicks the submit button, it should show the number of characters, words and lines in the text entered using an alert message. Words are separated with white space and lines are separated with new line character. Write an HTML page that contains a selection box with a list of 5 countries. When the user selects a country, its capital should be printed next to the list. Add CSS to customize the properties of the font of the capital (color. bold and font size). Create an XML document that contains 10 users information. Write a Java program, which takes User Id as input and returns the user details by taking the user information from the XML document using (a) DOM Parser and (b) SAX parser Implement the following web applications using (a) PHP, (b) Servlets and (c) JSP: 1. A user validation web application, where the user submits the login name and password to the server. The name and password are checked against the data already available in Database and if the data matches. a successful login page is returned. Otherwise a failure message is shown to the user. 2. Modify the above program to use an xml file instead of database. 3. Modify the above program to use AJAX to show the result on the same page below the submit button. 4. A simple calculator web application that takes two numbers and an operator (+, /, * and %) from an HTML page and returns the result page with the operation performed on the operands. 5. Modify the above program such that it stores each query in a database and checks the database first for the result. If the query is already available in the DB, it returns the value that was previously computed (from DB) or it computes the result and returns it after storing the new query and result in DB.

Text from page-4

6. hello <name> page where <name> is taken from the request. It shows the start time at the right top corner of the page and provides a logout button. On clicking this button, it should show a logout page with Thank You <name> message with the duration of usage (hint: Use session to store name and time). 7. A web application that takes name and age from an HTML page. If the age is less than 18, it should send a page with “Hello <name>, you are not authorised to visit this site” message, where <name> should be replaced with the entered name. Otherwise it should send ‘Welcome <name> to this site” message. 8. A web application for implementation: The user is first served a login page which takes user’s name and password. After submitting the details the server checks these values against the data from a database and takes the following decisions.If name and password matches, serves a welcome page with user’s full name. If name matches and password doesn’t match, then serves “password mismatch” page If name is not found in the database, serves a registration page, where user’s full name is asked and on submitting the full name, it stores, the login name, password and full name in the database (hint: use session for storing ihe submitted login name and password) 9. A web application that lists all cookies stored in the browser on clicking “List Cookies” button. Add cookies if necessary. TEXT BOOKS • Web Technologies, Uttam K Roy, Oxford University Press The Complete Reference PHP — Steven Holzner, Tata McGraw-Hill REFERENCE BOOKS • • • • • • 2’1 Web Programming, building internet applications, Chris Bates edition, Wiley Dreamtech Java Server Pages —Hans Bergsten, SPD O’Reilly Java Script, D.Flanagan, O’Reilly, SPD. Beginning Web Programming-Jon Duckett WROX. Programming world wide web, R.W.Sebesta, Fourth Edition, Pearson. Internet and World Wide Web — How to program, Dietel and Nieto, Pearson Outcomes • • • • Use LAMP Stack for web applications Use Tomcat Server for Servlets and JSPs Write simple applications with Technologies like HTML, Javascript, AJAX, PHP, Servlets and JSPs Connect to Database and get results Parse XML tiles using Java (DOM and SAX parsers) For more information about all JNTU updates please stay connected to us on FB and don’t hesitate to ask any questions in the comment. Programmer Subject Faculty Co-Ordinator HOD Principal

Lecture Notes