Basic Concepts and Preliminaries

Software Security, Testing, and Quality Assurance

Homework 2: Basic Concepts and Preliminaries, Theory of Program Testing, Unit Testing Spring 2021

  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:
    1. 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.




Requirement No.


(FromTempTyp, ToTempTyp, Value)

Expected Output

  1. 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





Original Program

Expected Output





Mutant Tests: Observed Output







No., Observed Output, and Conclusion.   Conclude whether the test passed or failed for each test case.

  1. 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


  1. 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 appropria extension.
  1. 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.
  1. Given the code java develop six (6) test cases and six (6) mutants and then give the test results in tabular form using the following:
  1. Give the       source code     for       all        of         the       mutants           (java,

      ,   ,  ,, and that you created as a zip file.

  1. Give a batch file (bat) with your name prefix in the file name to compile and run all the mutants and the original (unaltered) code automatically.
  2. Provide the output of running the batch file named as txt with your name prefix in the file name
  3. 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 (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, any2any, and isValidInBase. Write a test class named to do the unit test of the four program units.  In this exercise you will:
    1. 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 Q1a).
    2. Write a JUnit test class named java containing all the appropriate methods that will have the call to assertion methods for the unit test of methods in
    3. Provide a windows command batch file (named bat with your name prefix) that will contain commands for compiling and running of the files and from a command windows.

Windows Batch Files: Compiling and running a program from a Windows batch file must first check for the existence of the class file before deleting it.  A compilation step must check for the existence of the source file and ensure that compilation succeeded before running it.

Note: submit all files zipped into one zip file and name the zip file by following file naming instruction given in D2L. You will incur penalty for not following the file naming requirements.


Download Sample Now

Earn back money you have spent on downloaded sample

Upload Document Document Unser Evaluion Get Money Into Your Wallet

Cite This work.

To export a reference to this article please select a referencing stye below.

Assignment Hippo (2021) . Retrive from

"." Assignment Hippo ,2021,

Assignment Hippo (2021) . Available from:

[Accessed 17/10/2021].

Assignment Hippo . ''(Assignment Hippo,2021) accessed 17/10/2021.

Want latest solution of this assignment

Want to order fresh copy of the Sample Template Answers? online or do you need the old solutions for Sample Template, contact our customer support or talk to us to get the answers of it.

Submit Your Assignment Here

AssignmentHippo Features

On Time Delivery

Our motto is deliver assignment on Time. Our Expert writers deliver quality assignments to the students.

Plagiarism Free Work

Get reliable and unique assignments by using our 100% plagiarism-free.

24 X 7 Live Help

Get connected 24*7 with our Live Chat support executives to receive instant solutions for your assignment.

Services For All Subjects

Get Help with all the subjects like: Programming, Accounting, Finance, Engineering, Law and Marketing.

Best Price Guarantee

Get premium service at a pocket-friendly rate at AssignmentHippo


  • Assignment Writing Guide
  • Essay Writing Guide
  • Dissertation Writing Guide
  • Research Paper Writing Guide


  • Accounts
  • Computer Science
  • Economics
  • Engineering

Client Review

I was struggling so hard to complete my marketing assignment on brand development when I decided to finally reach to the experts of this portal. They certainly deliver perfect consistency and the desired format. The content prepared by the experts of this platform was simply amazing. I definitely owe my grades to them.

Tap to Chat
Get instant assignment help