python


Testing phone call service or wifi with appium in python


In python I want to know if i can test phone call service with appium so as Wifi or bluetooth .
the point is i can with appium press phone call button and dial number but how actually i can test that phone call is established ?
same is for bluetooth - wifi - phone pairing
one dumb way is to press dial button and compare dial screen with a presaved screen but this is only UI testing, not connection service testing.
if it can't be done with appium,do you know how it can be done ?
After clicking the call button via appium, you can check the call state via adb:
>>> import subprocess
>>> output = subprocess.check_output("adb shell dumpsys telephony.registry | grep mCallState", shell=True)
>>> print(output)
b' mCallState=0\n'
From here.

Related Links

OpenCV : Vehicle axle detection
How to convert HTML to text keeping underline tags (<u></u>) using html2text
How to override settings.py with settings_local.py in Django 1.11
Format the color of a cell in a panda dataframe according to multiple conditions
Bokeh server callback initiated from Flask application
Python Variable Amount Of Input
Turn pandas dataframe list into boolean column
How to handle concatenate with empty matrix
python django translation .po and .mo file not translating the files
jupyter not using version set by pyenv
Generalize print+format for a variable number of inputs
What are the differences in these two codes? [closed]
What is the correct way to change image channel ordering between channels first and channels last?
Python to capture screenshot of big file
How can I compare the difference between digits of two numbers?
How to find specific list among other lists

Categories

HOME
rest
crystal-reports
amazon-swf
sed
system-verilog
smartphone
playframework
bibtex
jscript
adsense
file-io
apiconnect
httpclient
xcode8.3
keystore
jboss-eap-7
ejs
apache-karaf
statusbar
uiautomator
spring-ws
profile
emv
widevine
vmd
haskell-pipes
ntfs-mft
delphi-10.1-berlin
cross-entropy
wsadmin
nsexception
catia
aqgridview
floor
windows-firewall
gist
mouseclick-event
tiddlywiki
decompress
openh264
etherpad
execl
sqlexception
iron.io
settimeout
verbose
libreadline
backstop.js
amf
gradle-eclipse
listadapter
inotifypropertychanged
anti-cheat
spservices
galaxy
jta
affix
ipojo
twython
mser
adcolony
sthttprequest
power-law
aquafold
surrogate-key
bsp
korma
picat
config-files
magic-numbers
visualstatemanager
ksoap2
svcutil.exe
edit-in-place
circos
dynamic-proxy
gfs
sqljdbc
magicalrecord-2.2
osx-snow-leopard
installshield-2011
goinstant
sql-server-2012-web
database-permissions
fluidsynth
maven-ear-plugin
web-safe-fonts
macruby
parameterization
hinstance
django-nose
authenticode
adsl
ets
linfu
data-entry

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile