예제 #1
0
 def setUpClass(cls):
     cls.d.app_clear('com.vova.android')
     cls.d.app_start("com.vova.android")
     cls.test_data = get_test_data(cls.d)
     cls.watch_device("Pretty Sure|GET IT!|总是允许|Baik, saya paham.")
     BaseSteps.init_app_operation()
     cls.test_env = ReadConfig().get_test_env()
예제 #2
0
 def setUpClass(cls):
     cls.d.app_clear('com.vova.android')
     cls.d.app_start("com.vova.android")
     # 无注册case别在watch中增加Shop Now,否则购物车为空时,会默认点击,返回上个页面在加车成功之前
     cls.watch_device(
         "Pretty Sure|Sure|Baik, saya paham.|GET IT!|总是允许|始终允许")
     cls.test_data = get_test_data(cls.d)
     cls.test_env = ReadConfig().get_test_env()
     BaseSteps.init_app_operation()
     BaseSteps.user_login(cls.test_data['user_name_02'],
                          cls.test_data['password_02'])
     cls.PAN = "EHFGA5967A"
     cls.CPF = '12649239700'
예제 #3
0
 def setUpClass(cls):
     cls.d.app_start("com.github.android_app_bootstrap")  # restart app
     cls.test_data = get_test_data(cls.d)
예제 #4
0
 def setUpClass(cls):
     cls.test_data = get_test_data(cls.d)
     cls.PAN = "qwert1423q"
     cls.CPF = '12649239700'
     cls.watch_device("Pretty Sure|Sure|Baik, saya paham.")
     cls.test_env = ReadConfig().get_test_env()
예제 #5
0
 def setUpClass(cls):
     # cls.d.app_start("com.vova.android")  # restart app
     cls.test_data = get_test_data(cls.d)
     cls.PAN = "EHFGA5967A"
     cls.watch_device("Sure|Baik, saya paham.")
예제 #6
0
 def setUpClass(cls):
     cls.test_data = get_test_data(cls.d)
     cls.watch_device("Pretty Sure|GET IT!|总是允许|始终允许|Homepage")
예제 #7
0
 def setUpClass(cls):
     cls.watch_device(
         "Pretty Sure|Sure|Baik, saya paham.|GET IT!|总是允许|始终允许")
     cls.test_data = get_test_data(cls.d)
     cls.test_env = ReadConfig().get_test_env()
예제 #8
0
 def setUpClass(cls):
     cls.d.app_start("com.mixgo.PropertySEO")  # restart app
     cls.test_data = get_test_data(cls.d)
예제 #9
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import unittest
from Public.ReadConfig import ReadConfig
from PageObject import home, login, user_center, search, commodity_details, account_setting, payment, country_list, \
    order_details, shipping_address, cards_list, checkout_v2, paypal, add_address_v2, welcome, edit_address, bag
from Public.Decorator import *
from Public.Test_data import get_test_data

a = BasePage().set_driver(None)
test_data = get_test_data(BasePage().d)


def creat_random_email():
    return ''.join(
        random.sample([
            'z', 'y', 'x', 'w', 'v', 'u', 't', 's', 'r', 'q', 'p', 'o', 'n',
            'm', 'l', 'k', 'j', 'i', 'h', 'g', 'f', 'e', 'd', 'c', 'b', 'a'
        ], 10)) + '@tetx.com'


def init_app_operation():
    welcome.welcome_page().wait_page()
    welcome.welcome_page().select_gender('male')
    welcome.welcome_page().choose_age('31_to_45')
    home.home_page().click_account_button()
    user_center.user_page().wait_page()
    user_center.user_page().wait_get_it_gone()

예제 #10
0
 def setUpClass(cls):
     cls.d.app_stop_all()
     cls.test_data = get_test_data(cls.d)
     cls.watch_device("GET IT!")
예제 #11
0
 def setUpClass(cls):
     cls.d.app_start("com.vova.android")
     cls.test_data = get_test_data(cls.d)
예제 #12
0
 def setUpClass(cls):
     cls.d.app_start("com.globalegrow.app.gearbest")  # restart app
     cls.test_data = get_test_data(cls.d)