headspinio / appium-altunity-plugin

An Appium 2.x plugin for AltUnity Tester. https://headspin.io
Apache License 2.0
29 stars 5 forks source link

Unable to use development plugins with flag `--use-plugins` #8

Open bipin-k opened 1 year ago

bipin-k commented 1 year ago

I made some changes into the plugin code and then followed the same instructions to uninstall the production version plugin and then run clean & build scripts and thereafter used the same version to restart appium server with the altunity plugin but the plugin isn't getting activated after that.

The version was changed to 1.3.3 from 1.3.2.

List Installed Plugins,

➜  appium-altunity-plugin git:(master) ✗ appium plugin list
✔ Listing available plugins
- altunity@1.3.3 [installed (dev mode)]
- images [not installed]
- execute-driver [not installed]
- relaxed-caps [not installed]
- universal-xml [not installed]

Appium Logs when plugin is enabled with the provided flags,

➜  appium-altunity-plugin git:(master) ✗ appium --use-plugins=altunity
[Appium] Welcome to Appium v2.0.0 (REV 9600617c52d0d2e48493424c529ac6c945d2775b)
[Appium] Non-default server args:
[Appium] {
[Appium]   usePlugins: [
[Appium]     'altunity@1.3.3'
[Appium]   ]
[Appium] }
[Appium] Attempting to load driver uiautomator2...
[debug] [Appium] Requiring driver at /Users/bipinchaurasia/Documents/github/appium-altunity-plugin/node_modules/appium-uiautomator2-driver
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLS in your client code to connect to this server:
[Appium]    http://127.0.0.1:4723/ (only accessible from the same host)
[Appium]    http://172.17.24.170:4723/
[Appium]    http://192.0.2.1:4723/
[Appium] Available drivers:
[Appium]   - uiautomator2@2.29.2 (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium]   - altunity@1.3.3
[Appium] No plugins activated. Use the --use-plugins flag with names of plugins to activate
jlipps commented 1 year ago

Not sure what you're trying to report is going on here. Are you wanting to use a developer branch of this plugin? In that case, simply run npx appium --use-plugins=altunity from within this repo's directory and appium will find this plugin