Esempio n. 1
0
 def dict_info(self):  # 帐密登录页面
     return cb.get_value_from_env_data_dict({
         Env.qa: {'app_package':'com.hjwordgames',
                  # 'app_activity':'com.hujiang.browser.view.X5HJWebViewActivity'
                  'app_activity':'.activity.GuideLoginActivity'
                  }
     })
Esempio n. 2
0
 def dict_info(self):  # 帐密登录页面
     return cb.get_value_from_env_data_dict({
         Env.qa: {'app_package':'com.hjwordgames',
                  'activity_login':'******',
                  'activity_limit': '.Splash',
                  }
     })
Esempio n. 3
0
    def limit(self):  # 开启手机/电话/存储权限
        return cb.get_value_from_env_data_dict({
            Env.qa: [(By.ID, "com.hjwordgames:id/btn_start"),   # 开启按钮
                     (By.ID, "com.android.packageinstaller:id/permission_allow_button"),   # 存储权限允许
                     (By.ID, "com.android.packageinstaller:id/permission_allow_button")   # 电话权限允许

            ],
        })
Esempio n. 4
0
 def url(self):
     return cb.get_value_from_env_data_dict({
         Env.qa:
         'https://api.apiopen.top/searchMusic',
         Env.yz:
         'https://api.apiopen.top/searchMusic',
         Env.prod:
         'https://api.apiopen.top/searchMusic'
     })
Esempio n. 5
0
 def username_pwd_button(self):  # 帐密登录按钮
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.XPATH, "//*[@content-desc='帐号密码登录']"), '']
     })
Esempio n. 6
0
 def start_immediately(self):   # 点击立即开启
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, 'com.hjwordgames:id/guide_action_sign_in_or_login'), '']
     })
Esempio n. 7
0
 def app_path(self):  # 开心词场
     return cb.get_value_from_env_data_dict({
         Env.qa: {'dict': '/Users/songmengyun/Poseidon-master/tests/hjdict2_hujiang_3.4.1.259.241819.apk',
                  'setting': ''
                  },
     })
Esempio n. 8
0
 def search_button(self):  # 百度首页
     return cb.get_value_from_env_data_dict(
         {Env.qa: [(By.XPATH, '//*[@id="su"]'), 'poseidon_百度搜索']})
Esempio n. 9
0
 def search_box(self):  # 百度首页
     return cb.get_value_from_env_data_dict(
         {Env.qa: (By.XPATH, '//*[@id="kw"]')})
Esempio n. 10
0
 def cichang_setting_account_logout_right_button(self): # 设置-账号-退出按钮-退出确认
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, "com.hjwordgames:id/right_button"), '']
     })
Esempio n. 11
0
 def cichang_setting_account_logout(self): # 设置-账号-退出按钮
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, "com.hjwordgames:id/logout_bt"), '']
     })
Esempio n. 12
0
 def cichang_setting_account(self): # 设置-账号
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, "com.hjwordgames:id/setting_user"), '']
     })
Esempio n. 13
0
 def cichang_setting(self): # 设置
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, "com.hjwordgames:id/v_setting_img"), '']
     })
Esempio n. 14
0
 def cichang_my(self): # 我的
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.ID, "com.hjwordgames:id/tab_text"), '']
     })
Esempio n. 15
0
 def user(self):  # 登录用户
     return cb.get_value_from_env_data_dict({
         Env.qa: ['SMY0509', 'hujiang1234'],
     })
Esempio n. 16
0
 def username_pwd_login(self):  # 用户名+密码+登录按钮
     return cb.get_value_from_env_data_dict({
         Env.qa: [(By.XPATH, "//*[@content-desc='手机号/邮箱/用户名']"),
                  (By.XPATH, "//*[@NAF='true']"),
                  (By.XPATH, "//*[@content-desc='登录']")]
     })
Esempio n. 17
0
 def url(self):  # 百度首页
     return cb.get_value_from_env_data_dict(
         {Env.qa: ['https://www.baidu.com', '百度一下,你就知道']})
Esempio n. 18
0
 def app_path(self):  # 开心词场
     return cb.get_value_from_env_data_dict({
         Env.qa: {'dict': '/Users/songmengyun/automation/poseidon/tests/hjwordgames_hujiang_6.9.5.530.071802.apk',
                  'setting': ''
                  },
     })