Skip to content

erp5 saucelab test and activity tools

Xiaowu Zhang requested to merge xiaowu.zhang/slapos:tn into master

This is a simple, quick way to run zelenium test with saucelabs which is not a correct and clean way

but at least it works and we need test result for different browser and platforme, especially IOS

until a right solution found, we'll use it to run test

the idea is:

  1. a frontend X is manually configured to the erp5 instance which is created when run test suite

  2. in test suite's Slapos Parameters, we put, for example

{
  "mariadb": {
    "relaxed-writes": true,
    "mariadb-relaxed-writes": true,
    "test-database-amount": 0
  },
  "bt5": "erp5_full_text_mroonga_catalog erp5_web_renderjs_ui_test",
    "saucelabs-dict": {
      "target": "iOS",
      "target-version": "11.3",
      "target-device": "iPhone Simulator",
      "target-browser": "Safari",
      "appium-server-auth": "xxxxxxxxxx",
      "remote-access-url": "X",
     "run-only": "renderjs_ui_multi_list_field_zuite"
    }
}

a delecated runTestSuite is created when saucelabs-dicts parameter is present

this runTestSuite will use frontend X to run zelenium test on it.

here is the thing we should pay attention:

in nexedi saucelabs account, there has only 2 sessions at the same time (1000 minutes of automatic test per month Unlimited automated testing minutes)

so to fix the 'only 2 session' issue,

in test suite, we should use Browser Distributor with only one test node, like jio test suite, so in this way, there has only one test run at anytime

Merge request reports