Ejemplo n.º 1
0
# -*- coding: utf-8 -*-
# @Date    : 2017-08-11 15:34:37
# @Author  : lileilei
from suite.testsuite import create_report
from suite import testsuite
from suite.send_email import send_email

if __name__ == '__main__':
    # testsuite.run_case()
    testsuite.create_report('n')  # 生成报告
    # send_email()# 发送邮件
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-
# @Date    : 2018-08-11 15:34:37
# @Author  : Victor
from suite.testsuite import create_report
from suite.send_email import send_email
from suite import testsuite
from suite import run_case
# 运行指定文件中的测试类
from test_case import test_login


cases = [
    test_login.requsetsTest
    # ,test_login.Testlogin
    # ,test_del_patient.del_patient
]


if __name__ == '__main__':
    # 调试、不生成报告
    # testsuite.run_case(cases)
    # 调试 运行cases中类里面的test_* 方法 生成报告
    # run_case.run_this_case('n', cases)

    # 运行case文件夹内所有单元测试 生成报告
    testsuite.create_report('n')
    # 发送邮件
    # send_email()
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-
# @Date    : 2017-08-11 15:34:37
# @Author  : lileilei
from suite.testsuite import create_report
if __name__ == '__main__':
    create_report()
Ejemplo n.º 4
0
# @Date    : 2021-03-8 15:34:37
# @Author  : Xinyu Liu
import  unittest,time,os
from util import BSTestRunner
from config import description,reporttitle
from case.courseDB_test import TestCourseSearch
from case.semesterBuilder_test import TestSemesterBuilder
from case.academic_test import TestAcademicBuilder
from case.login_test import TestLogin
from selenium import webdriver
from suite.testsuite import create_report
path=os.getcwd()
case_path=path+'\\case'
def runOneTest():
    test_suit = unittest.TestSuite()
    test_suit.addTest(TestAcademicBuilder("test_drag_drop"))
   
    runner = unittest.TextTestRunner()
    runner.run(test_suit)


if __name__ == "__main__":
    # runOneTest()
    create_report('academic_test') 
    # unittest.main()
    # driver = webdriver.Chrome()
    # driver.implicitly_wait(10)
    # driver.get("http://15.223.123.122/vsbp/Code/")
    # filename = 'aaa'
    # driver.get_screenshot_as_file(path+'/resultpang/%s.png'%filename)
    # driver.quit