#14 Appium Concepts | How to Simulate “NetworkSpeed” on Android Emulators with Appium
ฝัง
- เผยแพร่เมื่อ 22 ธ.ค. 2024
- #14 Appium Concepts | How to Simulate “NetworkSpeed” on Android Emulators with Appium
Can be done in 3 Ways:
By Using ‘Capability’
By Using ‘CommandLine’
By Using ‘UIAutomator2 drivers’ Command
----------------------------------------------------------------------------------------------------------
By using ‘Capability’ ---- “networkSpeed”
By using ‘CommandLine’
Path: \AppData\Local\Android\Sdk\emulator
Command: emulator -avd Pixel8Pro -netspeed speed
By using UIAutomator2 Command ------ "mobile: networkSpeed“
Sets the network speed -(Specifies the maximum network upload/download speeds i.e. speed values in kbps)
gsm - GSM/CSD (up: 14.4, down: 14.4).
hscsd - HSCSD (up: 14.4, down: 57.6).
gprs - GPRS (up: 28.8, down: 57.6).
edge - EDGE/EGPRS (up: 473.6, down: 473.6).
umts - UMTS/3G (up: 384.0, down: 384.0).
hsdpa - HSDPA (up: 5760.0, down: 13,980.0).
lte - LTE (up: 58,000, down: 173,000).
evdo - EVDO (up: 75,000, down: 280,000).
full - No limit, the default (up: 0.0, down: 0.0).
num - Specifies both upload and download speed.
up:down - Specifies individual up and down speeds.
#appium
#mobileappautomation
#mobileapptesting
#uiautomation
#mobileautomation
#gesture
#gestures