# setverdict

The keyword setverdict belongs to the family of verdict operations. It is used to set the local verdict of the test component it is executed in.

- When a test component is instantiated, its local verdict is set to the value none.
- The operation can have four different arguments: pass, fail, inconc, none.
- The operation may be executed several times. A subsequent execution must not "improve" the verdict. In other words, the verdict may either remain the old one or be chaneged according to the following rule: none > pass > inconc(lusive) > fail.
- Beside the local verdict value, the verdict reason can also be set in the second (optional) argument. The syntax of verdict reason is the same as in the log operation.
- Verdict operations shall only be used in test cases, altsteps and functions.

Related keywords:

- error
- fail
- getverdict
- inconc
- none
- pass
- verdicttype

### setverdict( verdict [ , " free_text_string " [ , ... ] ] )

Example 1:

setverdict (pass);

setverdict (pass, "incoming data matches with: %s", "a*");

The local verdict of the component where the operation is issued is set to pass.

BNF definition of setverdict