ldi-github / shirates-core

Integration test framework for mobile apps
https://ldi-github.github.io/shirates-core/
Apache License 2.0
8 stars 0 forks source link

Support for remote appium servers #75

Closed Inovvia closed 7 months ago

Inovvia commented 7 months ago

I tried checking the documents but I can't find a way to connect to a running appium server. What I noticed that it that cannot find devices. I tried setting my appium server url to something like: https://user:password@mobile-hub.lambdatest.com/wd/hub

I was also able to use the same appium url w/ capabilities using python. If there is a way in the documents I would be glad to take a look at it.

ldi-github commented 7 months ago

Thank you for your interest in Shirates.

You can use remote appium server αs follows.

  1. In testrun.global.properties file

[example] appiumServerUrl=http://yourservername:4723/ #appiumPath=appium

  1. Run appium command on your remote server. appium --session-override --relaxed-security

  2. Run test written in Shirates.

For more information See https://ldi-github.github.io/shirates-core/basic/parameter/parameters.html

Note: Shirates is built on Appium 2.0. Appium 1.x is not supported.

Inovvia commented 7 months ago

I see thank you very much. I saw on parameters that appiumPath was mandatory so I did not try removing it. Would it be fine if I create a pull request to update the documentation that it can be disabled, so that others would be able to know how to connect as well?

ldi-github commented 7 months ago

Thank you for offering pull request to improve the document.

But I found that iOS simulator does not work well in this way. (Android is fine) So I have to test and improve on remote server environment. Then I will update the document.

To tell the truth, Shirates is developed on Mac Studio with many emulators/simulators, and is not tested on remote servers yet.

Sorry for the inconvinient.

ldi-github commented 7 months ago

Remote Appium Server is supported. Try shirates-core 6.7.2

https://ldi-github.github.io/shirates-core/in_action/using_remote_appium_server/configuring_remote_appium_server.html

Inovvia commented 7 months ago

Hi, I was able to use it for another appium server running on my machine! However when I tried to use it for cloud automation it does not seem to works since it expects the device to already be booted.

For now I can get by with this since I was just experimenting with remote appium servers. The new document is extremely helpful when I need to run both appium inspector and run a test quickly!

https://www.lambdatest.com/capabilities-generator/

image image

BTW I also noticed that this document is showing outdated build grade config image

ldi-github commented 7 months ago

@Inovvia Thank you for your feedback. I hope you enjoy testing with Shirates. Documents will be updated on next major update.