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 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 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 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. 1. Lab Exercises: INTRODUCTION TO WINRUNNER TESTING TOOL 2. Lab Exercises: RECORDING TEST IN CONTEXT SENSITIVE & ANALOG MODE 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>+"); 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:45 AM SR $161.40"); # Item Number 3; 08:00 AM # 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"); LON 4. Lab Exercises: CHECKING GUI OBJECTS TSL # Flight Reservation win_check_gui("Flight Reservation", "list1.ckl", "gui1", 6); 5. Lab Exercises: CHECKING BITMAP OBJECTS. TSL #html_frame win_check_bitmap("html_frame", "Img1", 2, 168, 413, 155, 105); 6. Lab Exercises: PROGRAMMING TEST WITH TSL 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"); 7. Lab Exercises: Note:-First scan the process that you want to drive. CREATING DATA DRIVEN TEST 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); 8. Lab Exercises: MAINTANING TEST SCRIPT TSL set_window("Login", 1); obj_check_gui("OK", "list1.ckl", "gui1", 1); 9. Lab Exercises: BATCH TEST TSL Call”C:\\Documents and Settings\\Admin\\Desktop\\m"(); call"C:\\Documents and Settings\\Admin\\Desktop\\m1"(); 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. 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 2.0 Desription College Name Document Title Document Subject Class Document No Copy write inf Forward heading Forward matter Lab man Contents title Index title Index contents Heading Running Matter Font Arial Tahoma Century Gothic Bookman old Slyle Bookman old Slyle Bookman old Slyle Bookman old Slyle Bookman old Slyle Bookman old Slyle Bookman old Slyle Bookman old Slyle Tahoma Comic Sans MS Size 24 22 14 12 10 9 12 12 12 12 12 14 10 Boldness ------------------------------------Yes ----Yes ----- Italics -------------------------------------------------------Yes ------ Underline Yes ----------------------------------------Yes --------Yes Yes --------Yes --------- Capitalize ------------------Capital ---------------------------Capital ---------Capital Capital ---------------------------- 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.