-
Notifications
You must be signed in to change notification settings - Fork 504
/
config_dangdang.py
57 lines (44 loc) · 1.09 KB
/
config_dangdang.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# !/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: xag
@license: Apache Licence
@contact: [email protected]
@site: http://www.xingag.top
@software: PyCharm
@file: config.py
@time: 1/14/19 22:20
@description:当当的配置文件
"""
import os
PLATFORM = 'Android'
DEVICE_NAME = 'MI_4LTE'
DRIVER = 'automationName2'
APP_PACKAGE = 'com.dangdang.buy2'
APP_ACTIVITY = 'com.dangdang.buy2.StartupActivity'
ANDROID_VERSION = '6.0.1'
AUTO_GRANT_PERMISSIONS = True
# ========================================
# Appium地址
DRIVER_SERVER = 'http://localhost:4723/wd/hub'
# 等待元素加载时间
TIMEOUT = 60
# 当当手机号码+密码
USERNAME = '13418516930'
PASSWORD = 'Hu881025'
# MongoDB配置【本地、数据库、集合表】
MONGO_URL = 'localhost'
MONGO_DB = 'admin'
MONGO_COLLECTION = 'moments'
# ===========================================
# 滑动点
# 起始点的x轴坐标、y轴坐标
FLICK_START_X = 300
FLICK_START_Y = 278
# 每次滑动的距离
FLICK_DISTANCE = 700
# 每次滑动的时间间隔
SCROLL_SLEEP_TIME = 1
# 搜索关键字
KEY_WORD = 'Python'