Example #1
0
from qaviton.utils import path
import os
import datetime

db = path.of(__file__)('../../flask_app/database.db')
os.rename(
    db, db + '.' +
    str(datetime.datetime.utcnow()).replace(" ", "-").replace(":", ""))
Example #2
0
from qaviton import crosstest
from qaviton.utils import path
from tests.data.private import hubip


app = [
    # web
    'https://contacts.google.com/',
    # 'file://' + path.of(__file__)('../../apps/ContactManager/ContactManager.html'),
    # 'file:///home/ubuntu/ContactManager.html',
    # mobile
    path.of(__file__)('../../../apps/ContactManager/ContactManager.apk')
]

screenResolution = "800x600x24"
sessionTimeout = 60


# create cross-platform testing object
platforms = crosstest.Platforms()
platforms.web.command_executor = 'http://'+hubip+':4444/wd/hub'


# add chrome browser support
platforms.web({
    'browserName': "chrome",
    'version': "",
    'platform': "ANY",
    'app': app[0],
    'screenResolution': screenResolution,
    'sessionTimeout': sessionTimeout,
Example #3
0
from qaviton.utils import path

yaml1 = path.of(__file__)('../files/yaml1.yaml')
yaml2 = path.of(__file__)('../files/yaml2.yaml')
Example #4
0
import os
from qaviton.utils import filer
from qaviton.utils import path
from qaviton.utils.operating_system import s
from qaviton.version import __version__

cwd = os.getcwd()
examples = path.of(__file__)('examples')


def initial_msg(f):
    def dec(*args, **kwargs):
        print("""
            QAVITON VERSION {}
            creating qaviton framework and test examples

            """.format(__version__))
        f(*args, **kwargs)

    return dec


def install_is_done(tests_dir):
    print("""


            @@@@@@@@@@@@@@@@@@@@@
            @ installation done @
            @@@@@@@@@@@@@@@@@@@@@

        # use pip install, uninstall & freeze