Hi Dongseong and Alexis,

Thank your comments for 
pull-request#1616<https://github.com/crosswalk-project/crosswalk/pull/1616>.
Sorry, I just noticed that you prefer to discuss in mail-list. And I did a 
little research of the scripts you mentioned also, so I'd like to answer your 
questions again here. (Blue part is the questions quoted .)

Q:
I have novice questions. could you explain relationship among below modules?
chrome/test/chromedriver
third_party/webdriver
tools/telemetry/telemetry/core/backends/webdriver

A:
The "chrome/test/chromedriver" imports code from "third_party/webdriver". Most 
of them are uglified JS code to help implement some instructions of WebDriver.
They are the outside script to use WebDriver throught http request. Seems, 
"telemetry" will invoke it to implement its function.

Basic mechanism of "chromedriver" is like that:
Outside script --> Chromedirver --> Devtools interface of Browser

So, any script can invoke "chromediver" by sending http request according 
convention.

Q:
currently, perf test don't require chrome/test/chromedriver. what does 
chrome/test/chromedriver add on 
tools/telemetry/telemetry/core/backends/webdriver?
i.e. we can run perf test without chrome drive.
> ./tools/perf/run_measurement --browser=content-shell-release smoothness 
> tools/perf/page_sets/top_25.json --allow-live-sites
tools/telemetry/telemetry/core/backends/webdriver or tools/perf/run_measurement 
is not enough? What's xwalk webdrive's goal?

A:
By my understanding, the main purpose of WebDriver is to provide a uniform 
auto-test interface for Browsers. Especial to mimic some human operations(e.g., 
click).

The first goal is just "catching up", means, to support WeDriver instructions 
as other main Browsers (refer to http://docs.seleniumhq.org/download/, you can 
find Chromedriver, FirefoxDriver, BlackBerryDriver here).
Then, we'll try to involve some special instructions ("runtime" related?) for 
xwalk, since, obviously, we are not a pure Browser. Maybe, we can try to 
contribute to W3C or Selenium<http://docs.seleniumhq.org>, if our suggestion 
has enough value and the implementation is solid.

BTW,
Seems, the tool "telemetry" of Chrome cannot work with xwalk directly? If you 
have knowledge about it please share with us. Maybe, we can spend some time to 
check and fix it.
Thank you very much for your time.

Cheers,
Peter Wang

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

Reply via email to