Upload an external keyword library
to
Silk Central from a Java-based command line to integrate
Silk Central and your keyword-driven tests into your continuous integration build system, for example Jenkins.
To upload your keyword library
to
Silk Central from a Java-based command line:
-
Select
in
Silk Central and download the
Java Keyword Library Tool.
-
Call the command line tool that is contained in the downloaded
jar file with the following arguments:
The following example outlines the command line to upload a library to
Silk Central with Java 9 or later:
java --add-modules=java.activation,java.xml.ws -jar com.borland.silk.keyworddriven.jar -upload
"My library" "./output/library.zip" silkcentral:19120 scLogin
scPassword "Build xy: Implemented missing keywords"
Examples
The following example outlines the command line to upload a library to
Silk Central with Java 8 or prior by using a web-service token for authentication:
java -jar com.borland.silk.keyworddriven.jar -upload
"My library" "./output/library.zip" silkcentral:19120 scToken "Build xy: Implemented missing keywords"
To upload the same library with Java 8 or prior by using user name and password for authentication, use a command like the
following:
java -jar com.borland.silk.keyworddriven.jar -upload
"My library" "./output/library.zip" silkcentral:19120 scLogin
scPassword "Build xy: Implemented missing keywords"
The corresponding commands with Java 9 or later are:
java --add-modules=java.activation,java.xml.ws -jar com.borland.silk.keyworddriven.jar -upload
"My library" "./output/library.zip" silkcentral:19120 scToken "Build xy: Implemented missing keywords"
java --add-modules=java.activation,java.xml.ws -jar com.borland.silk.keyworddriven.jar -upload
"My library" "./output/library.zip" silkcentral:19120 scLogin
scPassword "Build xy: Implemented missing keywords"
Note: When uploading a keyword-driven library with Java 9 or later, ensure
JAVA_HOME is defined on the execution servers and points to a JDK with the corresponding Java version.