Download JProbe User Guide
Transcript
Running a Coverage Analysis Running Test Cases with JProbe 361 • Analysis Type > General tab: Set Coverage Level to Line—JProbe tracks which lines of code in your application are called during your test case. Conditions are not tracked. • Analysis Type > Filters tab: JProbe uses your application filters as the default data collection filters. • Analysis Type > Automation tab: Set Initial Recording at JVM Start to Data Recording On. Tip In future analyses, you may want to adjust these options. See “Analysis Options for Coverage” on page 368. c Click Save. 4 To generate a startup script, click Integrate. a Type in a location and file name for the settings file, and click Save. b Click Continue. c Type in a location and file name for the startup script, and click Save. d Click Close Wizard. Running Test Cases with JProbe To begin the analysis, you will launch your application using the startup script created when you integrated your configuration. For more information, see “Setting Up JProbe for a Basic Coverage Analysis” on page 360. This procedure assumes that you are running manual test cases or test cases through another tool. For Java SE applications, if you have an input file that you pass as a command line argument, you can edit your configuration to add the application argument. For more information, click Help in the Java Application tab. At the end of this procedure, you will have one or more Coverage snapshots. By default, a Coverage snapshot contains line-level data on classes in your application. Only classes that contain methods called during your test case are included in the snapshot. Note This procedure assumes that you know how to start an application under JProbe. If not, see “Starting Your Application with JProbe Attached” on page 71.