fhoeben/hsac-fitnesse-fixtures

How to use hsacfit to test the branch process? Are there any keywords that can be used?

cmaster007 opened this issue · 1 comments

How to use hsacfit to test the branch process? Are there any keywords that can be used? eg if....else

General rule: create separate tests for each branch.

Inside a test a single (deterministic) path/case should be tested so there should be no need for if/else.

Having said that sometimes a small conditional action makes life a lot easier. As I recall correctly there is only one fixture method: 'click if available' that I have sometimes used in combination with 'show', so whether the place was present is irrelevant. See https://stackoverflow.com/questions/68193936/fitnesse-ignore-result-of-method or #129

By using the extra slim table types from the Praegus toolchain you can get some more features, but I recommend writing deterministic tests instead.