A keyword is a defined combination of one or more actions on a test object. The implementation of a keyword can be done with various tools and programming languages, for example Java or .NET. In Silk4J, a keyword is an annotated test method (@Keyword). Keywords are saved as keyword assets.
@Keyword("keyword_name")
A keyword sequence is a keyword that is a combination of other keywords. Keyword sequences bundle often encountered combinations of keywords into a single keyword, enabling you to reduce maintenance effort and to keep your tests well-arranged.
// Java code @Argument("parameter_name")
By default a parameter is an input parameter in Silk4J. To define an output parameter, use the class OutParameter.
${parameter_name}In the Keyword-Driven Test Editor, you can use the same annotation to use an output parameter of a keyword as an input parameter for other keywords.
// Java code @Keyword("Login") public void login(){ ... // method implementation }
// Java code @Keyword(value="Login", description="Logs in with the given name and password.") public void login(@Argument("UserName") String userName, @Argument("Password") String password, @Argument("Success") OutParameter success) { ... // method implementation }where the keyword logs into the application under test with a given user name and password and returns whether the login was successful. To use the output parameter as an input parameter for other keywords, set the value for the output parameter inside the keyword.