open |
/mmc/main.php?module=network&submod=network&action=index |
|
clickAndWait |
//a[contains(@href, '/mmc/main.php?module=network&submod=network&action=index')] |
|
clickAndWait |
link=Add DNS zone |
|
type |
zonename |
example.net |
type |
description |
Example DNS zone |
type |
nameserverip |
192.168.0.1 |
type |
netaddress |
192.168.0.0 |
type |
netmask |
24 |
clickAndWait |
badd |
|
waitForTextPresent |
example.net |
|
verifyTextPresent |
(1) |
|
verifyTextPresent |
Example DNS zone |
|
clickAndWait |
link=DHCP subnets |
|
pause |
2000 |
|
clickAndWait |
//a[contains(@href, 'main.php?module=network&submod=network&action=subnetedit&subnet=192.168.0.0')] |
|
verifyValue |
description |
example.net |
verifyValue |
domain-name |
example.net |
verifyValue |
domain-name-servers |
192.168.0.1 |
type |
broadcast-address |
192.168.0.255 |
click |
hassubnetpools |
|
type |
routers |
192.168.0.254 |
type |
subnetpool_0_start |
192.168.0.100 |
type |
subnetpool_0_end |
192.168.0.200 |
clickAndWait |
bedit |
|
waitForTextPresent |
192.168.0.100 -> 192.168.0.200 |
|
clickAndWait |
//a[contains(@href, 'main.php?module=network&submod=network&action=subnetaddhost&subnet=192.168.0.0')] |
|
verifyValue |
ipaddress |
192.168.0.2 |
type |
hostname |
testhost1 |
type |
macaddress |
11:22:33:44:55:66 |
verifyValue |
dnsrecord |
on |
verifyTextPresent |
Also records this machine into DNS zone example.net |
|
clickAndWait |
badd |
|
waitForTextPresent |
Host successfully added. |
|
clickAndWait |
link=DHCP subnets |
|
pause |
2000 |
|
verifyTextPresent |
(1) |
|
clickAndWait |
//td[5]/ul/li[1]/a |
|
pause |
2000 |
|
waitForTextPresent |
192.168.0.2 |
|
waitForTextPresent |
testhost1 |
|
waitForTextPresent |
11:22:33:44:55:66 |
|
waitForTextPresent |
Static |
|
clickAndWait |
link=DNS zones |
|
waitForTextPresent |
example.net |
|
verifyTextPresent |
(2) |
|
clickAndWait |
link=example.net |
|
waitForTextPresent |
192.168.0.2 |
|
verifyTextPresent |
testhost1 |
|