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 add the second line of labels in matplotlib plot
Join dataframes - one with multiindex columns and the other without
How to set up multiple frames
Create a python programm standalone on windows 7 [duplicate]
Execute python script on remote server from another script
Passing a variable between two methods in Python?
What is the best way to add custom methods into generated protoc classes for Python?
Retain edit data for one form when submitting a second
Associating string representations with a Python Enum that uses integer values
python3 for win and cygwin - line endings in buffer
How invert the result used the method sort
Adjusting weights based on share prices for a investment portfolio using pandas
Python split data and create variables/list of content (variable name + data)
Overwrite Not Working
Selenium: how to select text in CSS?
How to maintain dictionary element order in JSON dump in Python

Categories

HOME
makefile
json
rest
jsviews
vs-team-services
jbehave
console
triggers
openwrt
slim-3
eclipse-cdt
lotus-notes
camera-calibration
cs-cart
ida
spring-cloud-config
bar-chart
yeoman-generator
ip-camera
deb
tcpclient
branch
osmdroid
metis
pptp
vcard
xor
backup-strategies
salesforce-chatter
viewstate
geomesa
redhat-datavirt
office365connectors
silverlight-3.0
jquery-multidatespicker
sendgrid-templates
nashorn
mod-fcgid
sgmlreader
shutdown
bnd
keycode
payu
json-schema-validator
pax-web
pagekit
shipitjs
spinlock
magento-1.4
altbeacon
acm
sem
mogrify
gray-code
robocode
c++-actor-framework
scala-2.11
collabnet
adaptive-compression
spdy
mbox
mimosa
angulartics
fogbugz-api
swrl
client-library
returnurl
signals2
makefile-project
nsindexpath
throttling
windows-live-id
noir
email-spec
pantheios
rtsp-client
code-design
filetime
evb
data-entry
self-reference

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