本文整理汇总了Python中executor.Executor.run_and_verify_tests方法的典型用法代码示例。如果您正苦于以下问题:Python Executor.run_and_verify_tests方法的具体用法?Python Executor.run_and_verify_tests怎么用?Python Executor.run_and_verify_tests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类executor.Executor
的用法示例。
在下文中一共展示了Executor.run_and_verify_tests方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Parser
# 需要导入模块: from executor import Executor [as 别名]
# 或者: from executor.Executor import run_and_verify_tests [as 别名]
# parse tests - read from Excel and perform basic error checking
file_parser = Parser(blank_errors)
file_parser.parse_test_data(raw_test_data)
data = file_parser.get_test_data()
parsed_data, parser_errors = file_parser.get_test_data()
# finalize test data before execution
refiner = Refiner(parsed_data, parser_errors, timing_dict)
refiner.transform_before_processing()
refiner.process_test_data()
refiner.transform_after_processing()
refiner.remove_invalid_tests()
final_data, final_errors = refiner.get_test_data()
# report errors to user
if final_errors.count_errors() == 0:
# execute and verify tests
executor = Executor(final_data, timing_dict, MAPort)
executor.run_and_verify_tests()
executed_data = executor.get_executed_data()
# report test results
reporter = Reporter(executed_data)
reporter.generate_automation_desk_report()
del executor, executed_data, reporter
else:
ad_interface.report_errors()
del final_errors, parser_errors, ad_interface, importer, raw_test_data, file_parser, parsed_data, refiner, final_data