From 7cc1f1bfc09653479ae8bb0db0f2ce5a7d19bd0a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 3 Nov 2018 16:49:58 +0000 Subject: Monkey tests: Add more example test plans. --- test/monkey-tests/resource-scheme.yaml | 30 +++++++++++++++++++++++++ test/monkey-tests/simultanious-fetches.yaml | 35 +++++++++++++++++++++++++++++ test/monkey-tests/start-stop.yaml | 6 +++++ test/monkey-tests/start-stop=no-js.yaml | 8 +++++++ 4 files changed, 79 insertions(+) create mode 100644 test/monkey-tests/resource-scheme.yaml create mode 100644 test/monkey-tests/simultanious-fetches.yaml create mode 100644 test/monkey-tests/start-stop.yaml create mode 100644 test/monkey-tests/start-stop=no-js.yaml (limited to 'test') 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 + -- cgit v1.2.3