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

python reading sql db encoding error at /python2.7/json/encoder.py
Base64 decode to pdf on Windows OS with python
Partial parameters are duplicated
accessing nested element in HTML by CLASS_NAME using selenium
Where is the cfnbootstrap folder?
Want requests.get to wait for redirection during some time
How to run a program by being activated in another program in python
Django: what is the purpose of “$” symbol in urlpatterns?
Installed the google-cloud-storage module 0.22.0, Imports fine by itself but not as an import of an import
replace double quotes with '\"' in python
How to replace sublists within a list?
How to listen for an AUDIO file using Python and Selenium Webdriver
Storing Encrypted Data On A MySQL Database with Python, Pandas and SQLAlchemy [Connection Lost]
How to make python decorators work like a tag to make function calls “by tag”
Pandas - Remove index column
Setting SublimeRepl to work inside venv (sublime 3)

Categories

HOME
arrays
answer-set-programming
dynamics-crm
rotation
antivirus
playframework
ios10
user
file-io
urlencode
pygame
vsftpd
criteria
off-canvas-menu
esql
binutils
spring-data-neo4j
vcard
exponential
pyscripter
web-audio-api
fabric-digits
salesforce-chatter
von-neumann
autocompletetextview
parse-android-sdk
silverlight-3.0
delphi-10.1-berlin
polyfills
restful-url
rapidweaver
double-buffering
livefyre
sgmlreader
openh264
volume
mcrypt
photography
emoticons
efxclipse
build-process
nsfetchedresultscontrolle
master
software-product-lines
bacnet
spoofing
multifile-uploader
asteriskami
brython
fps
selecteditem
interactive-brokers
vips
retro-computing
windowlistener
apigee-baas
anti-patterns
visual-studio-code
start-job
cloudpebble
gmaps4rails
cg
google-admin-audit-api
ember-components
jstat
docopt
suffix-array
coin-flipping
alertifyjs
factors
mbox
bounds
internal
winrt-httpclient
chrome-for-android
angulartics
real-time-updates
trimming
leptonica
surveyor-gem
grunt-contrib-compass
shortcuts
pascals-triangle
objcmongodb
vt100
dropdownlistfor
qsqltablemodel
radchart
legacy-code
xmlslurper
gdt
hibernate3
hinstance
nssavepanel
mysql-error-1045
querystringparameter
datamember
charts4j
scalaxb
querypath

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