141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
-
+
|
Example, extract two numbers from a string, the second number must be greater than 1.9:
<verbatim>
(expect:value in "LogFileBody" 1.9 > "Time voltage" #/out: (\d+)\s+(\d+)/ matchnum: 2)
</verbatim>
[More Values Techniques]
More values handling techniques [More Values Techniques|here]
<h3>Hooks</h3>
Create a hook to handle the information gathered on a frequency measurement:
<verbatim>
(hook:add "freq" "echo \"Value hook activated: expected=#{expected}, measured=#{measured}, tolerance=#{tolerance}, message=#{message}\"")
|