Exemple #1
0
#! /usr/bin/python

import sys, os
import unittest
from TestLoad.LoadTestBaseFactory import LoadTestBaseFactory
from LoadUTNamespace import test_case_namespace

if __name__ == '__main__':
    print "Below are test cases available: \n"

    for k, v in test_case_namespace.iteritems():
        print "Test Case No:", v[1]

    print "-" * 150, "\n\n\n"
    user_input = input("Please select the test case no to run: ")

    test_case_factory = LoadTestBaseFactory()
    test_case_factory.init_test_suite('UNIT-TEST', user_input)
    test_case = test_case_factory.get_test_case()

    test_case.run_test()
    """
    test_case_factory = LoadTestBaseFactory()
    test_case_factory.run_suite('UNIT-TEST')

    """
#! /usr/bin/python

import sys, os
import unittest
from TestLoad.LoadTestBaseFactory import LoadTestBaseFactory
from LoadUTNamespace import test_case_namespace


if __name__ == '__main__':
    print "Below are test cases available: \n"
    
    for k, v in test_case_namespace.iteritems():
        print "Test Case No:", v[1]    
        
    print "-"*150, "\n\n\n"
    user_input = input("Please select the test case no to run: ")
    

    test_case_factory = LoadTestBaseFactory()
    test_case_factory.init_test_suite('UNIT-TEST', user_input)
    test_case = test_case_factory.get_test_case()
    
    test_case.run_test()

    """
    test_case_factory = LoadTestBaseFactory()
    test_case_factory.run_suite('UNIT-TEST')

    """
Exemple #3
0
#! /usr/bin/python


#from ELTTestBaseFactory import ELTTestBaseFactory
import unittest
#from TestLoad.UnitTest.VerifyDSFiles import VerifyDSFiles
from TestLoad.LoadTestBaseFactory import LoadTestBaseFactory

if __name__ == '__main__':
	test_case_factory = LoadTestBaseFactory()
	test_case_factory.init_test_suite('UNIT-TEST', 1)
	#test_case_factory = LoadTestBaseFactory('UNIT-TEST', 1)
	#test_case_factory.create_test_suite()
	runner = unittest.TextTestRunner()
	runner.run(test_case_factory)
Exemple #4
0
#! /usr/bin/python

#from ELTTestBaseFactory import ELTTestBaseFactory
import unittest
#from TestLoad.UnitTest.VerifyDSFiles import VerifyDSFiles
from TestLoad.LoadTestBaseFactory import LoadTestBaseFactory

if __name__ == '__main__':
    test_case_factory = LoadTestBaseFactory()
    test_case_factory.init_test_suite('UNIT-TEST', 1)
    #test_case_factory = LoadTestBaseFactory('UNIT-TEST', 1)
    #test_case_factory.create_test_suite()
    runner = unittest.TextTestRunner()
    runner.run(test_case_factory)