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

Bluehost-Premature end of headers in python script
numpy.array_split() odd behavior
Memory allocation for numpy.array with copy=False?
Draw contours of detected objects using python and opencv
simple web crawler i need to eliminate the duplicate URL that present in the array
Python: comparing list to a string
Is there any way to write '\r' into a file on linux with python? [closed]
matplotlib retrieve color from plt.plot command
Why are tuples slower than lists at evaluating generators into themselves?
call and control git bash from python script in windows
How get in real time POST update with django and instagram api?
Binary search tree insert method
Log scale mathplotlib in Python?
Why does python come with so many similar, but subtly different functionality for fulfilling certain elementary computing tasks?
How to have adjacent elements reduced to a single element [closed]
adding row to pandas dataframe from series

Categories

HOME
google-apps-script
cntk
sass
filterrific
couchdb-2.0
apache2
vlc
azureservicebus
histogrammar
bro
jpanel
data-science-experience
nixos
image-recognition
jquery-terminal
pyyaml
primes
mousewheel
apply
jquery-form-validator
delete-file
nmf
yosys
scalajs-react
auditing
sumo
continuous-deployment
lync-2013
image-quality
xilinx-ise
forum
superagent
red-black-tree
piecewise
fractals
hotmail
idl
google-drive-realtime-api
ios-ui-automation
google-guava-cache
bing-maps-api
active-model-serializers
knockout-3.0
google-account
asmx
rapidweaver
range-v3
chown
production-environment
defold
livefyre
broadcast
multi-agent
rollback
dwarf
mbaas
uicollectionviewlayout
shinyjs
cjson
icefaces
children
scalar
post-processing
ninject.web.mvc
sevenzipsharp
rspec3
python-ggplot
pgagent
rhel5
kendo-mvvm
snmp4j
suffix-array
log4cplus
funkload
data-generation
kraken.js
help-viewer
reserved-words
bignum
cilk-plus
nimrod
vmware-server
windows-update
mstsc
shiva3d
appfog
android-4.0
symfony-2.0
unions
getstring
hibernate3
responsetext
charts4j
port-scanning
trampolines
front-controller
integer-promotion
system-codedom-compiler
writing





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm