Electronic Commerce COMP3210 Bonus Session : Report Card Application Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 JavaScript and XHTML Documents Programming the World Wide Web Fourth.
Advertisements

CTER Orientation Tutorial The Use of the WebBoard.
1 After completing this lesson, you will be able to: Search for information on the Web. Create a favorites list. Use and modify your History folder.
Tables Tables provide a means of organising the layout of data
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
® Microsoft Office 2010 Browser and Basics.
Test Administrator Interface & Student Interface
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Tutorial 6 Creating a Web Form
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
CPSC 203 Introduction to Computers Tutorial 59 & 64 By Jie (Jeff) Gao.
WebDFS Budget Amendment and Personnel Processing.
Course Planning Part II: Using BCeSIS In just a few simple steps, you can now enter your course requests directly into the school’s student information.
1 Outline 13.1Introduction 13.2A Simple Program: Printing a Line of Text in a Web Page 13.3Another JavaScript Program: Adding Integers 13.4Memory Concepts.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 8: JavaScript I.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Introduction to WebCT Sheridan College Architectural Technology.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
Department of Information Technology e-Michigan Web Development 0 HTML Form Creation in the Vignette Content Management Application.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Creating a Web Site to Gather Data and Conduct Research.
Accessing the Admit Online System ADMIT. Accessing the Admit Online System Enter the address of the Admit system into your browser (Google Chrome, Firefox,
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
G053 - Lecture 16 Validating Forms Mr C Johnston ICT Teacher
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
Creating a Form on a Web Page
Using Client-Side Scripts to Enhance Web Applications 1.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
1 After completing this lesson, you will be able to: Transfer your files to the Internet. Choose a method for posting your Web pages. Use Microsoft’s My.
ITCS373: Internet Technology Lecture 5: More HTML.
JavaScript - A Web Script Language Fred Durao
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer & Mathematical Sciences, Universiti Teknologi.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
Getting Starting Begin the journey at “servicematters.com” Click on the “Brand Academy” logo All pop-up blockers must be disabled before proceeding.
 2000 Deitel & Associates, Inc. All rights reserved. Outline 8.1Introduction 8.2A Simple Program: Printing a Line of Text in a Web Page 8.3Another JavaScript.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing a Line of Text in a Web Page 7.3 Another JavaScript.
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
XP New Perspectives on Microsoft Windows XP Tutorial 5 1 Microsoft Windows XP Bringing the World Wide Web to the Desktop Tutorial 5.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
SAM Challenge 2013 Student Getting Started Guide.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Chapter 2 Client/Server Applications
Section 10.1 YOU WILL LEARN TO… Define scripting
WEB PROGRAMMING JavaScript.
Integrating JavaScript and HTML
JavaScript Form Validation
Online Course Selection
JavaScript: Introduction to Scripting
Presentation transcript:

Electronic Commerce COMP3210 Bonus Session : Report Card Application Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University of the West Indies, Cave Hill Campus Barbados The Department of Computer Science Mathematics and Physics, University of the West Indies, Cave Hill Campus, Barbados © 2007 Dr. Paul Walcott

Session Objectives Create a simple report card application Using JavaScript and XHTML 1.0 Create test requirements and test cases for the report card application Evaluate the quality of the report card application by applying these tests

Report Card Application Requirements The report card application allows: A user to enter a mark for a given course Marks for the three courses, COMP1130, COMP2145 and COMP3210 to be added to the report card

Report Card Application Question ? How would you design the user interface?

Report Card Application Cont’d User Interface Design The user interface design for the report card is illustrated below:

Report Card Application Cont’d User Interface Design Cont’d The picklist contains the course names COMP1130, COMP2145 and COMP3210 The Mark text box is used to enter the course mark When the update button is clicked: The mark is added to the report card and The corresponding course name and mark are displayed

Report Card Application Cont’d User Interface Design Cont’d If the mark entered is less than 0 or greater than 100 then the following popup window appears:

Report Card Application Question ? What do you think is a possible test requirement?

Report Card Application Cont’d Test Requirements Ensure that marks can be entered for each of the three courses and that these marks are displayed correctly on the report card Ensure that the exception message is displayed when erroneous input is entered Ensure that the report card application works correctly in multiple browsers (e.g. Internet Explorer, Netscape and Opera)

Report Card Application Cont’d Test Requirements Ensure that the markup produced is valid XHTML 1.0

Report Card Application Question ? Can you create at least one test case? Remember that test cases comprise of a pre- condition, a test and a post-condition

Report Card Application Cont’d Test Cases Only some of the possible test cases will be included in these notes It is left as an exercise for the reader to ensure that the list of test cases is complete and comprehensive

Report Card Application Cont’d Test Case #1 Precondition: The web browser window is open Test: Enter reportcard.html as the URL address Postcondition: The report card application web page is displayed

Report Card Application Cont’d Test Case #2 Precondition: Select the COMP1130 course and enter a mark of 65 Test: Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #3: Prompt() Method Bug Precondition: Select the COMP1130 course and enter a mark of 09 Test: Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #4 Precondition: Test #2 has been run Test: Select the COMP1130 course from the picklist, enter a mark of 55, then Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #5 Precondition: Test #2 has been run Test: Select the COMP3210 course from the picklist, enter a mark of 75, then Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #6: Boundary Conditions Precondition: Select the COMP1130 course and enter a mark of 0 Test: Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #7: Boundary Conditions Precondition: Select the COMP1130 course and enter a mark of 100 Test: Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #8: Boundary Conditions Precondition: Select the COMP1130 course and enter a mark of 101 Test: Click the Update button Postcondition: The following report card is displayed

Report Card Application Cont’d Test Case #9: Exception Precondition: Select the COMP1130 course and enter a mark of -1 Test: Click the Update button Postcondition: The following is displayed

Report Card Application Cont’d Test Case #10: Exception Precondition: Select the COMP1130 course and leave the mark blank Test: Click the Update button Postcondition: The following is displayed

Report Card Application Cont’d Test Case #11: Exception Precondition: Select the COMP1130 course and enter a mark of “abdf” Test: Click the Update button Postcondition: The following is displayed

Report Card Application Cont’d Other important test cases include: testing on multiple browsers Using the validator at to determine whether all of the markup written is valid XHTML 1.0http://validator.w3.org Inputting floating point numbers rather than integers

Report Card Application Cont’d Building the Application In order to build the application: An XHTML 1.0 page must be created which includes the form illustrated in the design A stylesheet is required for: The “Report Card” text The report card The mark text box The submit button

Report Card Application Cont’d Building the Application (Cont’d) In order to build the application JavaScript functions will be used to: Update the report card table Display the table Clear the Mark text box An array data structure will be used to hold the course marks

Report Card Application Cont’d Building the Application (Cont’d) Let us build the application!