96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
+
+
|
</verbatim>
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]
<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}\"")
|