Skip to content

taylortaurus/SoloX

 
 

Repository files navigation

English | 中文 | DocForAndroid

SoloX

solox preview

Preview

SoloX - Real-time collection tool for Android/iOS performance data.

We are committed to solving inefficient, cumbersome test execution, and our goal is Simple Test In SoloX!

Installation

1.Python:3.6+ 
2.pip install -U solox
3.pip install -i  https://mirrors.ustc.edu.cn/pypi/web/simple -U solox (Recommend)

notice: If Windows users need to test ios, install and start Itunes

Startup SoloX

default

python -m solox

customize

python -m solox --host={ip} --port=50003

Collect in python

from solox.public.apm import APM
# solox version >= 2.1.2

apm = APM(pkgName='com.bilibili.app.in',deviceId='ca6bd5a5',platform='Android', surfaceview='true') # surfaceview: false = gpxinfo
# apm = APM(pkgName='com.bilibili.app.in', platform='iOS') only supports one device
cpu = apm.collectCpu() # %
memory = apm.collectMemory() # MB
flow = apm.collectFlow() # KB
fps = apm.collectFps() # HZ
battery = apm.collectBattery() # level:% temperature:°C

Collect in API

Start the service in the background

# solox version >= 2.1.5

macOS/Linux: nohup python3 -m solox &
Windows: start /min python3 -m solox &

Request apm data from api

http://{ip}:50003/apm/collect?platform=Android&deviceid=ca6bd5a5&pkgname=com.bilibili.app.in&apm_type=cpu

apm_type in ['cpu','memory','network','fps','battery']

PK Model

  • 2-devices: test the same app on two different phones
  • 2-apps: test two different apps on two phones with the same configuration

Browser

Chrome

Terminal

  • windows: PowerShell
  • macOS:iTerm

Thanks

Communicate

About

SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试\iOS性能测试\移动端性能测试\APP性能测试)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 45.1%
  • HTML 34.8%
  • JavaScript 20.1%