@ihyeon/flow-qa 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/mobile-runtime.js +5 -2
- package/docs/mobile.md +1 -1
- package/docs/releases.md +4 -0
- package/package.json +1 -1
|
@@ -76,8 +76,11 @@ export const checkMobileApp = async (target, sdkDevice) => {
|
|
|
76
76
|
const { stdout } = await execFileAsync('adb', ['-s', sdkDevice, 'shell', 'pm', 'path', target.bundleId], { timeout: 10_000, maxBuffer: 64 * 1024 });
|
|
77
77
|
return stdout.split(/\r?\n/).some((line) => line.startsWith('package:')) ? 'installed' : stdout.trim() === '' ? 'missing' : 'unknown';
|
|
78
78
|
}
|
|
79
|
-
catch {
|
|
80
|
-
|
|
79
|
+
catch (error) {
|
|
80
|
+
// Android's `pm path` exits 1 with no output when a package is absent.
|
|
81
|
+
// ADB and package-manager failures include diagnostics or another code.
|
|
82
|
+
const result = error;
|
|
83
|
+
return result.code === 1 && !result.stdout?.trim() && !result.stderr?.trim() ? 'missing' : 'unknown';
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
return 'unknown';
|
package/docs/mobile.md
CHANGED
|
@@ -34,7 +34,7 @@ Saving a target only writes configuration. It does not contact a model, boot a d
|
|
|
34
34
|
|
|
35
35
|
For an iOS simulator, prepare Xcode, an installed simulator runtime, a booted simulator, and a simulator build of the app installed on it. For Android, prepare the Android SDK and a booted emulator or an authorized connected device with the app installed. Physical iOS devices additionally need pairing, Developer Mode, and signing of the upstream automation runner. Follow the [mobile engine's setup instructions](https://e2e.tester.army/docs/mobile#physical-devices) for device-specific requirements.
|
|
36
36
|
|
|
37
|
-
Flow QA does not download SDKs, create or boot simulators, or install application builds. A missing or unavailable selected device blocks the run; a saved target is not evidence of a working device or app. Before a run on a booted iOS simulator or Android emulator, Flow QA also checks whether the configured app ID is installed. A confirmed missing app blocks the run with no test attempts and tells you to install it on that device. If the local app query cannot establish installation, the native engine still runs and its result remains visible; physical devices retain this engine-level check. For physical device IDs that the underlying engine resolves by name, the device name must be unique after case and whitespace normalization; ambiguous selection blocks the run. Chromium is only required for web targets.
|
|
37
|
+
Flow QA does not download SDKs, create or boot simulators, or install application builds. A missing or unavailable selected device blocks the run; a saved target is not evidence of a working device or app. Before a run on a booted iOS simulator or Android emulator, Flow QA also checks whether the configured app ID is installed. A confirmed missing app blocks the run with no test attempts and tells you to install it on that device. On Android emulators, the package query treats an empty response with exit code 1 as missing, matching ADB behavior. If the local app query cannot establish installation, the native engine still runs and its result remains visible; physical devices retain this engine-level check. For physical device IDs that the underlying engine resolves by name, the device name must be unique after case and whitespace normalization; ambiguous selection blocks the run. Chromium is only required for web targets.
|
|
38
38
|
|
|
39
39
|
## Native steps
|
|
40
40
|
|
package/docs/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases and verification
|
|
2
2
|
|
|
3
|
+
## 0.9.9 — Android emulator missing-app preflight
|
|
4
|
+
|
|
5
|
+
Android's `adb shell pm path` returns exit code 1 with no output when a package is absent. The preflight now treats that exact response as a confirmed missing app, so a run is blocked before starting the native engine with zero attempts and a usable installation instruction. Diagnostic output, other exit codes, and unavailable ADB remain unknown and keep the engine result visible. A booted Android 16 emulator reproduced the prior error/one-attempt report for an absent package and the installed Settings app was exercised separately. The focused test uses an isolated ADB stub for the distinct responses.
|
|
6
|
+
|
|
3
7
|
## 0.9.8 — block a native run when the selected simulator lacks the app
|
|
4
8
|
|
|
5
9
|
Before launching a test on a booted iOS simulator or Android emulator, Flow QA checks whether the registered app ID is installed. A confirmed missing app now produces a blocked report with zero attempts and an installation instruction. It no longer appears as an engine error after a failed launch. When the local query cannot confirm installation, the native engine still decides the result; physical device behavior is unchanged. No app is installed by this check.
|