import yaml
import json
f = open('config.yaml','rb')
data = yaml.load(f)
print(json.dumps(data,indent=4))
deivces_type: android
devices:
android:
- ip: 10.10.10.10
name: yongbo
tester:
name: liuchang
import yaml
import json
f = open('config.yaml','rb')
data = yaml.load(f)
print(json.dumps(data,indent=4))
deivces_type: android
devices:
android:
- ip: 10.10.10.10
name: yongbo
tester:
name: liuchang