flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

chore: add webos and tizen e2e support in app-harness #173

Closed pauliusguzas closed 2 months ago

pauliusguzas commented 9 months ago

Tizen issues: 2 TV's have this

[0-0] 2023-09-20T14:10:31.005Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] An unknown server-side error occurred while processing the command. Original error: Command '/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen install -n platformBuilds/harness_tizen/output/TestHarness.wgt -s 192.168.1.28\:26101' exited with code 1. Stdout was: 'Transferring the package... Transferred the package: /Users/pauliusguzas/Desktop/create/create/packages/app-harness/platformBuilds/harness_tizen/output/TestHarness.wgt -> /opt/usr/apps/tmp Installing the package... -------------------- Platform log view -------------------- install samsungdev.flexntemplate package_path /opt/usr/apps/tmp/TestHarness.wgt was_install_app return WAS_TRUE app_id[samsungdev.flexntemplate] install start app_id[samsungdev.flexntemplate] install failed[118] spend time for wascmd is [1974]ms cmd_ret:0 Failed to install Tizen application. Total time: 00:00:03.894 '. Stderr was: ''
[0-0]     at startWebDriverSession (/Users/pauliusguzas/Desktop/create/create/node_modules/webdriver/build/utils.js:72:15)
[0-0]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[0-0]     at async Function.newSession (/Users/pauliusguzas/Desktop/create/create/node_modules/webdriver/build/index.js:46:45)
[0-0]     at async remote (/Users/pauliusguzas/Desktop/create/create/node_modules/webdriverio/build/index.js:77:22)
[0-0]     at async Runner._startSession (/Users/pauliusguzas/Desktop/create/create/packages/app-harness/node_modules/@wdio/runner/build/index.js:223:56)
[0-0]     at async Runner._initSession (/Users/pauliusguzas/Desktop/create/create/packages/app-harness/node_modules/@wdio/runner/build/index.js:176:25)
[0-0]     at async Runner.run (/Users/pauliusguzas/Desktop/create/create/packages/app-harness/node_modules/@wdio/runner/build/index.js:88:19)

2 TV's have this

[0-0] 2023-09-20T13:08:27.637Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] An unknown server-side error occurred while processing the command. Original error: Command '/Users/pauliusguzas/tizen-studio/tools/sdb -s 192.168.1.29\:26101 shell 0 debug io.flexn.harness.test' exited with code 1. Stdout was: ''. Stderr was: 'closed '

To reproduce:

  1. Download chromedriver 2.36 and edit path of it in packages/app-harness/wdio.conf.cjs tizen object
  2. Follow Additional requirement steps in https://www.npmjs.com/package/appium-tizen-tv-driver
  3. Change deviceName property value in config in tizen object
  4. Build tizen app: npx rnv build -p tizen -s test --packageManager yarn --ci
  5. Run tests: yarn e2e:tizen