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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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