Exemple #1
0
#-------------------------------------------------------------------------------
import unittest
import os
import sys
import traceback
import time
from selenium.webdriver.common.keys import Keys

dir_path = os.path.dirname(os.path.realpath(__file__))
folder_path = os.path.abspath(os.path.join(dir_path, os.pardir))

sys.path.insert(0, folder_path + "\Syslibrary")
sys.path.insert(0, folder_path + "\Library")

from datadriver import readjson
jsonread1 = readjson()

from Launchapplication import launchapplication
application = launchapplication()

tf = 'test_TestcaseNo100030'


#Test case No : 100030
class TestcaseNo100030(unittest.TestCase):
    def test_TestcaseNo100030(self):
        try:
            browser = application.intializebrowser()
            application.inputurl(browser)
            registrationform_locator = application.registrationform_locators()
            registrationform_testdata = application.registrationform_testdata()
import os
import sys
import unittest
import re

dir_path = os.path.dirname(os.path.realpath(__file__))
folder_path = os.path.abspath(os.path.join(dir_path, os.pardir))

sys.path.insert(0, folder_path + "\Library")
sys.path.insert(0, folder_path + "\Syslibrary")
sys.path.insert(0, folder_path + "\Data")
sys.path.insert(0, folder_path + "\Env")

from datadriver import readjson

APIDetails = readjson()

time.sleep(3)

from Tenderserviceaccess import tenderservices

service = tenderservices()


class RESTAPIrequests(unittest.TestCase):
    def test_decorator1(function):
        def wrapper():
            starttime = time.time()
            function()
            endtime = time.time()
            print(endtime - starttime)