Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. The functional specification for the Temperature Conversion Program is already given in another document attached). In the class we created few test cases from

image text in transcribed

image text in transcribed

image text in transcribed

1. The functional specification for the Temperature Conversion Program is already given in another document attached). In the class we created few test cases from that requirements document. In this exercise you will: a) Create twenty (25) test cases from Requirements 3 and 4, and 5 and give them in a Word file) as a table (see example below). Be sure to create test cases from the boundary conditions. Expected Output Test Requirement Input Case NO. (FromTemptyP, TOTemp Typ, Value) No. b) Execute ten (10) of those test cases manually and show the observation along with a conclusion for each test case as a table with four columns: Test Case No., Requirement No., Observed Output, and Conclusion. Conclude whether the test passed or failed for each test case. c) Execute the other fifteen (15) test cases by writing and running a Windows batch (or Unix/Linux script) file to execute (using simple Windows or Unix/Linux shell commands) automatically and output to the test results in an output file. The batch file or the script) must first compile the source code before executing the test cases. Submit the batch/script file and the test result output file by naming the batch/script as your first initial followed by last name (one word) followed by the extension .bat (windows) or .sh (Unix/Linux). Name the output file as your first initial last name followed by _output with extension .txt. d) The test cases that failed from part (b) enter a description of the observation in the bug report on MantisBt. You will submit a report from MantisBT and include it with your submission. Name the report file as your first initial last name followed by _report with appropriate extension. 2. A test engineer generates 80 mutants of a program P and 120 test cases to test the program P. After the first iteration of mutation testing, the tester finds 60 dead mutants and 5 equivalent mutants. Calculate the mutation score for this test suite. Is the test suite adequate for program P? Should the test engineer develop additional test cases? Justify your answer. 3. Given the code Commission.java develop six (6) test cases and six (6) mutants and then give the test results in tabular form using the following: Test Case Input No. Original Program Expected Output Original Program Mutant Tests: Observed Output Observed Mutant1 Mutant2 Mutant Mutant 4 Mutants Mutant6 Output source a) Give the code for all of the mutants (Commissioni.java, Commission2.java, Commission3.java, Commission4.java, Commission5.java, and Commission6.java) that you created as a zip file. b) Give a batch file (test_mutants.bat) with your name prefix in the file name to compile and run all the mutants and the original (unaltered) code automatically. c) Provide the output of running the batch file named as mutation_test_out.txt with your name prefix in the file name d) Give the changed lines of the program code for each mutant (before and after) and then compute the mutation score of your test (in Word document). 4. The code listing for the Number Conversion Program is already given (NumberConversion.java attached). This program converts numbers between bases (e.g., binary to decimal, decimal to hexadecimal, etc.), and verifies if a number is valid for its base. It has four methods (program units) named: dec2any, any2dec, anyzany, and isValidInBase. Write a test class named TestNumberConversion.java to do the unit test of the four program units. In this exercise you will: a) Develop and give (in Word document) the dynamic unit test cases for each of the units to run test in the JUnit framework (using table similar to Qla). b) Write a JUnit test class named TestNumberConversion.java containing all the appropriate methods that will have the call to assertion methods for the unit test of methods in NumberConversion.java. c) Provide a windows command batch file (named Run_Test_Conversion.bat with your name prefix) that will contain commands for compiling and running of the files NumberConversion.java and TestNumberConversion.java from a command windows. 1. The functional specification for the Temperature Conversion Program is already given in another document attached). In the class we created few test cases from that requirements document. In this exercise you will: a) Create twenty (25) test cases from Requirements 3 and 4, and 5 and give them in a Word file) as a table (see example below). Be sure to create test cases from the boundary conditions. Expected Output Test Requirement Input Case NO. (FromTemptyP, TOTemp Typ, Value) No. b) Execute ten (10) of those test cases manually and show the observation along with a conclusion for each test case as a table with four columns: Test Case No., Requirement No., Observed Output, and Conclusion. Conclude whether the test passed or failed for each test case. c) Execute the other fifteen (15) test cases by writing and running a Windows batch (or Unix/Linux script) file to execute (using simple Windows or Unix/Linux shell commands) automatically and output to the test results in an output file. The batch file or the script) must first compile the source code before executing the test cases. Submit the batch/script file and the test result output file by naming the batch/script as your first initial followed by last name (one word) followed by the extension .bat (windows) or .sh (Unix/Linux). Name the output file as your first initial last name followed by _output with extension .txt. d) The test cases that failed from part (b) enter a description of the observation in the bug report on MantisBt. You will submit a report from MantisBT and include it with your submission. Name the report file as your first initial last name followed by _report with appropriate extension. 2. A test engineer generates 80 mutants of a program P and 120 test cases to test the program P. After the first iteration of mutation testing, the tester finds 60 dead mutants and 5 equivalent mutants. Calculate the mutation score for this test suite. Is the test suite adequate for program P? Should the test engineer develop additional test cases? Justify your answer. 3. Given the code Commission.java develop six (6) test cases and six (6) mutants and then give the test results in tabular form using the following: Test Case Input No. Original Program Expected Output Original Program Mutant Tests: Observed Output Observed Mutant1 Mutant2 Mutant Mutant 4 Mutants Mutant6 Output source a) Give the code for all of the mutants (Commissioni.java, Commission2.java, Commission3.java, Commission4.java, Commission5.java, and Commission6.java) that you created as a zip file. b) Give a batch file (test_mutants.bat) with your name prefix in the file name to compile and run all the mutants and the original (unaltered) code automatically. c) Provide the output of running the batch file named as mutation_test_out.txt with your name prefix in the file name d) Give the changed lines of the program code for each mutant (before and after) and then compute the mutation score of your test (in Word document). 4. The code listing for the Number Conversion Program is already given (NumberConversion.java attached). This program converts numbers between bases (e.g., binary to decimal, decimal to hexadecimal, etc.), and verifies if a number is valid for its base. It has four methods (program units) named: dec2any, any2dec, anyzany, and isValidInBase. Write a test class named TestNumberConversion.java to do the unit test of the four program units. In this exercise you will: a) Develop and give (in Word document) the dynamic unit test cases for each of the units to run test in the JUnit framework (using table similar to Qla). b) Write a JUnit test class named TestNumberConversion.java containing all the appropriate methods that will have the call to assertion methods for the unit test of methods in NumberConversion.java. c) Provide a windows command batch file (named Run_Test_Conversion.bat with your name prefix) that will contain commands for compiling and running of the files NumberConversion.java and TestNumberConversion.java from a command windows

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

c. Determine the confidence intervals of the linearised parameters.

Answered: 1 week ago