Skip to content

Commit c0818e9

Browse files
feat: mock camera image (#71)
* feat: Added support to mock camera for android
1 parent 0f2e298 commit c0818e9

File tree

8 files changed

+27663
-27594
lines changed

8 files changed

+27663
-27594
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ jobs:
158158
uses: actions/upload-artifact@v4
159159
with:
160160
name: appium-logs-java
161-
path: ${{ github.workspace }}/appium-logs
161+
path: ${{ github.workspace }}/finder/flutter-by/java/appium.log

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center">
22
<br>
3-
<img src="Logo.png" alt="Flutter-Appium">
3+
<img src="./logos/flutter-driver.png" alt="Flutter-Appium">
44
<br>
55
<br>
66
<br>
@@ -152,7 +152,17 @@ For more details, refer to the documentation for each driver:
152152
|----------------------------------|-------------------------------------------------------------------------|----------|
153153
| appium:flutterServerLaunchTimeout | Time in ms to wait for flutter server to be pingable. Default is 5000ms | No |
154154
| appium:flutterSystemPort | The number of the port on the host machine used for the Flutter server. By default the first free port from 10000..11000 range is selected. It is recommended to set this value if you are running parallel tests on the same machine.| No |
155+
| appium:flutterEnableMockCamera | Mock camera image. This works if the AUT uses [image_picker](https://pub.dev/packages/image_picker). Currently works on Android. Make sure the server is started with `--allow-insecure=adb_shell`| No |
155156

156157
🚨 **Important Notice for iOS Testing**
157158

158159
⚠️ Testing on real iOS devices for `semanticsLabel` may not work due to an issue raised with Flutter. For updates and more information, please refer to [GitHub issue #151238](https://github.com/flutter/flutter/issues/151238).
160+
161+
162+
## Acknowledgements 💚
163+
164+
<p align="center">
165+
<a href= "https://saucelabs.com"><img src="./logos/sauce-labs.png" alt="Sauce Labs" width="60%" height="auto"></a>
166+
</p>
167+
168+
We would like to extend our heartfelt thanks to Sauce Labs for integrating the Appium Flutter Driver with their Real Device Cloud. Their assistance has been invaluable in enabling us to deliver robust and reliable testing solutions for Flutter applications. If you want to try the Flutter Integration Driver on Sauce Labs, check their [docs](https://docs.saucelabs.com/mobile-apps/automated-testing/appium/appium-flutter-integration-driver/). Thank you, Sauce Labs, for your continuous support.

android.conf.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join } from 'node:path';
1+
// @ts-nocheck
22
import { config as baseConfig } from './wdio.conf.ts';
33

44
export const config: WebdriverIO.Config = {
@@ -12,7 +12,7 @@ export const config: WebdriverIO.Config = {
1212
'appium:app':
1313
process.env.APP_PATH || join(process.cwd(), 'app-debug.apk'),
1414
'appium:newCommandTimeout': 240,
15-
'appium:flutterServerLaunchTimeout': 10000,
15+
'appium:flutterServerLaunchTimeout': 10000
1616
},
1717
],
1818
};

0 commit comments

Comments
 (0)