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

list where multiple values have to be found and replaced with two new values
Tornado add delay between HTTP requests
Tensorflow: Convert Tensor to numpy array then pass into a feed_dict
How do I convert all python operations involving None to None values?
how to split the last element in the string
datetime.strptime unexpected behavior - locale issue
Repeating python code multiple times - is there a way of condensing it?
How to install scikit-learn for Python 3?
Passing several arguments for rendering template
Templating – Pass variable references in Python from a config file
Changing loop to organize and reduce XML output
How to do multiple operations in $filter?
django contenttype / genericforeignkey : why need content_type and object_id, if can be inferred from content_object
How can three double quotation marks be stored in a Python docstring?
How to get a name of a css property using selenium-python?
Install error in simpleCV for Python

Categories

HOME
crystal-reports
ssas-2012
admin-on-rest
npm
firebase-app-indexing
backup
laravel-5.3
ubuntu-16.04
json-ld
memory-leaks
tomcat7
rfc
terrain
quill
pjsip
hashicorp-vault
webmethods
cratedb
arraylist
zend-framework-mvc
mousewheel
ip-camera
jconsole
backpropagation
sonarqube-msbuild-runner
flexboxgrid
nmake
countif
nsmenuitem
croppic
pipelinedb
frp
solidworks
hawtio
reactivemongo
threshold
windows-10-iot-core
pace
es-shell
parent
lumen-5.3
ideone
gd
appstore-approval
ti-basic
collapsingtoolbarlayout
pdfkit
objloader
master
iostat
update-site
gitweb
webkit2
jackson-databind
shipitjs
ng2-material
spatial-query
string-parsing
gmsmapview
multinomial
hornetq
ninject.web.mvc
application-loader
unity5.3
windowlistener
digits
coypu
callstack
django-1.6
tilestache
line-numbers
em
io.js
bsp
funkload
cppdepend
android-looper
json-patch
edit-in-place
arangodb-php
logentries
real-time-updates
nservicebus4
driver-signing
onselect
nscolor
jqmobi
swrl
ftp4j
shortcuts
fileconveyor
snapjs
usn
entity-framework-ctp5
dashcode
squeel
pci-bus
callgrind





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android


MS Developer
developer works
python
ios
c
html
jquery


RDBMS discuss