UNIVERSITY OF MUMBAI T.Y.B.Sc. INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 2014 SOFTWARE TESTING Seat No. : Max.

Similar documents
T. Y. B.Sc. I.T. Semester V SOFTWARE TESTING. TEACHER s REFERENCE MANUAL FOR PRACTICALS

What is Structural Testing?

CS 4387/5387 SOFTWARE V&V LECTURE 4 BLACK-BOX TESTING

IV Year I SEMESTER. Software Testing Lab

Software Testing. 1. Testing is the process of demonstrating that errors are not present.

Introduction. Easy to get started, based on description of the inputs

Software Testing Laboratory Lab Assignments

Equivalence Class Partitioning. Equivalence Partitioning. Definition and Example. Example set of classes

Input Space Partitioning

EXERCISES (Software Engineering)

Software Testing Fundamentals. Software Testing Techniques. Information Flow in Testing. Testing Objectives

Introduction to Software Testing Chapter 4 Input Space Partition Testing

Name. 6b, Triangles. 1. A bridge contains beams that form triangles, as shown below.

EECS 4313 Software Engineering Testing. Topic 05: Equivalence Class Testing Zhen Ming (Jack) Jiang

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

Question 1. [5 points] Circle and briefly explain the error(s) in the following code:

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Final Examination Semester 3 / Year 2010

Write a java program to prints the count of odd and even no s entered.

Functional Testing (Black Box Testing)

Introduction to Software Engineering

linaye/gl.html

Software Testing. Lecturer: Sebastian Coope Ashton Building, Room G.18

University of Cape Town ~ Department of Computer Science Computer Science 1015F ~ June Exam

UNIT-4 Black Box & White Box Testing

Testing: Test design and testing process

UNIT-4 Black Box & White Box Testing

Programming: Java. Chapter Objectives. Control Structures. Chapter 4: Control Structures I. Program Design Including Data Structures

LECTURE 11 TEST DESIGN TECHNIQUES IV

1. Identify the different parts of a triangle 2. Classify triangles by their angle measures 3. Classify triangles by their side lengths

Name Date Teacher Practice A

Concepts Review. 2. A program is the implementation of an algorithm in a particular computer language, like C and C++.

Using the Portal. The Overview tab displays your Quick Links, announcements from your agency, recent documents, and a list of your agency contacts.

Software Testing 1. Introduction

Classify Triangles. by the Angle Measure &The Side Lengths. Properties a SCALENE Triangle angles 1.Sum of the interior

Darshan Institute of Engineering & Technology for Diploma Studies

Unit 6 - Software Design and Development LESSON 4 DATA TYPES

COMP 102: Test August, 2017

CSCE 747 Software Testing and Quality Assurance

AP Computer Science Unit 3. Programs

Specification-based test design

Software Testing. Software Testing. Theory, Practise and Reality IBM Corporation

Introduction To Software Testing. Brian Nielsen. Center of Embedded Software Systems Aalborg University, Denmark CSS

1.00/1.001 Introduction to Computers and Engineering Problem Solving. Final Exam

Functional Specifications Document

University of Cape Town ~ Department of Computer Science. Computer Science 1015F ~ 2007

Phaseware Self Service Center End User Manual

P.G.D.C.M. (Semester I) Examination, : ELEMENTS OF INFORMATION TECHNOLOGY AND OFFICE AUTOMATION (2008 Pattern)

Introduction to Triangles

EXAMINATION FOR THE BSC (HONS) INFORMATION SYSTEMS; BSC (HONS) INFORMATION TECHNOLOGY & BSC (HONS) COMPUTER SCIENCE; YEAR 1

SE Notes Mr. D. K. Bhawnani, Lect (CSE) BIT

SUGGESTED LEARNING STRATEGIES:

Control Flow: Loop Statements

Lesson 4. Classifying Triangles

I3302 Server-side Web Development TS 1 : PHP

CU Careers: Frequently Asked Questions

ALGEBRA For each triangle, find x and the measure of each side. 1. LMN is an isosceles triangle, with LM = LN, LM = 3x 2, LN = 2x + 1, and MN = 5x 2.

CSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :

SECONDARY SCHOOL, L-IMRIEĦEL HALF YEARLY EXAMINATIONS 2016/2017

Affinity Provider Portal Training Manual

Computer Science and Software Engineering University of Wisconsin - Platteville 9-Software Testing, Verification and Validation

6.0 ECTS/4.5h VU Programm- und Systemverifikation ( ) June 22, 2016

October 2015 Allstate (A553)

Triangle and its Properties

COMP 102: Test August, 2017

MTAT : Software Testing

Practice Problems. Review, with SOME solutions

TeeJay Publishers Homework for Level D book Ch 10-2 Dimensions

Builders & Tradesmen s Insurance Services, Inc. BTIS New Producer Registration Guide - E-Signature

CS1110 Lab 6 (Mar 17-18, 2015)

Paper 2 Problem-solving and Programming For Examination from 2015 SPECIMEN PAPER 1 hour 45 minutes

Testing Theory. Agenda - What will you learn today? A Software Life-cycle Model Which part will we talk about today? Theory Lecture Plan

Affinity Provider Portal Training Manual

CS13002 Programming and Data Structures, Spring 2005

My PHLY Registration Process and User Guide

Lesson 10: Parts and Types of Triangles

Paper 2 Problem-solving and Programming For Examination from 2016 SPECIMEN PAPER 1 hour 45 minutes

Assister Portal Manual Updated

G.8 Right Triangles STUDY GUIDE

S3 / S4 General Course Overview

Geometry- Unit 6 Notes. Simplifying Radicals

Extra Practice 1. Name Date. Lesson 1: Exploring Triangles

Software Quality Engineering Exercises

PLD Semester Exam Study Guide Dec. 2018

Part III Appendices 165

ECSE 321 Assignment 2

c) A perfect ternary tree of height h? (In a ternary tree, each node may have up to three children.)

Software Quality Assurance Dynamic Test

TIME: 3 HOURS MARKS: a. Develop a java program to sort an array of N numbers in ascending order. (40)

SOFTWARE TESTING LAB MANUAL EXPERIMENT 1: Prefix Three-digit number, not beginning with 0 or 1. "Check status", "Deposit", "Withdrawal"

Software Engineering Software Requirements Specification (SRS) Document

CS 106 Introduction to Computer Science I

SOFTWARE TESTING-UNIT 2

UNIVERSITY OF MAURITIUS LIBRARY. User Guide

WT I (SET-I) Date: Class XI Sec. Time: 1 Hr. 10 min. Computer Science M.M.: 30

Introduction to String Manipulation

Heron s formula Formative assessment

Study Guide and Review

CSCI 111 Midterm 1, version A Exam Fall Solutions 09.00am 09.50am, Tuesday, October 13, 2015

My PHLY Registration Process (Insured) and User Guide

Transcription:

T.Y.B.Sc. INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 14 1. Design the test cases for Boundary Value analysis of the following. Consider a program that prompts the user to input three numbers (say x, y, z) and the data type for input parameters ensures that these will be integers greater than 0 and less than or equal to 100. The program should then output the numbers in ascending order. 2. Design the test cases for Equivalence Partitioning for question 1. T.Y.B.Sc.(INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 14 1. Design the test cases for Boundary Value analysis of the following. Consider a program for determining the largest amongst three numbers. Its input is a triple of integers and the numbers are in [1, 300]. The possible outputs would be largest amongst three numbers or invalid input. 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window.

OCTOBER 14 1. Consider a simple program to classify a triangle. Its inputs is a triple of positive integers (say x, y, z) and the data type for input parameters ensures that these will be integers greater than 0 and less than or equal to 100. The program output may be one of the following words: [Scalene; Isosceles; Equilateral; Not a triangle] Design the equivalence class test cases. 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window. OCTOBER 14 1. You have got the brilliant idea of setting up a company that sells testing services to software houses. Make a strategic plan for your company, taking into account the following issues: a. What is the testing process that will be followed in the company? b. What is the focus of the testing services? c. What kind of people are you going to hire as staff for the company? d. How are you going to validate that a testing project carried out in the company has been beneficial to the customer? e. What kind of automated tools will the company use? 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window.

OCTOBER 14 1. The program reads an arbitrary number of temperatures (as integer numbers) within the range -60 C +60 C and prints their mean value. Design test cases for testing the program with the black-box strategy (Equivalence Partitioning and Boundary value Analysis). 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window. OCTOBER 14 1. When getting a person s weight and height as input, the program prints the person s body weight index. The weight is given in kilograms (as a real number, for instance: 82.0) and the height in meters (as a real number, for instance: 1.86). The body weight index equals weight divided by height squared: weight / (height * height). Design test cases for testing the program with the black-box strategy (Equivalence Partitioning and Boundary value Analysis) 2. Design a web form using simple HTML. Record a selenium script while filling the form. Run the script. Generate Java Web driver code of the same.

OCTOBER 14 1. An insurance agency has the following norms fixed to provide premium for its 40 policy holders: a. If age<=25 and no claim has been made, premium increase will be $50, else $25. b. If age <=25 and number of claims made is one, premium increase will be $100, else $50. c. If age <=25 and number of claims made is 2-4, premium increase will be $400, else $0. d. If one or more claims are made, send warning letter. If the number of claims made is 5 or more, cancel policy. Draw the Decision table and design test cases for Insurance renewal. 2. Viva 5 3. Journal 5 OCTOBER 14 1. An insurance agency has the following norms fixed to provide premium for its policy holders: a. If age<=25 and no claim has been made, premium increase will be $50, else $25. b. If age <=25 and number of claims made is one, premium increase will be $100, else $50. c. If age <=25 and number of claims made is 2-4, premium increase will be $400, else $0. d. If one or more claims are made, send warning letter. If the number of claims made is 5 or more, cancel policy. Draw the cause effect graph and design the test cases for Insurance renewal. 2. Design a web form. Write Selenium IDE test case to open and fill the form. Generate Java Webdriver code of the script.

OCTOBER 14 1. For the following liability procedure, design test cases using decision/condition coverage. Procedure Liability(Age,Gender, Married,Premium) Begin Premium:=500; If(Age<25) and (Gender=Male) and (not Married) Then Premium=Premium+1500; Else (if (Married or Gender=Female)) Then Premium=Premium-0; if (Age>45) and (Age<65) Then Premium=Premium-100 End; 2. Design a web form. Write Selenium IDE test case to open and fill the form. Generate Java Webdriver code of the script. OCTOBER 14 1. Write SRS for developing payroll system. Develop test plan as per IEEE 829 40 format for the same. 2. Viva 5 3. Journal 5

OCTOBER 14 1. Specifications: The software responds to input requests to change the display mode for a time display device. The display mode can be set to one of the 40 four values: Two corresponding to displaying either time or date. The other two when altering either time or date. Four possible input requests: Change mode (CM) Reset (R) Time Set (TS) Date Set (DS) Change Mode (CM): Activation of this shall cause the display mode to move between Display Time (T) and Display Date (D) Reset (R): If display mode is set to T or D, then a reset shall cause the display mode to be set to Alter time (AT) or Alter Date (AD) modes. Time Set (TS): Activation of this shall cause the display mode to return to T from AT. Date Set (DS): Activation of this shall cause the display mode to return to D from AD. Draw the state transition diagram, possible transitions table, State table and write the test cases. 2. Viva 5 3. Journal 5

OCTOBER 14 1. For the following program, draw the path coverage diagram, determine cyclomatic complexity write the basis paths to be tested and the test cases. Euclid(int m, int n) { int r; if (n > m){ r = m; m = n; n = r; } r = m % n; while( r! = 0){ m = n; n = r; r = m % n; } return n; } 2. Design a web form using simple HTML. Record a selenium script while filling the form. Run the script. Generate Java Web driver code of the same.

OCTOBER 14 1. 0 void quad_eqn (float A,B,C, Boolean Is_Complex) 1 { float Discrim = B*B-4*A*C 2 float R1,R2; 3 { 4 If Discrim<0.0 5 Is_Complex=true; 6 Else 7 Is_Complex=false 8 Endif; 9 If not Is_Complex 10 R1=(-B+Sqrt(Discrim))/(2.0*A); 11 R2=(-B-Sqrt(Discrim))/(2.0*A); 12 Endif; 13 End quad_eqn;} 14 } For the above function, draw the following tables and write the test cases: a. Occurrence of variables and their categories. b. du pairs and their type c. All c-uses d. All p-uses 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window.

OCTOBER 14 1. Consider the following code: 1. int main (int MaxCols, int Iterations, int MaxCount) 2. { 3. int count = 0, totals[maxcols], val = 0; 4. memset (totals, 0, MaxCols * sizeof(int)); 5. count = 0; 6. if (MaxCount > Iterations) 7. { 8. while (count < Iterations) 9. { 10. val = abs(rand()) % MaxCols; 11. totals[val] += 1; 12. if (totals[val] > MaxCount) 13. { 14. totals[val] = MaxCount; 15. } 16. count++; 17. } 18. } 19. return (0);.} a. Create a directed control-flow graph for this code. b. Calculate the cyclomatic complexity. c. List the basis test paths that should be tested. 2. Design a web page with a two text boxes and two buttons. Write Selenium Script using IDE to enter Username and password and click the submit button. After the submit button is clicked, redirect it to the new page and compare its title. If the title matches, display the message Title matched in the output window.

T.Y.B.Sc.(INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 14 1. Design the test cases for Boundary Value analysis of the following. Consider a program for determining the largest amongst three numbers. Its input is a triple of integers and the numbers are in [1, 300]. The possible outputs would be largest amongst three numbers or invalid input. 2. Design an HTML form. Write Selenium webdriver to automate the form filling process. OCTOBER 14 1. Consider a simple program to classify a triangle. Its inputs is a triple of positive integers (say x, y, z) and the data type for input parameters ensures that these will be integers greater than 0 and less than or equal to 100. The program output may be one of the following words: [Scalene; Isosceles; Equilateral; Not a triangle] Design the equivalence class test cases. 2. Design a web page with a button. On the click of the button a message box should be displayed with a message. Write a selenium web driver script to capture the test in the message box and display the text in the output window

OCTOBER 14 1. You have got the brilliant idea of setting up a company that sells testing services to software houses. Make a strategic plan for your company, taking into account the following issues: a. What is the testing process that will be followed in the company? b. What is the focus of the testing services? c. What kind of people are you going to hire as staff for the company? d. How are you going to validate that a testing project carried out in the company has been beneficial to the customer? e. What kind of automated tools will the company use? 2. Design a web page with a button. On the click of the button a message box should be displayed with a message. Write a selenium web driver script to capture the test in the message box and display the text in the output window OCTOBER 14 1. The program reads an arbitrary number of temperatures (as integer numbers) within the range -60 C +60 C and prints their mean value. Design test cases for testing the program with the black-box strategy (Equivalence Partitioning and Boundary value Analysis). 2. Design an HTML form. Write Selenium webdriver to automate the form filling process.

OCTOBER 14 1. When getting a person s weight and height as input, the program prints the person s body weight index. The weight is given in kilograms (as a real number, for instance: 82.0) and the height in meters (as a real number, for instance: 1.86). The body weight index equals weight divided by height squared: weight / (height * height). Design test cases for testing the program with the black-box strategy (Equivalence Partitioning and Boundary value Analysis) 2. Design a web page with a button. On the click of the button a message box should be displayed with a message. Write a selenium web driver script to capture the test in the message box and display the text in the output window OCTOBER 14 1. For the following liability procedure, design test cases using decision/condition coverage. Procedure Liability(Age,Gender, Married,Premium) Begin Premium:=500; If(Age<25) and (Gender=Male) and (not Married) Then Premium=Premium+1500; Else (if (Married or Gender=Female)) Then Premium=Premium-0; if (Age>45) and (Age<65) Then Premium=Premium-100 End; 2. Design a web page with a button. On the click of the button a message box should be displayed with a message. Write a selenium web driver script to capture the test in the message box and display the text in the output window.