Commit Graph

3360 Commits

Author SHA1 Message Date
lilong.129 865c8c6786 change: update examples 2023-04-18 19:33:15 +08:00
lilong.129 804e69037a change: GenNameWithTimestamp 2023-04-17 22:45:58 +08:00
lilong.129 a286e0f37f change: update changelog 2023-04-17 14:38:07 +08:00
lilong.129 9e73328448 refactor: TakeScreenShot saves all screenshots 2023-04-16 22:32:47 +08:00
lilong.129 3770ce12bd feat: add validator AssertAppInForeground and AssertAppNotInForeground 2023-04-16 18:54:40 +08:00
lilong.129 a6ec63322a change: update go mod 2023-04-16 18:00:36 +08:00
lilong.129 7a9349ea32 fix: MobileUIAppNotInForegroundError exit code 2023-04-16 12:33:13 +08:00
debugtalk 8a66a777f9
Merge pull request #1530 from httprunner/dependabot/pip/certifi-2022.12.7
build(deps): bump certifi from 2021.10.8 to 2022.12.7
2023-04-15 00:22:50 +08:00
debugtalk 5c46388dd4
Merge pull request #1561 from httprunner/dependabot/go_modules/golang.org/x/text-0.3.8
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8
2023-04-15 00:21:49 +08:00
debugtalk 336b25e097
Merge branch 'master' into dependabot/go_modules/golang.org/x/text-0.3.8 2023-04-15 00:21:17 +08:00
debugtalk 8151b80420
Merge pull request #1562 from httprunner/dependabot/go_modules/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.0.0-20220919232410-f2f64ebce3c1 to 0.7.0
2023-04-15 00:17:57 +08:00
debugtalk 1d63833b5f
Merge pull request #1585 from httprunner/fix-android-screencap
refactor android screencap

- feat: add adb `screencap` sub command
- feat: add `IsAppInForeground` to check if the given package is in foreground
- feat: check if app is in foreground when step failed
- fix: take screenshot after each step
- fix: screencap compatibility for shell v1 and v2
2023-04-15 00:12:51 +08:00
lilong.129 524b277308 fix: screencap compatibility for shell v1 and v2 2023-04-14 23:57:20 +08:00
lilong.129 c787b73e99 fix: checkout ocr response status code 2023-04-14 21:50:24 +08:00
lilong.129 8b1aa36a8a fix: support gif image 2023-04-14 21:37:35 +08:00
lilong.129 947653014b fix: ScreenCap call RunShellCommandWithBytes 2023-04-14 21:10:43 +08:00
lilong.129 2d3a4985ed fix: adb logcat clear argument 2023-04-14 20:28:04 +08:00
lilong.129 e7e5837e48 Merge branch 'master' into fix-android-screencap 2023-04-14 19:11:06 +08:00
debugtalk 1ce5eecdf7
Merge pull request #1584 from httprunner/gadb
replace gadb with optimized version authoried by @appl3s
2023-04-14 19:10:29 +08:00
lilong.129 3364ddb25a bump version to v4.3.3.2023041419 2023-04-14 19:02:34 +08:00
lilong.129 069a2997e0 feat: check if app is in foreground when step failed 2023-04-14 18:57:36 +08:00
lilong.129 d277a87d80 change: print ocr service logID when success 2023-04-14 18:03:13 +08:00
lilong.129 dd7724b586 feat: add IsAppInForeground to check if the given package is in fore ground 2023-04-14 17:43:27 +08:00
lilong.129 2ceac61c4c feat: add adb screencap sub command 2023-04-14 16:35:10 +08:00
lilong.129 c97b84dd39 refactor: get attached android/ios devices 2023-04-14 15:55:54 +08:00
lilong.129 f77b454cf2 change: take screenshot after each step 2023-04-14 13:29:22 +08:00
lilong.129 ba5222a30a change: remove debug log 2023-04-13 23:12:43 +08:00
lilong.129 ef784709af faet: add ScreenCap for gadb 2023-04-13 22:48:40 +08:00
lilong.129 3d4dffbd0b refactor: replace gadb with optimized version authoried by @appl3s 2023-04-13 22:41:45 +08:00
debugtalk 6600473855
Merge pull request #1582 from httprunner/random_swipe
feat: random swipe with weight for multiple time ranges
2023-04-12 10:25:07 +08:00
lilong.129 dc720d38ea change: bump version to 4.3.3 2023-04-11 22:22:36 +08:00
lilong.129 eacdf466cc feat: SleepRandom add weight argument to specify the probability of the time range 2023-04-11 22:03:14 +08:00
dependabot[bot] 830da0a72a
build(deps): bump golang.org/x/net
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220919232410-f2f64ebce3c1 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 02:16:15 +00:00
dependabot[bot] f7b6b4217c
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 09:02:32 +00:00
lilong.129 c27981e6b0 update 2023-02-20 20:48:47 +08:00
lilong.129 a093f068db change: update sponsor info 2023-02-16 23:04:36 +08:00
lilong.129 b723082be4 fix: sleep random arguments adapt to int and float 2023-02-14 00:06:19 +08:00
lilong.129 906edecd8e fix: do not fail case when kill logcat error 2023-02-13 23:37:54 +08:00
lilong.129 4db263db15 fix: stop logcat only when enabled 2023-02-13 23:34:09 +08:00
debugtalk cdee2babd7
Merge pull request #1559 from httprunner/random
sleep in random seconds
2023-02-13 22:36:54 +08:00
debugtalk c141b18606 change: add test for sleep random 2023-02-13 22:35:34 +08:00
debugtalk 8d4e0357c8 feat: add random builtin functions 2023-02-13 22:26:49 +08:00
debugtalk 7f93cce3eb feat: sleep random seconds 2023-02-13 22:22:49 +08:00
debugtalk 5a67fc1155 change: update logcat args 2023-02-13 21:47:53 +08:00
debugtalk fe5dd0adb3
Merge pull request #1552 from bbx-winner/fix-adb
fix: err wrap and TapFloat

- 修复测试用例跑不通过 failfast 时,shell 退出码始终为 1 的问题
- 修复 adb 驱动,TapFloat 方法 options 未使用的问题
2023-01-30 10:54:12 +08:00
buyuxiang 4c29906f6d fix: err wrap and TapFloat 2023-01-19 08:59:17 +08:00
debugtalk 1b6eed1739
Merge pull request #1541 from httprunner/gadb
feat: run Android UI automation with adb by default, add `uixt.WithUIA2(true)` option to use uiautomator2
2022-12-26 23:43:08 +08:00
debugtalk 994a91bb84 feat: input text with adb 2022-12-26 22:15:40 +08:00
debugtalk 64f1a28605 feat: run Android UI automation with adb by default, add uixt.WithUIA2(true) option to use uiautomator2 2022-12-26 21:57:47 +08:00
debugtalk e26f79e326 fix: specify uia2 ip and port 2022-12-26 20:22:59 +08:00