Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: Can I import existing JUnit code into SilkPerformer?

$
0
0
The tight integration of Java in SilkPerformer 7.x allows you to reuse existing unit tests developed with JUnit by embedding them into SilkPerformer"s framework architecture. An import tool allows you to import existing JUnit test classes and other Java classes. Tested Java methods may have parameters and return values; code for setting the in-parameters of these functions is generated automatically. By definition, JUnit test methods can not have parameters. The Unit Test import tool offers you the option of selecting specific test methods. It automatically generates BDL stub code (a benchmark description file) that calls those selected test methods. Existing JUnit test classes can be called from SilkPerformer without requiring modification of the test classes. First set up the Java classpath: SETTINGS | SYSTEM | JAVA | GENERAL - JAVA HOME e.g. C:\Program Files\Java\jdk1.5.0 Also ensure the classpath is set correctly in the Active Profile: SETTINGS | ACTIVE PROFILE... | JAVA | GENERAL - JAVA HOME e.g. C:\Program Files\Java\jdk1.5.0 Now move into the Advanced tab and ensure the JVM settings are OK with the "Check JVM button". Next create a new JUnit SilkPerformer project: Click the Outline Project button. Enter a Project name and Project description for the project. Select Unit Testing/JUnit from the Application type tree control on the Outline Project dialog. Click OK to create the project. To Import a JUnit test class: Click the Model Script workflow button to generate the script, then browse to the JUnit file you want to import (see SilkPerformer"s Help section "Importing JUnit Test Classes" for full details). Old KB# 18538

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>