diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2018-11-03 16:49:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2018-11-03 16:49:58 +0000 |
commit | 7cc1f1bfc09653479ae8bb0db0f2ce5a7d19bd0a (patch) | |
tree | ee7a952f27546646a2a0c19a34de01f4b1535e63 /test | |
parent | 90e4976800c18d16c66a72c1d0c23b73ce59d7a2 (diff) | |
download | netsurf-7cc1f1bfc09653479ae8bb0db0f2ce5a7d19bd0a.tar.gz netsurf-7cc1f1bfc09653479ae8bb0db0f2ce5a7d19bd0a.tar.bz2 |
Monkey tests: Add more example test plans.
Diffstat (limited to 'test')
-rw-r--r-- | test/monkey-tests/resource-scheme.yaml | 30 | ||||
-rw-r--r-- | test/monkey-tests/simultanious-fetches.yaml | 35 | ||||
-rw-r--r-- | test/monkey-tests/start-stop.yaml | 6 | ||||
-rw-r--r-- | test/monkey-tests/start-stop=no-js.yaml | 8 |
4 files changed, 79 insertions, 0 deletions
diff --git a/test/monkey-tests/resource-scheme.yaml b/test/monkey-tests/resource-scheme.yaml new file mode 100644 index 000000000..58b0f5eff --- /dev/null +++ b/test/monkey-tests/resource-scheme.yaml @@ -0,0 +1,30 @@ +title: resource scheme +group: basic +steps: +- action: launch + language: en +- action: window-new + tag: win1 +- action: navigate + window: win1 + url: resource:does-not-exist +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + - text-contains: Not found + - text-contains: Error 404 +- action: navigate + window: win1 + url: resource:netsurf.png +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + - bitmap-count: 1 +- action: window-close + - window: win1 +- action: quit + diff --git a/test/monkey-tests/simultanious-fetches.yaml b/test/monkey-tests/simultanious-fetches.yaml new file mode 100644 index 000000000..513b7881a --- /dev/null +++ b/test/monkey-tests/simultanious-fetches.yaml @@ -0,0 +1,35 @@ +title: simultanious page fetches +group: real-world +steps: +- action: launch + language: en +- action: window-new + tag: win1 +- action: window-new + tag: win2 +- action: window-new + tag: win3 +- action: window-new + tag: win4 +- action: navigate + window: win1 + url: http://www.bbc.co.uk/news +- action: navigate + window: win2 + url: http://www.amazon.co.uk/ +- action: navigate + window: win3 + url: http://www.theregister.co.uk/ +- action: navigate + window: win4 + url: http://www.arstechnica.co.uk/ +- action: block + conditions: + - window: *all* + status: complete +- action: window-close + window: win1 +- action: window-close + window: win2 +- action: quit + diff --git a/test/monkey-tests/start-stop.yaml b/test/monkey-tests/start-stop.yaml new file mode 100644 index 000000000..68df47316 --- /dev/null +++ b/test/monkey-tests/start-stop.yaml @@ -0,0 +1,6 @@ +title: start and stop browser +group: basic +steps: +- action: launch +- action: quit + diff --git a/test/monkey-tests/start-stop=no-js.yaml b/test/monkey-tests/start-stop=no-js.yaml new file mode 100644 index 000000000..0a681cffc --- /dev/null +++ b/test/monkey-tests/start-stop=no-js.yaml @@ -0,0 +1,8 @@ +title: start and stop browser without JS +group: basic +steps: +- action: launch + args: + - enable_javascript=0 +- action: quit + |