rf-practice
Combine Concepts

Context

Real Robot Framework suites rarely use just one concept at a time. They combine variables, custom keywords, arguments, and control structures to express complete workflows in a readable way.

Theory

A well-structured exercise builds a small reusable keyword first, then calls it from test cases with different inputs. Arguments make the keyword general, a loop processes collections, and [Return] passes the result back to the caller for verification.

Task

  • Create a keyword Sum Numbers that accepts @{numbers}.
  • Sum Numbers should use a FOR loop and Evaluate to sum all numbers, then return the result.
  • Create test cases Combine Test and Combine Test Another that verify Sum Numbers.

Checks

Defines a *** Keywords *** section
Defines a keyword named Sum Numbers
Sum Numbers accepts @{numbers}
Sum Numbers uses a FOR loop
Sum Numbers uses Evaluate
Sum Numbers returns the result with [Return]
Has a test case named Combine Test
Has a test case named Combine Test Another
Combine Test passes
Combine Test Another passes