To access
Silk4J tests from
Silk Central, you need to store the
Silk4J tests in a JAR file in a repository that
Silk Central can access through a source control profile.
To replay functional tests in
Silk4J from
Silk Central, for example keyword-driven tests:
-
In
Silk Central, create a project from which the
Silk4J tests will be executed.
-
Under
, create a new test container for the new project.
For additional information about
Silk Central, refer to the
Silk Central Help.
The test container is required to specify the source control profile for the
Silk4J tests.
-
In the
Tests tree, right-click on the node below which you want to add the new test container.
-
Click
New Test Container.
The
New Test Container dialog box opens.
-
Type a name for the new test container into the
Name field.
For example, type
Keyword-Driven Tests
-
In the
Source control profile field, select the source control profile in which the JAR file, which contains the
Silk4J tests, is located.
-
Click
OK.
-
Create a new JUnit test in the new test container.
For additional information about
Silk Central, refer to the
Silk Central Help.
-
In the
Test class field of the
JUnit Test Properties dialog box, type the name of the test class.
Specify the fully-qualified name of the test suite class. For additional information, see
Replaying Keyword-Driven Tests from the Command Line.
-
In the
Classpath field, specify the name of the JAR file that contains the tests.
-
For keyword-driven testing, also specify the paths to the following files, separated by semicolons.
- com.borland.silk.keyworddriven.engine.jar
- com.borland.silk.keyworddriven.jar
- silktest-jtf-nodeps.jar
These files are located in the
Silk Test installation directory. For example, the
Classpath field for the keyword-driven tests in the JAR file
tests.jar might look like the following:
tests.jar;C:\Program Files
(x86)\Silk\SilkTest\ng\KeywordDrivenTesting\com.borland.silk.keyworddriven.engine.jar;C:\Program Files
(x86)\Silk\SilkTest\ng\KeywordDrivenTesting\com.borland.silk.keyworddriven.jar;C:\Program Files
(x86)\Silk\SilkTest\ng\JTF\silktest-jtf-nodeps.jar
-
Click
Finish.
-
Execute the tests.
For additional information about executing tests in
Silk Central, refer to the
Silk Central Help.