Teuton
language¶ ↑
To define and run our activity test we use the next DSL
keywords: 1. Definition instructions 2. Execution instructions 3. Setting instructions 4. Ruby language
Definition instructions¶ ↑
These are the main DSL
key words, usefull to define items to be evaluated.
| DSL
| Description | | :—————————– | :———- | | group | Define a group of items to check. | | target | Define a target. This is the item to be checked. | | Remote run| Execute command into remote host. | | Local run | Execute command into local host. | | result | Contain the output of previous goto
order. | | expect | Check the obtained result with the expected value. |
Execution instructions¶ ↑
DSL
key word related with reports and information.
| DSL
| Descripción | | :—————————- | :————————————— | | play | Run the challenge. | | show | Show the results on screen. | | export | Make reports with the results of every evaluation. | | send | Send copy of report file to remote host. |
Setting instructions¶ ↑
| DSL
| Descripción | | :——————– | :——————————————— | | get | Read param value from configuration file. | | set | Set new param value for running configuration. |
Ruby language¶ ↑
It is possible to use ruby language programming structures, in the definition of our test (iterators, arrays, etc.). Useful when we have repetitive lines, etc.
Example, how to create 4 target evaluation using an Array:
users = ['Obiwan', 'Yoda', 'Maul', 'Vader'] users.each do |user| target "Exist user #{user}" run "id #{user}", on: :host1 expect_one user end