hello.xml
1 |
<?xml version="1.0"?>
|
---|---|
2 |
<test name="hello" description="Simple Hello World testcase." > |
3 |
|
4 |
<!-- Clear the screen from possible previous result -->
|
5 |
<send-text value="clear" special="VK_ENTER" /> |
6 |
<!-- And wait for shell prompt -->
|
7 |
<wait-for-screen-buffer > |
8 |
<substitution name="value" spec="%s" > |
9 |
<parameter variable="shellPromptText" /> |
10 |
</substitution>
|
11 |
</wait-for-screen-buffer>
|
12 |
<!-- Echoing the Hello World by Linux command -->
|
13 |
<send-text value="echo Hello World" special="VK_ENTER" /> |
14 |
<!-- And waiting for results. The topmost line and line 2 are excluded
|
15 |
from comparison because they are machine dependent. Avoid any parts
|
16 |
that can vary from time to time or from machine to machine. -->
|
17 |
<check-screen-buffer filename="hello/hello_step1.txt" named-rectangle="screen" > |
18 |
<exclude left="0" right="79" top="0" bottom="0" /> |
19 |
<exclude left="0" right="79" top="2" bottom="2" /> |
20 |
</check-screen-buffer>
|
21 |
|
22 |
</test>
|