software testing lab manual - jawaharlal nehru … testing.pdf · jawaharlal nehru engineering...

28
Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 – Rev 00 – MCA – ISO 9000 Tech Document Author JNEC, Aurangabad

Upload: vuongkien

Post on 03-Feb-2018

238 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

Jawaharlal Nehru Engineering College

Laboratory Manual

SOFTWARE TESTING

For

T.Y (M.C.A) Students

16, Jun 2010 – Rev 00 – MCA – ISO 9000 Tech Document

Author JNEC, Aurangabad

Page 2: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

FORWARD

It is my great pleasure to present this laboratory manual for T.Y (M.C.A) students for the subject of SOFTWARE TESTING. As a student, many of you may be wondering with some of the questions in your mind regarding the subject and exactly what has been tried is to answer through this manual. As you may be aware that MGM has already been awarded with ISO 9000 certification and it is our endure to technically equip our students taking the advantage of the procedural aspects of ISO 9000 Certification. Faculty members are also advised that covering these aspects in initial stage itself, will greatly relived them in future as much of the load will be taken care by the enthusiasm energies of the students once they are conceptually clear.

Prof. Dr.S.D.DESHMUKH Principal

Page 3: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

LABORATORY MANUAL CONTENTS

This manual is intended for the students T.Y (M.C.A) engineering for the subject of VB.NET. Subject name itself is expecting what are the advance tools that might be Visual Studio to develop and build rich .NET applications. In the subject of this manual typically contains practical/Lab Sessions we have dealt with SOFTWARE TESTING. Students are advised to thoroughly go through this manual rather than only topics mentioned are the key to understanding and conceptual visualization of theoretical aspects covered in the books. Good Luck for your Enjoyable Laboratory Sessions Lect. V.S.Agrawal

Page 4: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

DOs and DON’T DOs in Laborary: 1. Do not handle any equipment before reading the instructions/Instruction manuals

2. Read carefully the power ratings of the equipment before it is switched on whether

ratings 230 V/50

Hz or 115V/60 Hz. For Indian equipments, the power ratings are normally 230V/50Hz. If

you have equipment with 115/60 Hz ratings, do not insert power plug, as our normal

supply is 230V/50 Hz, which will damage the equipment.

3. Observe type of sockets of equipment power to avoid mechanical damage

4. Do not forcefully place connectors to avoid the damage

5. Strictly observe the instructions given by the teacher/Lab Instructor

Instruction for Laboratory Teachers::

1. Submission related to whatever lab work has been completed should be done during the

next lab session. The immediate arrangements for printouts related to submission on the

day of practical assignments.

2. Students should be taught for taking the printouts under the observation of lab teacher.

3. The promptness of submission should be encouraged by way of marking and evaluation

patterns that will benefit the sincere students.

Page 5: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

1. Lab Exercises:

INTRODUCTION TO WINRUNNER TESTING TOOL

Page 6: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –
Page 7: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –
Page 8: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

2. Lab Exercises:

RECORDING TEST IN CONTEXT SENSITIVE & ANALOG MODE

Page 9: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –
Page 10: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL (for context sensitive mode) #OpenOrder set_window("Open Order",2); button_set("Order No.",ON); edit_set("Edit","4"); button_press("OK");

TSL (for context sensitive mode) #AnalogRecording

move_locator_track(1); move_locator_track(2); move_locator_track(3); move_locator_track(4); mtype("<T78><kLeft>-<T94><kLeft>+"); move_locator_track(5); mtype("<T312><kLeft>-<T78><kLeft>+"); move_locator_track(6); mtype("<T375><kLeft>-"); move_locator_track(7); move_locator_track(8); mtype("<T125><kLeft>+"); move_locator_track(9); move_locator_track(10); mtype("<T62><kLeft>-"); mtype("<T78><kLeft>+");

Page 11: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

3. Lab Exercises:

SYNCHRONIZING TEST

TSL # Flight Reservation set_window ("Flight Reservation", 5); obj_mouse_click ("Button_1", 16, 12, LEFT); edit_set ("Date of Flight:", "07/18/10"); list_select_item ("Fly From:", "Frankfurt"); # Item Number 1; list_select_item ("Fly To:", "London"); # Item Number 1; obj_mouse_click ("FLIGHT", 48, 39, LEFT); # Flights Table_1 set_window ("Flights Table_1", 0); list_activate_item ("Flight", "13568 FRA 08:00 AM LON 08:45 AM SR $161.40"); # Item Number 3; # Flight Reservation set_window ("Flight Reservation", 3); edit_set ("Name:", "vinod"); button_press ("Insert Order"); # synchronization point. #wait(10); #or create-> synchronization point. obj_wait_bitmap("Insert Done...", "Img1", 10); set_window ("Flight Reservation", 6); button_press ("Delete Order"); # Flight Reservations_1 set_window ("Flight Reservations_1", 0); button_press ("Yes");

Page 12: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

4. Lab Exercises:

CHECKING GUI OBJECTS

Page 13: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –
Page 14: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL

# Flight Reservation win_check_gui("Flight Reservation", "list1.ckl", "gui1", 6);

Page 15: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

5. Lab Exercises: CHECKING BITMAP OBJECTS.

Page 16: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –
Page 17: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL

#html_frame win_check_bitmap("html_frame", "Img1", 2, 168, 413, 155, 105);

Page 18: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

6. Lab Exercises:

PROGRAMMING TEST WITH TSL

Page 19: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL

# Flight Reservation set_window ("Flight Reservation", 2); obj_mouse_click ("Button", 9, 12, LEFT); # Open Order set_window ("Open Order", 0); button_set ("Order No.", ON); edit_set ("Edit", "4"); button_press ("OK"); # Flight Reservation set_window ("Flight Reservation", 2); menu_select_item ("File;Fax Order..."); # Fax Order No. 4 win_move ("Fax Order No. 4", 62, 201); set_window("Fax Order No. 4", 5); edit_get_text("# Tickets:",tickets); edit_get_text("Ticket Price:",price); edit_get_text("Total:",total); if(tickets*price==total) tl_step("total",0,"passed"); else tl_step("total",1,"failed"); set_window ("Fax Order No. 4", 10); button_press ("Cancel");

Page 20: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

7. Lab Exercises: Note:-First scan the process that you want to drive.

CREATING DATA DRIVEN TEST

Page 21: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL

table = "default.xls"; rc = ddt_open(table, DDT_MODE_READ); if (rc!= E_OK && rc != E_FILE_OPEN) pause("Cannot open table."); ddt_get_row_count(table,table_RowCount); for(table_Row = 1; table_Row <= table_RowCount; table_Row ++) { ddt_set_row(table,table_Row); # Flight Reservation set_window ("Flight Reservation", 2); obj_mouse_click ("Button", 15, 9, LEFT); # Open Order win_move ("Open Order", 200, 232); # Open Order set_window ("Open Order", 1); button_set ("Order No.", ON); edit_set ("Edit", ddt_val(table,"ORDER_NO")); button_press ("OK"); } ddt_close(table);

Page 22: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

8. Lab Exercises:

MAINTANING TEST SCRIPT

Page 23: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL

set_window("Login", 1); obj_check_gui("OK", "list1.ckl", "gui1", 1);

Page 24: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

9. Lab Exercises:

BATCH TEST

Page 25: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

TSL Call”C:\\Documents and Settings\\Admin\\Desktop\\m"(); call"C:\\Documents and Settings\\Admin\\Desktop\\m1"();

Page 26: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

10. Lab Exercises:

project (creating test report)

on the basis of above test’s you have to create test report for all the screen

regarding your project.

Page 27: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

4. Quiz on the subject:

Quiz should be conducted on tips in the laboratory, recent trends and subject knowledge of

the subject. The quiz questions should be formulated such that questions are normally are

from the scope outside of the books. However twisted questions and self formulated

questions by the faculty can be asked but correctness of it is necessarily to be thoroughly

checked before the conduction of the quiz.

5. Conduction of Viva-Voce Examinations:

Teacher should oral exams of the students with full preparation. Normally, the objective

questions with guess are to be avoided. To make it meaningful, the questions should be such

that depth of the students in the subject is tested Oral examinations are to be conducted

in co-cordial environment amongst the teachers taking the examination. Teachers taking

such examinations should not have ill thoughts about each other and courtesies should be

offered to each other in case of difference of opinion, which should be critically suppressed

in front of the students.

6. Submission:

Document Standard:

A] Page Size A4 Size

B] Running text Justified text

C] Spacing 1 Line

D] Page Layout and Margins (Dimensions in Cms)

Normal Page Horizantal

2.0

2.5

2.0

2.5 2.0

2.0

0.7”

0.7”

2.0

Page 28: software testing lab manual - Jawaharlal Nehru … testing.pdf · Jawaharlal Nehru Engineering College Laboratory Manual SOFTWARE TESTING For T.Y (M.C.A) Students 16, Jun 2010 –

2.0

Desription Font Size Boldness Italics Underline Capitalize

College Name Arial 24 ----- ------ Yes ----------

Document Title Tahoma 22 ----- ------ --------- ----------

Document Subject Century Gothic 14 ----- ------ --------- Capital

Class Bookman old Slyle 12 ----- ------ --------- ----------

Document No Bookman old Slyle 10 ----- ------ --------- ----------

Copy write inf Bookman old Slyle 9 ----- ------ --------- ----------

Forward heading Bookman old Slyle 12 ----- ------ Yes Capital

Forward matter Bookman old Slyle 12 ----- ------ --------- ----------

Lab man Contents title Bookman old Slyle 12 ----- ------ Yes Capital

Index title Bookman old Slyle 12 Yes ------ Yes Capital

Index contents Bookman old Slyle 12 ----- ------ --------- ----------

Heading Tahoma 14 Yes Yes Yes ----------

Running Matter Comic Sans MS 10 ----- ------ --------- ----------

7. Evaluation and marking system:

Basic honesty in the evaluation and marking system is absolutely essential and in the process

impartial nature of the evaluator is required in the examination system to become popular

amongst the students. It is a wrong approach or concept to award the students by way of

easy marking to get cheap popularity among the students to which they do not deserve. It is

a primary responsibility of the teacher that right students who are really putting up lot of

hard work with right kind of intelligence are correctly awarded.

The marking patterns should be justifiable to the students without any ambiguity and

teacher should see that students are faced with unjust circumstances.