How you would perform a manual test

Assignment Help JAVA Programming
Reference no: EM133289766

Java Test Coverage Application QA Challenge

This project contains an interview question designed to assess your Java testing ability.

Please note that we will look as much at readability, structure and documentation as we will at accuracy and correctness. Show us how good you are!

This project contains some basic interfaces & implementations which represent Java source code and coverage of that source code by tests, and a simple application to demonstrate how these classes might be used to analyze a single source file.

- `CodeLine` represents a line of Java code in a file
- `CodeClass` represents a Java class or interface file
- `CodeAnalyzer` represents the coverage analysis engine
- `CodeTest` represents a Java test

Briefly, the goal of the application written using these classes will be to analyze a series of Java source files together with tests that cover
those classes. This analysis will give the user insights such as which lines are covered by the tests, what is the minimal set of tests which can cover all possible lines, etc...

In this exercise no real analysis will be done. The analysis will return a random set of covered lines for a given Java source file.

Include your answers to the questions (aside from the code that you write) or any other notes either as comments in the Java files that you create or as a separate document. Please make sure that this project can be compiled using `mvn compile` and tested using `mvn test` on the reviewer's computers under any operating system.

Question 1
Consider the class `Example Line`.
Which parts of this class would you test and which would you not test? Why?

Question 2
Write tests for the classes `ExampleClass` and `ExampleAnalyzer`.

For methods that you choose to test, write down which sets of inputs you have chosen to test and explain why you have chosen those inputs. Keep also in mind that in order to test `ExampleAnalyzer`, you will likely have to interact with `ExampleTest`, which has a random component. Make sure that your unit tests pass reliably in repeated executions.

Hint: Search `ExampleTest` and `pom.xml` for hints of two ways how the randomness of `ExampleTest` could be handled in your unit tests.

Question 3
Consider the use case where the program is used to find all lines of code covered in a Java source file by at least two different test files. Write an end-to-end test for this use case.

Note that you do not have to read in any test files, but you may use the randomly generated test coverage that `ExampleTest` generates. Do ensure that the randomly covered lines are consistent between invocations of the test that you write.

Note also that we do not expect you to test the 'user interface' layer (i.e. command line output), hence you may write tests that use
only the classes other than `ExampleApplication`.

Question 4
Briefly describe how you would perform a manual test of the main application included in this example (`ExampleApplication#main`). What inputs to the application would you consider and what behaviour might you be looking for?

Reference no: EM133289766

Questions Cloud

Explain would be hungry but loved than fed but terrified : In the chapter "Egusi Stew," Kwame says that he would rather be hungry but loved than fed but terrified. Explain why he says this.
Demonstrate how they might impede crisis intervention effort : Identify two culturally biased assumptions and demonstrate how they might impede crisis intervention efforts.
Which the physician within you heals your sick self : It is the bitter potion by which the physician within you heals your sick self. Therefore, trust the physician and drink his remedy in silence and tranquility.
Discusses role of institutionalized emotions : Newman discusses the role of "institutionalized" emotions in our everyday working lives. Describe the "institutionalized emotion norms" at your workplace.
How you would perform a manual test : How you would perform a manual test of the main application included in this example (`ExampleApplication#main`). What inputs to the application
How can use a literacy activity to facilitate social : How can you use a literacy activity to facilitate social interactions between two peers who are non-verbal in a special education classroom?
Sociological significance of broken window theory : Define and elaborate on the sociological significance of the broken window theory and include examples.
Examples of interdisciplinary research : List other kinds of interdisciplinary projects that could form from the themes of these issues?
Sociological significance of societal deviance : Define and elaborate on the sociological significance of societal deviance, situational deviance, and positive deviance and include examples of each.

Reviews

len3289766

12/5/2022 10:56:19 PM

You have to check requirement.txt file and QATest.zip is project which you have to unzip and already java classes present .you have to write the code and you have to execute Test.

Write a Review

JAVA Programming Questions & Answers

  Creates an array with x randomly generted integer elements

Write a program DuplicateTester.java that prompts user for a posi- tive integer x and creates an array with x randomly generted integer ele- ments in range 0 to 9. Use a method with signature public static int[] removeDuplicates(int[] array); to remo..

  Program to translates a number into the closest letter grade

Write a program that translates a number into the closest letter grade. For example, the number 2.8 (which might have been the average of several grades) would be converted to B-. Break ties in favor of the better grade

  Do you think that overall performance of app is use program

Do you think that overall performance of an app is one of the main reasons people wouldn't use the program? If you were designing an app what might be some of the things which could cause performance to increase?

  Working with abstract class and function overriding

Working with Abstract Class and Function Overriding - The program must use an abstract class and method overriding to manage the input and output

  Write a program that converts a temperature

Write a program that converts a temperature given in Celsius to Fahrenheit. Test the program by performing a compile-time initialization of 32.

  Calculate the average of two values

Write a program to calculate the average of two values. Initialize the two values to be averaged in main. Pass these two values as parameters on the stack to the average procedure.

  CS 520 Introduction to Operating Systems Assignment

CS 520 Introduction to Operating Systems Assignment Help and Solution, Stevens Institute of Technology - Assessment Writing Service

  Assignmentwrite a gui-based application that allows a user

assignmentwrite a gui-based application that allows a user to play a simple trivia game. the game should have 5

  What difference between applets and normal java programs

Write an interface named XYInterface that contains two int constants, X = 5 and Y = 10 and a method called useXY which receives no parameters and returns an integer value. (You don't need to implement the XYInterfac)

  Compliance therewith and non-compliance or intrusion

Law is mandatory because it is enacted by competent authorities and has a force and binding effect on all who are "covered" by it. the fact of its promulgation

  What is the difference between iterator and enumeration

What is the difference between Iterator and Enumeration

  Create a java class called month

Create a program/project called [YourName]-(replace [YourName] with your actual name) in the same project as the Month.java, Create three objects: Month1 one using the first constructor (with no arguments) and Month2 using the second constructor wi..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd