Hi, Yugang,
The 2 issue has been fixed.
1 Need to support launching app by webdriver on Tizen: 
https://crosswalk-project.org/jira/browse/XWALK-1804
2.Screenshot issue: get screenshot by selenium screenshot API. 
https://crosswalk-project.org/jira/browse/XWALK-1876

The patch and new binary has commit to:
https://github.com/crosswalk-project/crosswalk-web-driver/commit/157c3d01e1adca4e6b05ba7532686c86f678ed0d

The follow is How to use xwalkdriver for Tizen apps.
For Tizen xwalk:
(1) Install and launch the xwalk as server mode on Tizen IVI:
su - app
export XDG_RUNTIME_DIR="/run/user/5000"
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
systemctl --user status xwalk.servicek
xwalkctl -i /'path'/wrt-rtbin-tizen-tests.xpk

(2) Set remote debug port by insert "--remote-debugging-port='PORT'" into 
"/usr/lib/systemd/user/xwalk.service" on Tizen IVI.
(3) Connect Tizen IVI and PC with sdb
    a). Run the follow command on Tizen IVI: #systemd start sdbd_tcp
    b). Run the follow command on PC: $sdb connect <tizen ivi ip>
    c). Run the follow command on PC: $sdb root on
(4) If Selenium package not installed on PC. Install Selenium package by 
executing command
    pip install selenium
(5) Run xwalkdriver binary on PC with command:
    $./xwalkdriver --sdb-port=26099
(6) Execute following commands to test(Note to replace your tizen application 
Id):
$ python
>>> from selenium import webdriver
>>>
capabilities = {
  'xwalkOptions': {
    'tizenDebuggerAddress': '10.238.158.97:9333',
    'tizenAppId': 'ihogjblnkegkonaaaddobhoncmdpbomi',
  }
}

>>> driver = webdriver.Remote('http://localhost:9515', capabilities)
>>> driver.title
>>> driver.save_screenshot("screenshottest.png")
>>> driver.quit()


Thanks,
Yangang

From: Crosswalk-dev [mailto:[email protected]] 
On Behalf Of Fan, Yugang
Sent: Monday, June 09, 2014 5:06 PM
To: [email protected]
Subject: [Crosswalk-dev] Web Driver feature summary on Crosswalk

Hi All,

As you may know, Web QA team have been trying Crosswalk Web Driver support 
recently, and plan to use Web Driver to automate more existing Web manual 
cases. We followed the steps of 
https://crosswalk-project.org/#wiki/Crosswalk-WebDriver and have following 
opens:


A.      Crosswalk on Android:
Successful to launch the APP by APP-ID/load the html in the APP package and get 
the element, but fail to get screenshot by selenium screenshot 
API(https://crosswalk-project.org/jira/browse/XWALK-1876, this is a key feature 
for test automation, e.g. W3C CSS refer tests automation)


B.      Crosswalk on Tizen:

1.       Successful to load remote URL web page, but fail to load the local 
html: https://crosswalk-project.org/jira/browse/XWALK-1761

2.       Need to support launching app by webdriver: 
https://crosswalk-project.org/jira/browse/XWALK-1804
Those two issues are basic functions and block test automation development for 
Crosswalk on Tizen.


C.      xwalkdriver release, version control and download? Is there a regular 
downloadable binary release, like chromedriver, so that user can get latest 
webdriver for tests automation?

D.      unify the usage on different platforms. For example, user need write 
different capabilities for Tizen and Andriod, which will make same test case 
have different code on different platform.

E.       support handling more than one APPs and controlling the focus on UI. 
It is a very useful feature and expect detailed spec about its usage.



Best regards,
Yugang

_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to