summaryrefslogtreecommitdiff
path: root/automated/linux/ui-browser-test/README.rst
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2016-08-17 17:11:30 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2016-09-06 13:38:30 +0530
commit700e4f543c2cbebad14ba8c31169f2f8f5488088 (patch)
treea5812fbd1944b49b5d9a949bf978801eb16c0b1d /automated/linux/ui-browser-test/README.rst
parentfaf7d2820ef33bb47d81ec9bccd19353188bfdb5 (diff)
ui-browser-test: Adding UI browser testing
Ui browser test developed on top of Robot frame work. Test runs chromium, chrome and firefox test cases. On LAVA we have access to serial console and we have to run ui tests from this serial console, this is possible by changing user from root to linaro and exporting the DISPLAY=:0. because linaro owns the X display process. Change-Id: I43bda407f468120839b0a4c8248777303945529e Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Diffstat (limited to 'automated/linux/ui-browser-test/README.rst')
-rw-r--r--automated/linux/ui-browser-test/README.rst53
1 files changed, 53 insertions, 0 deletions
diff --git a/automated/linux/ui-browser-test/README.rst b/automated/linux/ui-browser-test/README.rst
new file mode 100644
index 0000000..f2b05be
--- /dev/null
+++ b/automated/linux/ui-browser-test/README.rst
@@ -0,0 +1,53 @@
+=====================
+Robot framework tests
+=====================
+Robot Framework is a generic test automation framework for acceptance testing
+and acceptance test-driven development (ATDD). It has easy-to-use tabular test
+data syntax and it utilizes the keyword-driven testing approach. Its testing
+capabilities can be extended by test libraries implemented either with Python
+or Java, and users can create new higher-level keywords from existing ones
+using the same syntax that is used for creating test cases. reference: [1]
+
+[1] http://robotframework.org/
+
+Requirements
+============
+- Linux (Debian / Ubuntu / Openembedded / Fedora based)
+- Python 2.7
+- python-pip
+- robotframework
+- robotframework-selenium2library
+- Web-Browser (firefox, google-chrome or chromium)
+- chromedriver
+- google-chrome / chromium / firefox
+
+Installation and Run
+=====================
+If you are on Debian or Ubuntu please run
+
+be a root
+# ./install-on-debian.sh
+# ./ui-browser-test.sh -u linaro -s false
+
+Basic Usage
+===========
+robot testcase-name.robot
+
+Examples
+--------
+robot chrome-test.robot
+robot chromium-test.robot
+robot firefox-test.robot
+robot login-lava.robot
+robot youtube-play-bkk16.robot
+robot youtube-play.robot
+
+Run all tests in the current directory
+python -m robot .
+
+NOTES
+=====
+Ensure you have right PATH exported before running tests
+
+For more information on usage:
+https://github.com/robotframework/robotframework/blob/master/INSTALL.rst