From 90e4976800c18d16c66a72c1d0c23b73ce59d7a2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 3 Nov 2018 16:33:19 +0000 Subject: Monkey driver: Initial loader for monkey test plans. --- test/monkey-tests/cache-test.yaml | 35 +++++++++++++++++++++++++++++++++++ test/monkey-tests/quit-mid-fetch.yaml | 22 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 test/monkey-tests/cache-test.yaml create mode 100644 test/monkey-tests/quit-mid-fetch.yaml (limited to 'test/monkey-tests') diff --git a/test/monkey-tests/cache-test.yaml b/test/monkey-tests/cache-test.yaml new file mode 100644 index 000000000..d8c4571df --- /dev/null +++ b/test/monkey-tests/cache-test.yaml @@ -0,0 +1,35 @@ +title: cache test +group: performance +steps: +- action: launch + language: en +- action: timer-start + tag: timer1 +- action: window-new + tag: win1 +- action: navigate + window: win1 + url: http://www.bbc.co.uk/news +- action: block + conditions: + - window: win1 + status: complete +- action: timer-stop + timer: timer1 +- action: timer-start + tag: timer2 +- action: window-new + tag: win2 +- action: navigate + window: win2 + url: http://www.bbc.co.uk/news +- action: block + conditions: + - window: win2 + status: complete +- action: timer-stop + timer: timer2 +- action: timer-check + condition: timer2 < timer1 +- action: quit + diff --git a/test/monkey-tests/quit-mid-fetch.yaml b/test/monkey-tests/quit-mid-fetch.yaml new file mode 100644 index 000000000..b033f67b6 --- /dev/null +++ b/test/monkey-tests/quit-mid-fetch.yaml @@ -0,0 +1,22 @@ +title: quitting mid-fetch +group: cleanup +steps: +- action: repeat + min: 0 + step: 50 + name: sleepytimer + steps: + - action: launch + - action: window-new + tag: win1 + - action: navigate + window: win1 + url: http://www.bbc.co.uk/news + - action: sleep-ms + time: sleepytimer + conditions: + - window: win1 + status: complete + breaks: sleepytimer + - action: quit + -- cgit v1.2.3