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

How to use long integers in Python to build a range?
Should I use Lex or a home-brewed solution to parse a formula?
Launching default application for given type of file, OS X
Python CGI script IOError Broken Pipe
Django, grouping query items
Regular expression works normally, but fails when placed in an XML schema
too many threads due to synch communication
How can I specify a relative path in a Python logging config file?
Python “draw() must be called with Label instance as first argument (got _WindowMetaclass instance instead)”
Writing to a file in Python inserts null bytes
Disable logging during manage.py test?
turbogears request/user object in templates and request context
Django date filter to output “am” or “A.M.”
Schedule Python Script - Windows 7
slicing arrays in numpy/scipy
Recommendations for a simple 2D graphics python library that can output to screen and pdf?

Categories

HOME
spring
ibm-watson-cognitive
tinyos
transparent
bibtex
h2
vlc
phaser-framework
internet-explorer-11
goutte
deeplearning4j
aruco
hosts
glpk
mod-pagespeed
phpbb
grub2
aptana
apple-tv
cocoa-touch
bcrypt
katharsis
opencart2.3
unpack
helper
partial-application
invoke-command
devforce
spring-insight
canvasjs
rhino
superpowered
nlb
inkscape
coreclr
visualstudio.testtools
twiki
flex4.5
crop
facebook-chatbot
context-free-language
lumen-5.3
ajp
proof
tuleap
sapui
cgcontext
tofixed
static-code-analysis
search-box
spyne
createobject
objloader
keycode
atlassian-crowd
libreadline
chessboard.js
slam-algorithm
firepath
try-finally
spoofing
coordinate-transformation
multilingual-app-toolkit
string-parsing
proxygen
anti-cheat
group-concat
except
windows-vista
sem
ytplayerview
divide-by-zero
debian-based
httpie
virus
java-melody
sid
io.js
argument-passing
neoload
sgml
lov
mimosa
hamsterdb
baucis
windows-mobile-6
ruboto
lame
fortran77
cgpath
lync-server-2010
qsqltablemodel
pstree
continuous-testing
mpmovieplayer
handwriting
printing-web-page
django-nose
scalaxb
carbide
aio
filetime
opcodes

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