简体   繁体   中英

How can we perform automated tests on Chrome packaged apps (ex. Chromebook apps) using InternJS

I need to automate tests for Chrome packaged App & Android App on Chromebook and Nexus 10 respectively. I'm using InternJS to write automate tests for browser version of the app in Chrome. Can InternJS automate the tests for Chrome Packaged App and Android Apps?

Thanks for the help in advance.

You can start Chrome using the --load-and-launch-app argument and then interact with the packaged app using the normal Intern functional testing APIs:

// In intern.js
define({
  environments: [
    {
      browserName: 'chrome',
      chromeOptions: {
        args: [ 'load-and-launch-app=/path/to/app' ]
      }
    }
  ],

  // ...
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM