When you add keywords to a keyword-driven test or a keyword sequence in the
Keyword-Driven Test Editor,
Silk4J recommends existing keywords which you might want to use as the next keyword in your test. The recommended keywords are listed
on top of the keywords list, and are indicated by a bar graph, with the filled-out portion of the graph corresponding to how
Silk4J recommends the keyword.
Silk4J recommends the keywords based on the following:
- When you add the first keyword to a keyword-driven test or a keyword sequence,
Silk4J searches for similar keywords that are used as the first keyword in other keyword-driven tests or keyword sequences. The
keywords that are used most frequently are recommended higher.
- When you add additional keywords to a keyword-driven test or a keyword sequence, which already includes other keywords,
Silk4J recommends keywords as follows:
- If there are keywords before the position in the keyword-driven test or the keyword sequence, to which you add a new keyword,
Silk4J compares the preceding keywords with keyword combinations in all other keyword-driven tests and keyword sequences and recommends
the keywords that most frequently follow the preceding combination of keywords.
- If there are no keywords before the position in the keyword-driven test or the keyword sequence, but there are keywords after
the current position, then
Silk4J compares the succeeding keywords with keyword combinations in all other keyword-driven tests and keyword sequences and recommends
the keywords that most frequently precede the succeeding combination of keywords.
Silk4J takes into account how similar the found keywords are. For example, if both the name and group of two keywords match, then
Silk4J recommends these keywords higher in comparison to two keywords for which only the name matches.
- If you have established a connection with
Silk Central, any keywords included in keyword-driven tests, which belong to the keyword library that corresponds to the current project,
are also considered.