Question: Software Testing, Verification, Validation and Quality Assurance The code mentioned above is... If you find that you do not have enough information to solve this,

Software Testing, Verification, Validation and Quality Assurance

Software Testing, Verification, Validation and Quality Assurance The code mentioned above is...If you find that you do not have enough information to solve

The code mentioned above is... this, please request or declare what you need. Submission: *java via eLearning

If you find that you do not have enough information to solve this, please request or declare what you need.

Submission: *java via eLearning Maximum points: 20 You can find the original sample project (SE4367-ASM) as "ASM-tutorial-code" on eLearning. Note that the original sample project contains various coding examples for using ASM. The submitted file should contain only one Java file, e.g., the updated MethodTransformVisitor.java". Note that your code has to be executable without any compilation error when the TA replace the original MethodTransformVisitor.java" with your file, otherwise it will not be graded. In project SE4367-ASM, "MethodTransformVisitor.java" modifies the method bytecode to collect method level coverage information. Extend that file to also collect the statement level coverage information. Note that as I showed in the class when you execute the following command, "TransformClassFile" will invoke the class level instrumentation in "ClassTransformVisitor", which in turn invokes the method-level instrumentation at "MethodTransformVisitor". ava -cp ../lib/* TransformClassFile Example.class.bak Example.class After your extension, the above command should be able to collect both method and statement coverage precisely through byte-code manipulation. For example, for the following code "Example.java" file (included in the project), after instrumentation your tool should be able to trace all the executed lines correctly Hint: You shall override the "visitLineNumber" and "visitLabel" methods in MethodTransformVisitor.java" to achieve the desired goal. public class Example public static void main(String[ args) m10; mZO; public static void m10 i int a-1; if(a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!