本文整理汇总了Python中bzt.modules.grinder.GrinderExecutor.execution方法的典型用法代码示例。如果您正苦于以下问题:Python GrinderExecutor.execution方法的具体用法?Python GrinderExecutor.execution怎么用?Python GrinderExecutor.execution使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bzt.modules.grinder.GrinderExecutor
的用法示例。
在下文中一共展示了GrinderExecutor.execution方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_install_Grinder
# 需要导入模块: from bzt.modules.grinder import GrinderExecutor [as 别名]
# 或者: from bzt.modules.grinder.GrinderExecutor import execution [as 别名]
def test_install_Grinder(self):
path = os.path.abspath(__dir__() + "/../../build/tmp/grinder-taurus/lib/grinder.jar")
shutil.rmtree(os.path.dirname(os.path.dirname(path)), ignore_errors=True)
grinder_link = GrinderExecutor.DOWNLOAD_LINK
grinder_version = GrinderExecutor.VERSION
GrinderExecutor.DOWNLOAD_LINK = "file://" + __dir__() + "/../data/grinder-{version}_{version}-binary.zip"
GrinderExecutor.VERSION = "3.11"
self.assertFalse(os.path.exists(path))
obj = GrinderExecutor()
obj.engine = EngineEmul()
obj.settings.merge({"path": path})
obj.execution = BetterDict()
obj.execution.merge({"scenario": {
"script": "tests/grinder/helloworld.py",
"properties-file": "tests/grinder/grinder.properties",
"properties": {"grinder.useConsole": "false"}}})
obj.prepare()
self.assertTrue(os.path.exists(path))
obj.prepare()
GrinderExecutor.DOWNLOAD_LINK = grinder_link
GrinderExecutor.VERSION = grinder_version