aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2018-05-09 11:06:22 -0700
committerArthur She <arthur.she@linaro.org>2018-05-09 11:06:22 -0700
commit4b001f95e896244208f4e052b7060e6e94d0387e (patch)
tree947e0086fd57a10b64d87b9c56f97d7fbb7d4cc1
parentd5250682d54d6910f23dacf35d9915d665816b8e (diff)
test/eme-cleaykey-test.robot
Test "Clearkey" Key System.
-rw-r--r--test/eme-clearkey-test.robot12
-rw-r--r--test/lhg-robot-config.robot37
-rw-r--r--test/lhg-robot-libs.pycbin0 -> 1439 bytes
3 files changed, 17 insertions, 32 deletions
diff --git a/test/eme-clearkey-test.robot b/test/eme-clearkey-test.robot
index 63debc2..92b68a8 100644
--- a/test/eme-clearkey-test.robot
+++ b/test/eme-clearkey-test.robot
@@ -4,19 +4,19 @@ Suite Teardown Close Connection and Browser
Resource lhg-robot-config.robot
*** Test Cases ***
-Start-cdmiservice
- Run Cdmiservice For EME Clearkey Test
+Start-Chromedriver
+ Run Chromedriver
-Run-wget-test
- Run wget test page
+#Start-cdmiservice
+# Run Cdmiservice For EME Clearkey Test
Run-EME-ClearKey-test
Open Browser To Test Page ${CK_TESTPAGE}
- Select Key System External Clearkey
+ #Select Key System External Clearkey
+ Select Key System Clearkey
Sleep 5s
Scroll Page Down To Bottom
Play Video Play
Sleep 10s
Capture Page Screenshot filename=After.png
There should be face in image After.png
-
diff --git a/test/lhg-robot-config.robot b/test/lhg-robot-config.robot
index 3d43605..1964f3d 100644
--- a/test/lhg-robot-config.robot
+++ b/test/lhg-robot-config.robot
@@ -3,62 +3,47 @@ Documentation A resource file with reusable keywords and variables.
...
... The system specific keywords created here form our own
... domain specific language.
-Library Selenium2Library timeout=90s run_on_failure=Nothing
+Library SeleniumLibrary timeout=180s run_on_failure=Nothing
Library SSHLibrary timeout=30s prompt=hikey:~$
Library Collections
Library lhg-robot-libs.py
-Library DateTime
*** Variables ***
-${TARGET} 192.168.29.143
+${TARGET} 192.168.29.144
${USERNAME} linaro
${PASSWORD} ${EMPTY}
${TARGET_CD} http://${TARGET}:9515
-${BROWSER_TESTPAGE} http://www.google.com
${CK_TESTPAGE} http://people.linaro.org/~peter.griffin/chrome/eme_player.html
-${PR_TESTPAGE} http://people.linaro.org/~peter.griffin/dash.js.mainline/samples/dash-if-reference-player/index.html
-${PR_VIDEO_URL} http://wams.edgesuite.net/media/SintelTrailer_Smooth_from_WAME_CENC/CENC/sintel_trailer-1080p.ism/manifest(format=mpd-time-csf)
+${PR_TESTPAGE} http://people.linaro.org/~arthur.she/playready_test/dash.js/samples/dash-if-reference-player/index.html
+${PR_VIDEO_URL} http://profficialsite.origin.mediaservices.windows.net/c51358ea-9a5e-4322-8951-897d640fdfd7/tearsofsteel_4k.ism/manifest(format=mpd-time-csf)
*** Keywords ***
Open SSH Connection And Login
Open Connection ${TARGET}
Login ${USERNAME} ${PASSWORD}
- ${written}= write su
Run Chromedriver
- ${stdout}= write /usr/bin/chromium/chromedriver --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log &
+ ${written}= write su
+ ${stdout}= write /usr/bin/chromium/chromedriver --verbose --whitelisted-ips --log-path=/home/linaro/chromedriver.log &
${output} Read delay=2s
- Sleep 3s
+ Sleep 1s
Run Cdmiservice For EME Clearkey Test
${stdout}= write cdmiservice &
${output}= Read delay=1s
- Sleep 4s
+ Sleep 1s
Run Cdmiservice For EME Playready Test
${stdout}= write cd /usr/share/playready
${output}= Read delay=1s
- Should Contain ${output} ‘eme_player.html’ saved
+ Should Not Contain ${output} No such file or directory
${stdout} write cdmiservice &
- Sleep 3s
-
-Run wget test page
- write rm -f *.html
- ${stdout}= write wget ${CK_TESTPAGE}
- Sleep 5s
- ${output}= Read delay=1s
- Should Contain ${output} eme_player.html
-
-Upload log file
- ${date}= Get Current Date result_format=%Y-%m-%d-%H-%M
- ${log-file}= Catenate SEPARATOR=- webdriver.log ${date}
- Execute Command scp /home/linaro/chromedriver.log arthur.she@people.linaro.org:~/tmp/hikey.log/${log-file}
- Sleep 10s
+ Sleep 1s
Prepare Browser
${capabilities}= Create Dictionary
${extension_list}= Create List
- ${args_list}= Create List --no-sandbox --register-pepper-plugins=/usr/lib64/chromium/libopencdmadapter.so;application/x-ppapi-open-cdm --in-process-gpu --enable-logging=/home/linaro/chromium_browser.log --v=0
+ ${args_list}= Create List --no-sandbox --register-pepper-plugins=/usr/lib64/chromium/libopencdmadapter.so;application/x-ppapi-open-cdm --in-process-gpu --enable-logging=/home/root/chromium_browser.log --v=0 --use-gl=egl --ozone-platform=wayland --composite-to-mailbox --enable-low-end-device-mode --user-data-dir=data_dir --blink-platform-log-channels=Media
Set To Dictionary ${capabilities} extensions ${extension_list}
Set To Dictionary ${capabilities} args ${args_list}
${desired_capabilities}= Create Dictionary chromeOptions=${capabilities}
diff --git a/test/lhg-robot-libs.pyc b/test/lhg-robot-libs.pyc
new file mode 100644
index 0000000..1a628c2
--- /dev/null
+++ b/test/lhg-robot-libs.pyc
Binary files differ