NativeScript / nativescript-dev-appium

A package to help with writing and executing e2e Appium tests in NativeScript apps
Apache License 2.0
70 stars 27 forks source link

Nativescript-dev-appium Installation #225

Closed johnntupmc closed 5 years ago

johnntupmc commented 5 years ago

For our project, Front end devs give an apk file to install on the device connected with android bridge. I have appium installed globally. Since, I don't have a dev project opened (just I have apk file), how can I install nativescript-dev-appium plugin and subsequently e2e folder, write scripts with typescript. It would be great if someone can give a guidance on this issue. Thanks in advance !!

SvetoslavTsenov commented 5 years ago

Hey @johnntupmc, I am not sure that I understand exactly the scenario that you have described, but if I am right you need a project which will have only e2e tests. Therefor I will suggest you to do as follows:

  1. create a separate node app npm init and follow the steps that npm requires.
  2. install nativescript-dev-appium npm i -D nativescript-dev-appium.
  3. nativescript-dev-appium should add e2e folder with some sample tests and config file with setup.
  4. run tests using npm run e2e -- --runType android23 --appPath [path to the application].