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

Can I use Flask and flask-restul to return JSON to API calls but HTML to browsers?
Keras input dimension
Adding a loop to “digital root” function in Python3
How to use a linear index to access a 2D array in Python
Tflearn Custom Objective function
Text Classification - Label Pre Process [closed]
how to get matched substring list in a json-type string with python?
Lambda Expressions: Returning Multiple Values
Using CUDA8 in theano
matplotlib.widgets Button doesn't work inside a class
fault in readline() or condition
How to set PYTHONSTARTUP script for Intellij/PyCharm
Learning Python the Hard Way (Third Edition) Exercise 11 Print statements not printed until after input is entered
Pandas read in chunks of data with variable number of rows?
Python3 Regex: Remove all characters except / and | from string
python can`t get correct page source code

Categories

HOME
rest
caching
npm
nlp
ocaml
translation
agile
mainframe
vlc
javamail
recyclerview
adsense
actionscript-2
dropbox
intellij-plugin
automata
cs-cart
simple-injector
phoenix
ejs
ada
flexlm
propel2
statusbar
rails-activerecord
sensu
scalaz7
countif
tcpclient
tarantool
logarithm
badge
auditing
ui5
bus-error
dss
i3
strophe
preg-grep
google-drive-realtime-api
pox
hashcat
topic-modeling
duktape
haskell-pipes
agent
web-development-server
distributed-transactions
spring-bean
upsert
ttcn
chown
webdatagrid
redux-router
rsqlite
payu
verbose
sql-import-wizard
icefaces
uistackview
qregexp
database-backups
fps
fill
cctray
geodjango
textkit
xjc
bridge
epl
subversion-edge
custom-url
rhel5
livechat
x-ua-compatible
java-collections-api
valence
dbsetup
circos
mimosa
real-time-updates
nservicebus4
sttwitter
swrl
dig
adomd.net
database-permissions
device-emulation
usn
redirectstandardoutput
text-services-framework
userid
v4l
cross-domain-policy
ruby-debug
rtsp-client
callgrind
inline-if
hardware-infrastructure

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App